jenkins scripted pipeline - ghdrako/doc_snipets GitHub Wiki
- https://www.jenkins.io/blog/2016/07/18/pipeline-notifications/
- https://www.jenkins.io/doc/pipeline/steps/
- https://www.jenkins.io/doc/book/pipeline/shared-libraries/
- https://github.com/jenkinsci
- https://github.com/bitwiseman
- https://github.com/bitwiseman/pipeline-library
Seed job
https://github.com/bitwiseman/jenkins-job-dsl-seed-all-demo
A scripted pipeline is a groovy-based DSL. It provides greater flexibility and scalability for Jenkins users than the Declarative pipeline.
#!/usr/bin/env groovy
Jenkins scripted pipeline has the following skeleton:
node {
stage (‘Build’ {
//...
}
stage (‘Test’) {
//...
}
}
declarative pipeline can be written by using more elements, as shown next:
pipeline {
agent any
stages {
stage(‘Build’) {
steps {
//…
}
}
stage (‘Test’) {
steps {
//…
}
}
}