-
Notifications
You must be signed in to change notification settings - Fork 31
Pipeline Control Options
Most pipeline configuration will happen in pipeline.yml
. This is where the list of steps is defined.
There are some settings for the pipeline engine itself that take effect even before the pipeline.yml
file is read. These are controlled in the Jenkinsfile
.
A typical pipeline Jenkinsfile
will look like:
@Library('poet-pipeline@master')
def wf = new com.tmobile.sre.jenkins.Workflow()
wf.start(agent_label: "Linux")
The following options are available:
agent_label
selects the agent configuration where pipeline execution will happen. In most cases, this should be set to Linux
.
wf.start(agent_label: "Linux")
log_level
controls logging from the pipeline engine. It defaults to warn
which shows only warn
and above (error
) messages. Available values are debug
, info
, warn
, and error
. It does not have any effect on logging that happens in the pipeline step containers.
wf.start(agent_label: "Linux", log_level: "debug")
pipeline
controls which yaml file to read as your pipeline definition, and defaults to pipeline.yml
.
wf.start(agent_label: "Linux", pipeline: "pipeline-test.yml")