jenkins - Git/CI workflow: remote branch to specify version to deploy on integration-test system? -
we using remote branch point @ version deployed our continous-integration system (jenkins) on integration test system (using docker). whenever update remote branch, ci system checks out , builds branch , deploys result on integration test system.
this works fine, long branch follows branch (merges , fast-forward commits). when want switch integration-test system between feature branches, easier reset branch pointer. however, reseting remote branch pointer seems prohibited in default configuration (git reset --hard , remote repository).
before going change default configuration - there (best-practice) alternative using remote branch workflow we've realized?
try following:
- set generic job no git repo
- set job paramaterized build plugin
- provide branch name on demand build parameter have default value
- in build steps, manually kick off git command makes use of branch name via parameter provided
this not automate process unless schedule job run every "x" interval. since there no repo jenkins check, job run every time scheduled.
Comments
Post a Comment