I am doing a Maven build for a JAVA project in Jenkins. Once the build is complete, the generated artifacts need to be deployed to my Octopus Server. Using a SHELL script, I am able to do packaging and push it to the Octopus Server. But I am using Octopus Deploy Plugin. There, it is asking for “Release Version”. What should be the value for it and where does the packaging using Octo.exe happens?
Thanks for getting in touch.
We don’t have an officially supported Jenkins plugin but we do have a walkthrough using the MSBuild plugin: https://octopus.com/docs/api-and-integration/jenkins
If that doesn’t work would you mind providing a link to the plugin you are using and I’ll try to help.
Thanks for the reply Shane.
But as I have mentioned, I’m using Maven plugin to build my JAVA Code. Here is the URL to download the Maven plugin for Jenkins.
I think I understand better now.
You have already created a package and pushed it to Octopus Deploy using a shell script. You are trying to use the Jenkins plugin (https://wiki.jenkins-ci.org/display/JENKINS/OctopusDeploy+Plugin) to create a release and deploy it?
The “release version” is whatever version you would like the release to be. In the “package configuration” section you will need to provide the version of the package that you pushed to Octopus via your shell script.
How are you determining the version of the package when you create it and push it to Octopus? You could output that same variable to Jenkins and use it as the release version if your package and release versions are in sync.