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

u

parent db5aabe1
No related branches found
No related tags found
No related merge requests found
...@@ -2,57 +2,63 @@ pipeline { ...@@ -2,57 +2,63 @@ pipeline {
agent { label 'node3' } agent { label 'node3' }
tools { nodejs 'node' } tools { nodejs 'node' }
stages { stages {
stage('notify') { stage("v") {
steps { steps {
script { sh '''node -v'''
slack_send_start()
}
} }
} }
stage('build') { }
options { // stage('notify') {
timeout(time: 5, unit: 'MINUTES') // steps {
} // script {
steps { // slack_send_start()
git branch: 'main', // }
credentialsId: 'tgsiegel-gitlab-ssh', // }
url: 'git@gitlab.cs.umd.edu:dawn/dawn-docs.git' // }
// stage('build') {
// options {
// timeout(time: 5, unit: 'MINUTES')
// }
// steps {
// git branch: 'main',
// credentialsId: 'tgsiegel-gitlab-ssh',
// url: 'git@gitlab.cs.umd.edu:dawn/dawn-docs.git'
sh ''' // sh '''
npm i // npm i
npm run build:internal // npm run build:internal
''' // '''
} // }
} // }
stage('copy build') { // stage('copy build') {
steps { // steps {
sh ''' // sh '''
sudo rm -rf /var/www/dawn_docs/public // sudo rm -rf /var/www/dawn_docs/public
sudo cp -r public /var/www/dawn_docs // sudo cp -r public /var/www/dawn_docs
''' // '''
} // }
} // }
stage('restart nginx') { // stage('restart nginx') {
steps { // steps {
sh ''' // sh '''
sudo service nginx restart // sudo service nginx restart
''' // '''
} // }
} // }
} // }
post { // post {
success { // success {
script { // script {
slack_send_success() // slack_send_success()
} // }
} // }
failure { // failure {
script { // script {
slack_send_failure() // 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