Skip to content

Commit

Permalink
ci: use APM pipeline library (#15636)
Browse files Browse the repository at this point in the history
it uses APM pipeline library configured in the instance
  • Loading branch information
kuisathaverat authored Jan 20, 2020
1 parent ec2673e commit 0df3a9f
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
#!/usr/bin/env groovy

library identifier: 'apm@master',
retriever: modernSCM(
[$class: 'GitSCMSource',
credentialsId: 'f94e9298-83ae-417e-ba91-85c279771570',
id: '37cf2c00-2cc7-482e-8c62-7bbffef475e2',
remote: '[email protected]:elastic/apm-pipeline-library.git'])
@Library('apm@current') _

pipeline {
agent { label 'ubuntu && immutable' }
Expand Down Expand Up @@ -36,12 +31,7 @@ pipeline {
stage('Checkout') {
options { skipDefaultCheckout() }
steps {
//TODO we need to configure the library in Jenkins to use privileged methods.
//gitCheckout(basedir: "${BASE_DIR}")
dir("${BASE_DIR}"){
checkout scm
githubEnv()
}
gitCheckout(basedir: "${BASE_DIR}")
stash allowEmpty: true, name: 'source', useDefaultExcludes: false
script {
env.GO_VERSION = readFile("${BASE_DIR}/.go-version").trim()
Expand Down

0 comments on commit 0df3a9f

Please sign in to comment.