automation release / automation schedule

bhushan 's Avatar

bhushan

03 Jan, 2017 09:05 AM

Hi

i want schedule automation release . if any build happened in Jenkins so octopus should trigger release.
kindly suggest the any plugins or steps .

Thanks
bhushan

  1. Support Staff 1 Posted by Daniel Fischer on 04 Jan, 2017 02:00 AM

    Daniel Fischer's Avatar

    Hi bhushan,

    Thanks for getting in touch! We have a fantastic documentation page that covers everything you need to build, publish and create a release in Octopus from Jenkins. The documentation has well outlined steps and screenshots that show you what needs to be configured. Here is the link:
    http://docs.octopus.com/display/OD/Jenkins

    Once you have successfully created your build and then packaged it using OctoPack, you will need to publish the NuGet packages to the Octopus Deploy server using Octo.exe.

    For detailed information on using OctoPack, you can see the following documentation page.
    http://docs.octopus.com/display/OD/Using+OctoPack

    If you would like more information on Octo.exe and the commands you can use with it, you can refer to the following documentation page:
    http://docs.octopus.com/display/OD/Octo.exe+Command+Line

    To Download/Install Octo.exe and OctoPack, please check the following links.
    (OctoPack)http://docs.octopus.com/display/OD/Using+OctoPack#UsingOctoPack-Ins... (Octo.exe Command Line) https://octopus.com/downloads

    The first documentation page I link to about Jenkins covers everything you need to get your Jenkins deployment automated. If you have any further questions or run into any issues, please don’t hesitate to let me know.

    For information specifically relating to scheduling your release from inside Jenkins, there is a feature that lets you schedule your build, assuming everything above is correctly configured, the scheduled build will package, publish and create a release.
    http://stackoverflow.com/questions/12472645/how-to-schedule-jobs-in...

    Best regards,
    Daniel

  2. 2 Posted by Bhushan Kuranje... on 06 Jan, 2017 01:58 PM

    Bhushan Kuranjekar's Avatar

    HI Daniel

    Thanks for reply

    I did not get solution in step as mention in appended mail .
    Now my is environment is manual.

    1. First I am doing manual build from Jenkins that build create .nupkg package in build from Jenkins .

    2. I set the deployment environment in octopus so once build done from Jenkins Then I am doing manual create release in octopus .
    This manual create release I want automation means if any build happened from Jenkins octopus should trigger create release automatic .

    Kindly suggest for the same

    Thanks
    Bhushan

  3. Support Staff 3 Posted by Daniel Fischer on 09 Jan, 2017 01:12 AM

    Daniel Fischer's Avatar

    Hi Bhushan,

    Thanks for getting back. Your initial email was a little short on details so I mostly assumed what you were after. The Jenkins documentation that I linked you to in the previous email has instructions on how to set up Jenkins to automatically create a release and deploy with Octopus.

    This part of the Jenkins documentation talks about automatically creating a release
    http://docs.octopus.com/display/OD/Jenkins#Jenkins-Creatingarelease
    And this part of the Jenkins documentation talks about deploying that release.
    http://docs.octopus.com/display/OD/Jenkins#Jenkins-Deployingreleases

    The documentation above highlights the Octo.exe Create-release command in Jenkins that enables you to automatically trigger release creation and deployment after the build has finished.

    Such as the folloinwg:

    "C:\Tools\Octo\Octo.exe" create-release --project OctoFX --version 1.1.%BUILD_NUMBER% --packageversion 1.1.%BUILD_NUMBER% --server http://localhost/ --apiKey %OctopusApiKey% --releaseNotes "Jenkins build %BUILD_NUMBER%/"
    

    Please let me know if that helps answer your question.

    Best regards,
    Daniel

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac