Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
staging 1.03 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('update backend services') {
      steps {
        sh """
            cd /home/tucker.siegel/go/dawn-cli
            docker service update --image dawn/dawn-gateway dawn-server_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
        }
    }
}