28 lines
708 B
Groovy
28 lines
708 B
Groovy
pipeline {
|
|
agent { label 'Ubuntu18-openjdk1.8'}
|
|
|
|
environment {
|
|
CI = 'true'
|
|
}
|
|
stages {
|
|
stage('Build') {
|
|
steps {
|
|
nodejs(nodeJSInstallationName: 'Node 6.x', configId: '<config-file-provider-id>') {
|
|
sh 'npm config ls'
|
|
}
|
|
}
|
|
}
|
|
stage('Test') {
|
|
steps {
|
|
sh './jenkins/scripts/test.sh'
|
|
}
|
|
}
|
|
stage('Deliver') {
|
|
steps {
|
|
sh './jenkins/scripts/deliver.sh'
|
|
input message: 'Finished using the web site? (Click "Proceed" to continue)'
|
|
sh './jenkins/scripts/kill.sh'
|
|
}
|
|
}
|
|
}
|
|
} |