This is a document
[pipeline]
----
// Script //
node {
stage('Build') {
checkout scm
// Install dependencies
sh 'npm install'
}
}
// Declarative //
pipeline {
agent docker: 'node:6.3'
stages {
stage('Build') {
sh 'npm install'
}
}
}
----
-
-
Save rtyler/0a1453c41864cd469a02b14f54df1732 to your computer and use it in GitHub Desktop.