We have a build that is working fine with git to monitor and build all
branches in our repository.

- For Branches to build we use the default of: '**'
- We skip internal tagging and we don't do any merging operations.

To release a version of our product, we tag a git commit on one of our
stable branches, then we want to build that specific tag to make the build
to deploy.

What we would like to do is setup our normal build to have and additional
parameter:  GOLD_BUILD_TAG

So the steps we would like to do for a release build are:
  * Tag a commit using a gold tag. (ex: '2.8.3')
  * Load Jenkins and go to our normal build job, queue a manual build with
the value of GOLD_BUILD_TAG set to 2.8.3
  * Have Jenkins checkout the code for that tag and run the normal build
scripts
  * The scripts will notice it is a gold build and do the right thing to
create a package

The problem is we can't figure out how to do the 3rd step and make Jenkins
git plugin checkout the code for the tag.

What are we missing?  Is this possible?  Can we do it using a parameter in
a "normal" build?

-Allen

Reply via email to