jenkinscigit-parameter-plugin | Jenkins Git Parameter
Thispluginallowsyoutoassigngitbranch,tag,pullrequestorrevisionnumberasparameterinyourbuilds.Important!Thereisnoneedtosetupanythingspecialinpluginsettings.ThispluginwillreadGITSCMconfigurationfromyourprojects.ThispluginuseddirectlytheGitPlugin[1]andGitClientPlugin[2].Important!Workswithversion0.9.4orgreaterBranchtype-Basicusage//Usinggitwithoutcheckoutpipeline{agentanyparameters{gitParameterbranchFilter:origin/(.*),defaultValue:master,name:BRANCH,type:PT_BRANCH}stages{stage(Example){steps{git...
This plugin allows you to assign git branch, tag, pull request or revision number as parameter in your builds.
Important! There is no need to set up anything special in plugin settings. This plugin will read GIT SCM configuration from your projects. This plugin used directly the Git Plugin[1] and Git Client Plugin[2].
Important! Works with version 0.9.4 or greater
Branch type - Basic usage // Using git without checkout pipeline { agent any parameters { gitParameter branchFilter: origin/(.*), defaultValue: master, name: BRANCH, type: PT_BRANCH } stages { stage(Example) { steps { git branch: "${params.BRANCH}", url: https://github.com/jenkinsci/git-parameter-plugin.git } } } } properties([ parameters([ gitParameter(branch: , branchFilter: origin/(.*), defaultValue: master, desc...