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

fix

parent 7b41b3ad
No related branches found
No related tags found
No related merge requests found
backendDevServicePipeline "crop-progress"
\ No newline at end of file
backendStagingServicePipeline "https://gitlab.cs.umd.edu/dawn/dawn-crop-progress.git", "staging", "crop-progress"
\ No newline at end of file
backendDevServicePipeline "dawn-analytics"
\ No newline at end of file
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-analytics.git'
sh '''
sudo docker build -t docker.registry.dawn.int:5000/dawn/dawn-analytics:latest . -f Dockerfile
sudo docker push docker.registry.dawn.int:5000/dawn/dawn-analytics:latest
'''
}
}
stage('deploy') {
steps {
upgradeKubernetes('dawn-analytics', 'staging')
}
}
}
post {
success {
script {
slack_send_success()
}
}
failure {
script {
slack_send_failure()
}
}
}
}
backendStagingServicePipeline "https://gitlab.cs.umd.edu/dawn/go-backend/dawn-analytics.git", "staging", "dawn-analytics"
\ No newline at end of file
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-analytics.git'
sh '''
sudo docker build -t docker.registry.dawn.int:5000/dawn/dawn-analytics:latest . -f Dockerfile
sudo docker push docker.registry.dawn.int:5000/dawn/dawn-analytics:latest
'''
}
}
stage('deploy') {
steps {
dir('/home/kube/staging') {
sh 'git pull'
sh 'kubectl delete -f dawn-analytics'
sh 'kubectl apply -f dawn-analytics'
}
}
}
}
post {
success {
script {
slack_send_success()
}
}
failure {
script {
slack_send_failure()
}
}
}
}
def call(String serviceName, String serviceEnv) {
dir('/home/kube/' + serviceEnv) {
sh 'git pull'
sh 'kubectl delete -f ' + serviceName
sh 'kubectl apply -f ' + serviceName
}
}
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