Une collection organisée de snippets de code pour accélérer votre développement. Parcourez, recherchez et copiez en un clic.
pipeline {
agent any
environment {
DISABLE_TESTS = 'false'
}
stages { /* ... */ }
}
agent {
docker {
image 'node:16-alpine'
args '-p 3000:3000'
}
}
pipeline {
agent {
docker { image 'maven:3.8.1-jdk-11' }
}
stages {
stage('Test') {
steps {
sh 'mvn --version'
}
}
}
}
pipeline {
agent { label 'linux-x64' }
stages { /* ... */ }
}
agent {
dockerfile true
}