Files
Landing-Page-Librography-Beta/Jenkinsfile
T
2021-11-16 14:10:04 -03:00

39 lines
1.2 KiB
Groovy

pipeline {
agent { label 'Ubuntu18-openjdk1.8'}
environment {
CI = 'true'
}
stages {
stage('Build') {
steps {
// sh 'rm -rf node_modules'
// sh 'sudo apt-get update && sudo apt-get -y --no-install-recommends install && sudo apt-get clean'
// 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 'sudo npm install -g npm@latest'
// sh 'npm install --legacy-peer-deps'
// sh 'sudo npm install -g yarn'
sh 'npm install'
sh 'CI=false npm run build'
sh 'scp -r build/* root@192.168.1.136:/var/www/ -i /home/jenkins/.ssh/id_rsa'
}
}
stage('Test') {
steps {
//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 'echo Deliverskipped'
}
}
}
}