Skip to content

Commit 8e226f2

Browse files
committed
build: add ClaimPublisher plugin
1 parent 59c58f3 commit 8e226f2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Jenkinsfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env groovy
2+
13
agentConfigImage = 'docker.io/controlplane/gcloud-sdk:latest'
24
agentConfigArgs = '-v /var/run/docker.sock:/var/run/docker.sock ' +
35
'--user=root ' +
@@ -21,6 +23,14 @@ pipeline {
2123
GIT_CREDENTIALS = "ssh-key-jenkins-bot"
2224
}
2325

26+
post {
27+
always {
28+
node("master") {
29+
step([$class: 'ClaimPublisher'])
30+
}
31+
}
32+
}
33+
2434
// stages is "all pipeline stages"
2535
stages {
2636
// the name of this stage, represented in the stage view e.g. https://jenkins.ctlplane.io/job/netassert/

0 commit comments

Comments
 (0)