New answers tagged

2

I often have an extra Prepare stage to calculate these logics: stage('Prepare') { steps { script { switch(branch_name) { case 'dev' : env.VAR_1 = x; case 'master' : env.VAR_1 = y; } } } } env. will set the global environment for you.


Top 50 recent answers are included