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

change

parent aae8ee03
No related branches found
No related tags found
No related merge requests found
pipeline { backendServicePipeline "https://gitlab.cs.umd.edu/dawn/go-backend/dawn-user.git", "staging"
agent any \ No newline at end of file
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-user.git'
sh "ls -lat"
}
}
testBuildDeploy()
}
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
}
}
}
\ No newline at end of file
def call(Map config=[:]) { def call(String repo, String branch) {
pipeline {
agent any
tools {
go 'go-1.16'
}
options {
buildDiscarder logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '5', daysToKeepStr: '', numToKeepStr: '5')
}
stages {
stage('checkout') {
steps {
git branch: branch,
credentialsId: 'tucker-gitlab-login',
url: repo
}
}
stage('test') { stage('test') {
steps { steps {
sh """ sh """
...@@ -25,4 +43,12 @@ def call(Map config=[:]) { ...@@ -25,4 +43,12 @@ def call(Map config=[:]) {
""" """
} }
} }
}
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
}
}
}
} }
\ 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