Skip to content

MaxxtonGroup/stashnotifier-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IMPORTANT info about this fork

We added a small feauture which adds support for posting automated build comments in your Stash pull requests. This includes

  • A link to the console of a specific build using the tekst "Build #"
  • A success message on a successful build
  • A failure message including the last 20 lines of the build log

In order for this to work the job need to be parameterized with two String parameter

  • PULL_REQUEST_URL -> (stash host)/projects/(project key)/repos/(repository)/pull-requests/(pull request id)
  • PULL_REQUEST_ID -> (pull request id)

We automated the build to trigger on a new pull request or commit for an existing pull request. More information on that can found here: https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket

Stash Build Notifier Plugin for Jenkins

This Jenkins plugin notifies Stash of build results. Failed or successful builds will show up as little icons in the Stash web interface in commit logs. Clicking on such an icon will take the user to the specific build.

Requirements

  • Stash 2.1 or newer. This plugin uses the Atlassian Stash Build REST API which was introduced with Stash 2.1.
  • Jenkins 1.498 or newer

Usage

Use the Stash Notifier by adding it as a Post Step in your Jenkins build job configuration.

  1. In your Jenkins job configuration go to the Post-build Actions section, click on Add post-build action and select Notify Stash Instance
  2. Enter the Stash base URL, e. g. http://localhost:7990 or http://my.company/stash. If in doubt, go to your local Stash server and check the URL in the browser. The URL http://georg@localhost:7991/projects e. g. reveals the server base URL, which is http://localhost:7991 in this case.
  3. Use the Credentials Plugin to select credentials for stash

That's it. If you have configured everything correctly, Jenkins will notify your Stash instance of subsequent builds. The result is illustrated on Atlassians Stash Build Integration wiki page.

Note on credentials

Currently Stash Build Notifier Plugin accepts only raw plaintext credentials as it work over HTTP REST API of stash

Maintainers

License

Apache 2.0 License

About

A Jenkins Plugin to notify Atlassian Stash of build results

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 96.5%
  • HTML 3.5%