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

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -