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

update

parent d1ba72c8
No related branches found
No related tags found
No related merge requests found
pipeline {
agent { label 'node3' }
tools { nodejs 'node' }
stages {
stage('notify') {
steps {
script {
slack_send_start()
}
}
}
stage('build') {
steps {
sh '''
npm i
npm run build:dev
'''
}
}
stage('copy build') {
steps {
sh '''
sudo rm -rf /var/www/dawn_dev/build
sudo cp -r build /var/www/dawn_dev
'''
}
}
stage('restart nginx') {
steps {
sh '''
sudo service nginx restart
'''
}
}
}
post {
success {
script {
slack_send_success()
}
}
failure {
script {
slack_send_failure()
}
}
}
}
pipeline {
agent { label 'node2' }
tools { nodejs 'node' }
stages {
stage('notify') {
steps {
script {
slack_send_start()
}
}
}
stage('build') {
steps {
git branch: 'staging',
credentialsId: 'tucker-gitlab-login',
url: 'https://gitlab.cs.umd.edu/dawn/dawn-client'
sh '''
npm i
npm run build
'''
}
}
stage('copy build') {
steps {
sh '''
sudo rm -rf /var/www/dawn_docs/public
sudo cp -r public /var/www/dawn_docs
'''
}
}
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