We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4440da commit 0826fdfCopy full SHA for 0826fdf
pipeline-examples/push-git-repo/pushGitRepo.Groovy
@@ -11,3 +11,7 @@ withCredentials([usernamePassword(credentialsId: 'MyID', passwordVariable: 'GIT_
11
}
12
13
// For SSH private key authentication, try the sshagent step from the SSH Agent plugin.
14
+sshagent (credentials: ['git-credentials']) {
15
+ sh("git tag -a some_tag -m 'Jenkins'")
16
+ sh('git push <REPO> --tags')
17
+}
0 commit comments