re: Jenkins Pipelines and their dirty secrets 2. VIEW POST


I found another way to prevent jenkins from overriding parameter values with each run. Seems to be working with latest declarative pipelines:

string(name: 'BRANCH', defaultValue: params.BRANCH ?: 'master')

If no param yet then it will use master, otherwise it will use whatever has been set in the defaults "manually" in the job configuration.


Thanks a lot, Crazily This info is not available any where.

code of conduct - report abuse