-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
36 lines (29 loc) · 838 Bytes
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!groovy
pipeline {
agent any
triggers {
githubPush()
}
stages {
stage('Checkout') {
steps {
deleteDir()
checkout scm
}
}
stage('Deploy Config') {
steps {
script {
withCredentials([sshUserPrivateKey(credentialsId: 'github-aura-auth0-deploy-rw', keyFileVariable: 'keyfile')]) {
sh """
git config user.email "[email protected]"
git config user.name "jenkins"
git tag -a "v1.3" -m "Release of version v1.3"
git push origin HEAD:main --tags
"""
}
}
}
}
}
}