-
Tucker Gary Siegel authoredTucker Gary Siegel authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
staging 1.47 KiB
pipeline {
agent { label 'node2' }
tools { nodejs 'node' }
stages {
stage('notify') {
steps {
script {
slack_send_start()
}
}
}
// stage('build') {
// steps {
// git branch: 'main',
// credentialsId: 'tucker-gitlab-login',
// url: 'https://gitlab.cs.umd.edu/dawn/go-backend/dawn-manager.git'
// sh '''
// sudo docker build -t docker.registry.dawn.int:5000/dawn/dawn-manager:latest . -f Dockerfile
// sudo docker push docker.registry.dawn.int:5000/dawn/dawn-manager:latest
// '''
// }
// }
stage('deploy') {
steps {
sh 'echo $HOSTNAME'
dir('/') {
sh 'ls- l'
}
dir('/home') {
sh 'ls- l'
}
// dir('/home/kube/staging') {
// sh 'git pull'
// sh 'kubectl delete -f dawn-manager'
// sh 'kubectl apply -f dawn-manager'
// }
}
}
}
post {
success {
script {
slack_send_success()
}
}
failure {
script {
slack_send_failure()
}
}
}
}