timestamps { ansiColor('xterm') {
node('built-in') {
jobDsl (
sandbox: true,
scriptText: '''
pipelineJob(\'github-demo\') {
definition {
cpsScm {
scm {
git {
remote { github(\'jenkinsci/pipeline-examples\') }
}
}
scriptPath(\'declarative-examples/simple-examples/environmentInStage.groovy\')
}
}
}
'''
) // jobDsl
} // node
}} // ansiColor | timestamps
timestamps { ansiColor('xterm') {
node('built-in') {
jobDsl (
ignoreExisting: true,
sandbox: true,
scriptText: '''folder(\'dsl\') {
displayName(\'dsl\')
description(\'for dsl demo\')
}'''
)
} // node
}} // ansiColor | timestamps