user interface - Configuring Jenkins Multibranch Pipelines without the GUI -


is possible configure jenkins multibranch pipelines - associated credentials, plugins (for bitbucket repos plugin required), , nodes - terminal?

my concern that, @ best, automating configuration of jenkins multibranch pipeline may have include manually performing above tasks via gui every time.

you can use dsl plugin generate multi branch pipeline job

here example

multibranchpipelinejob('pipeline-test') {         branchsources {             git {                 remote('git@github.com:xxx/reponame.git')                 credentialsid('xxxxx-yyyyy-zzzzz')                 excludes('master')             }         }         description ("""<p> <b>generate dsl - not change manually </b> <p>""")         triggers {             periodic(2)         }         orphaneditemstrategy {             discardolditems {                 numtokeep(0)                 daystokeep(0)             }         }     } 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -