-
Tucker Gary Siegel authoredTucker Gary Siegel authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
staging 1.28 KiB
pipeline {
agent any
tools {
go 'go-1.16'
}
options {
buildDiscarder logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')
}
stages {
stage('checkout') {
steps {
git branch: 'staging',
credentialsId: 'tucker-gitlab-login',
url: 'https://gitlab.cs.umd.edu/dawn/go-backend/dawn-gateway.git'
sh "ls -lat"
}
}
stage('test') {
steps {
sh """
/home/tucker.siegel/bin/dawn-cli test
"""
}
}
stage('build') {
steps {
sh """
/home/tucker.siegel/bin/dawn-cli build-image -p .
"""
}
}
stage('update backend services') {
steps {
sh """
cd /home/tucker.siegel/go/dawn-cli
/home/tucker.siegel/bin/dawn-cli update -s dawn-gateway
"""
}
}
}
post {
always {
cobertura autoUpdateHealth: false, autoUpdateStability: false, coberturaReportFile: '**/coverage.xml', enableNewApi: true, failUnhealthy: false, failUnstable: false, lineCoverageTargets: '80, 40, 60', maxNumberOfBuilds: 0, onlyStable: false, sourceEncoding: 'ASCII', zoomCoverageChart: false
}
}
}