Trigger Jenkins Build From Octopus

Is there such a way that we can set up a workflow where a Jenkins build will be triggered thru Octopus?

  1. Developers commit to SVN repository (e.g. http://svn/MyProject)
  2. Jenkins is set up to pull and build from the SVN repository, no automated trigger. I plan to trigger the build manually. The build will also package and push to Octopus.
  3. User accesses Octopus, maybe click a button and trigger the Jenkins build.
  4. The Jenkins build creates a new release in Octopus.
  5. User deploys the new release to TEST

Is this plausible? We have sort of an inexperienced developers. They commit trivial changes to our repository so I don’t want to automate the releasing and pushing of the packages every time a commit is made.

Hi ripkarl, thanks for getting in touch,

You should be able to trigger a build using a PowerShell script step and using the Jenkins API. It’s definitely not how we like to think about things since the progression should usually move forward form CI to CD and not backwards, but may work for you. The deploy release step may also be of particular interest to you. Is the call back to Jenkins absolutely necessary considering you will be triggering the release build manually from Jenkins?

In this scenario however, CI is probably not required most of the time. It sounds like enabling CI only for the master branch while forcing all devs to group related changes into branches and periodically merging would be the best solution, however may be more challenging.

Regards,
Shaun

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.