jenkinsci / jenkinsfile-runner

A command line tool to run Jenkinsfile as a function
MIT License
1.12k stars 290 forks source link

Persist Jenkins config between runs #628

Open paullewisn opened 2 years ago

paullewisn commented 2 years ago

What feature do you want to see added?

I'm running jenkins via this command:

[~/jenkins/bin]$ ./jenkinsfile-runner run -f ../<path-to-jf>/Jenkinsfile.groovy -p plugins.txt --httpPort 5001 -w .

(I have the war file exploded in the bin folder)

My Jenkinsfile starts:

node('master') {
....

Which generates the error:

‘Jenkins’ doesn’t have label ‘master’

So I go into Jenkins and add the master label to the root node.

When I rerun the command, Jenkins has lost its state and I need to set the label again.

Upstream changes

No response

oleg-nenashev commented 2 years ago

What does block you from using the configuration-as-code YAML for it?