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

add stage

parent 810b62e2
No related branches found
No related tags found
No related merge requests found
pipeline { backendServicePipeline "https://gitlab.cs.umd.edu/dawn/go-backend/dawn-gateway.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-gateway.git'
sh "ls -lat"
}
}
stage('test') {
steps {
sh """
dawn-cli test
"""
}
}
stage('build') {
steps {
sh """
dawn-cli build-image -p .
"""
}
}
stage('update backend services') {
steps {
git branch: 'main',
credentialsId: 'tucker-gitlab-login',
url: 'https://gitlab.cs.umd.edu/dawn/go-backend/dawn-cli'
sh """
dawn-cli deploy
"""
}
}
}
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(String repo, String branch) { def call(String repo, String branch, Bool) {
pipeline { pipeline {
agent any agent any
tools { tools {
...@@ -25,6 +25,15 @@ def call(String repo, String branch) { ...@@ -25,6 +25,15 @@ def call(String repo, String branch) {
} }
} }
stage("build docs") {
steps {
sh """
go get https://github.com/swaggo/swag
swag init --parseDependency --parseDepth 2
"""
}
}
stage('build') { stage('build') {
steps { steps {
sh """ sh """
......
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