Skip to content
Snippets Groups Projects
Commit 93466d7e authored by Tucker Gary Siegel's avatar Tucker Gary Siegel
Browse files

update client build

parent e55c170d
No related branches found
No related tags found
No related merge requests found
pipeline { pipeline {
agent { label 'node3' } agent { label 'node3' }
tools { nodejs 'node' } tools { nodejs 'node' }
stages { stages {
stage('notify') { stage('notify') {
steps { steps {
script { script {
slack_send_start() slack_send_start()
} }
} }
} }
stage('build') { stage('build') {
steps { sh '''
sh ''' make dist-latest
npm i '''
npm run build:dev }
'''
} }
}
post {
stage('copy build') { success {
steps { script {
sh ''' slack_send_success()
sudo rm -rf /var/www/dawn_dev/build }
sudo cp -r build /var/www/dawn_dev }
''' failure {
} script {
} slack_send_failure()
}
stage('restart nginx') { }
steps { }
sh ''' }
sudo service nginx restart
'''
}
}
}
post {
success {
script {
slack_send_success()
}
}
failure {
script {
slack_send_failure()
}
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment