terça-feira, 17 de junho de 2014

Pig Design Patterns: free book giveaway

Book giveaway
Hold a chance to win free copy of Pig Design Patterns, just by commenting and sharing! For the contest we have 3 e-copies of Pig Design Patterns, to be given away to 3 lucky winners.

How you can win
To win your copy of this book, all you need to do is come up with a comment below highlighting the reason “why you would like to win this book” and share a post about this book with this unique short link on your social media profiles: bit.ly/1iuZCUL

Don’t forget to drop your email address and the permalink of your social media post in your comment.

Note: Social Media post must contain this unique short link: bit.ly/1iuZCUL

Duration of the contest & selection of winners:
The contest is valid till 30th June 2014, and is open to everyone. Winners will be selected on the basis of their comment posted.

quarta-feira, 5 de março de 2014

Hooking Bitbucket up with Jenkins parameterized jobs

Bitbucket repositories allow us to setup hooks which notify/trigger Jenkins' jobs about newly pushed code. The process to create such a hook is documented here. However, it doesn't mention how to integrate with Jenkins parameterized jobs.
After reading the Jenkins documentation and a few trial and error I managed integrate Bitbucket and Jenkins parameterized jobs.
The hook management form presents 4 fields:

  1. Endpoint: Here, you’ll need to set your Jenkins URL in the following format — http://username:apitoken@your.jenkins.url/job/your.job.name/buildWithParameters 
  2. Module name: (Optional)
  3. Project name: (Leave Empty)
  4. Token: It’s the authentication token you defined in your Jenkins job settings 

The gotcha is leaving the project name field blank and include it in the endpoint URL appended with buildWithParameters.