|
|
|
@ -11,19 +11,21 @@ pipeline { |
|
|
|
sh 'sudo apt-get install -y curl ' |
|
|
|
sh 'curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -' |
|
|
|
sh 'sudo apt-get install -y nodejs && sudo apt-get install -y nginx' |
|
|
|
//sh 'npm install' |
|
|
|
sh 'npm install' |
|
|
|
} |
|
|
|
} |
|
|
|
stage('Test') { |
|
|
|
steps { |
|
|
|
sh './jenkins/scripts/test.sh' |
|
|
|
//sh './jenkins/scripts/test.sh' |
|
|
|
sh 'echo Testskipped' |
|
|
|
} |
|
|
|
} |
|
|
|
stage('Deliver') { |
|
|
|
steps { |
|
|
|
sh './jenkins/scripts/deliver.sh' |
|
|
|
input message: 'Finished using the web site? (Click "Proceed" to continue)' |
|
|
|
sh './jenkins/scripts/kill.sh' |
|
|
|
//sh './jenkins/scripts/deliver.sh' |
|
|
|
//input message: 'Finished using the web site? (Click "Proceed" to continue)' |
|
|
|
//sh './jenkins/scripts/kill.sh' |
|
|
|
sh 'echo Deliverskipped' |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|