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

add new staging code

parent 75a9c94a
No related branches found
No related tags found
No related merge requests found
pipeline {
agent any
tools {
go 'go-1.16'
}
steps {
git branch: 'staging',
credentialsId: 'tucker-gitlab-login',
url: 'https://gitlab.cs.umd.edu/dawn/go-backend/dawn-user.git'
sh "ls -lat"
}
stages {
stage('build new dawn-cli') {
git branch: 'main',
credentialsId: 'tucker-gitlab-login',
url: 'https://gitlab.cs.umd.edu/dawn/go-backend/dawn-cli/-/tree/main'
sh """
cd dawn-cli
go build
cp dawn-cli /home/tucker.siegel/bin/dawn-cli
cd ..
"""
}
stage('teardown') {
sh """
/home/tucker.siegel/bin/dawn-cli teardown
"""
}
stage('cleanup old images') {
steps {
sh """
docker rmi $(docker images | grep 'dawn-gateway-dev')
docker rmi $(docker images | grep 'dawn-user-dev')
docker rmi $(docker images | grep 'dawn-gdd-dev')
docker rmi $(docker images | grep 'crop-progress-tool-dev')
"""
}
}
}
}
\ No newline at end of file
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