Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: use APM pipeline library #15636

Merged
merged 1 commit into from
Jan 20, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: 'git@github.com: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}")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this triggers the CI first time contributors validation, do we need it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PRs are disabled

stash allowEmpty: true, name: 'source', useDefaultExcludes: false
script {
env.GO_VERSION = readFile("${BASE_DIR}/.go-version").trim()
Expand Down