A
A
AnotherAnkor2018-06-13 12:09:40
Jenkins
AnotherAnkor, 2018-06-13 12:09:40

How to set options for pipline?

Colleagues, tell me how you can set the parameters for the pipeline?
To make parametrized job - Ok, it is clear. But if you collect the job in pipline, then it becomes possible to use only the default parameters.
And how to set parameters for all jobs on one page to launch a whole pipline?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AnotherAnkor, 2018-06-13
@AnotherAnkor

The answer is here.
And if you also want to collect the console output in one place (I needed it in the pipeline console), then you can use the following example:

def checkjob = build job: 'job name', parameters: [ any params here]
checklog = Jenkins.getInstance().getItemByFullName('job name').getBuildByNumber(checkjob.getNumber()).log
println checklog

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question