Jenkins Octopus Integration

I use Jenkins as a CI tool and use Octopus to deploy a JAVA application. But when surfing, I could find solutions for deploying a .Net application using Octopack. But how to pack a JAVA application and automatically deploy it to the Octopus server from my Jenkins instance?

+5
source share
2 answers

You can pack it using NuGet (with the nuget pack command described here ). This, in fact, is all that Octopack does. Create a .nuspec file, and in the <files> section, specify the files you want for an empty purpose. For example, this will include all the files in your package:

 ... <files> <file src="path/to/output/**" target="" /> </files> ... 

You can then push it into your Octopus Deploy system using nuget push . For instructions, see your Octopus Deploy Package library page.

+1
source

Since Octopus 3.3 you can also package in tar and zip , in addition to NuGet.

You can configure the machine where you want your code to be deployed as a deployment target . Listening tentacles are the most commonly used.

After setting the deployment target, configure Octo.exe on your Jenkins server and use the console script in your Jenkins work to automatically deploy your package to the intended target using Octo.exe.

You can also write code in a script on a Jenkins server and call it directly from the console in a Jenkins job. We do this in our setup, because Octo.exe uses an API key, which we prefer to keep secret from developers.

Note. Octopus Deploy is also currently working on its own support for Java. See this RFC .

+1
source

All Articles