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: remove notification and leftovers Jenkins #1408

Merged
merged 1 commit into from
Apr 3, 2023
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
33 changes: 13 additions & 20 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ pipeline {
BASE_DIR = "src/go.elastic.co/apm"
NOTIFY_TO = credentials('notify-to')
JOB_GCS_BUCKET = credentials('gcs-bucket')
CODECOV_SECRET = 'secret/apm-team/ci/apm-agent-go-codecov'
GO111MODULE = 'on'
GOPATH = "${env.WORKSPACE}"
GOPROXY = 'https://proxy.golang.org'
HOME = "${env.WORKSPACE}"
OPBEANS_REPO = 'opbeans-go'
SLACK_CHANNEL = '#apm-agent-go'
}
options {
Expand All @@ -28,7 +26,7 @@ pipeline {
quietPeriod(10)
}
triggers {
issueCommentTrigger("(${obltGitHubComments()}|^run benchmark tests)")
issueCommentTrigger("^run benchmark tests")
}
parameters {
string(name: 'GO_VERSION', defaultValue: "1.15.10", description: "Go version to use.")
Expand All @@ -42,6 +40,18 @@ pipeline {
GO_VERSION = "${params.GO_VERSION}"
PATH = "${env.PATH}:${env.WORKSPACE}/bin"
}
when {
beforeAgent true
allOf {
anyOf {
branch 'main'
tag pattern: 'v\\d+\\.\\d+\\.\\d+.*', comparator: 'REGEXP'
expression { return params.Run_As_Main_Branch }
expression { return env.GITHUB_COMMENT?.contains('benchmark tests') }
}
expression { return params.bench_ci }
}
}
stages {
/**
Checkout the code and stash it, to use it on other stages.
Expand All @@ -58,18 +68,6 @@ pipeline {
stage('Benchmark') {
agent { label 'microbenchmarks-pool' }
options { skipDefaultCheckout() }
when {
beforeAgent true
allOf {
anyOf {
branch 'main'
tag pattern: 'v\\d+\\.\\d+\\.\\d+.*', comparator: 'REGEXP'
expression { return params.Run_As_Main_Branch }
expression { return env.GITHUB_COMMENT?.contains('benchmark tests') }
}
expression { return params.bench_ci }
}
}
steps {
withGithubNotify(context: 'Benchmark', tab: 'tests') {
deleteDir()
Expand All @@ -87,9 +85,4 @@ pipeline {
}
}
}
post {
cleanup {
notifyBuildResult(goBenchmarkComment: true)
}
}
}