Update Jenkinsfile
This commit is contained in:
parent
e1f92c7f33
commit
fc3b8c9f1b
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
|
@ -97,10 +97,14 @@ pipeline {
|
|||
expression { params.RELEASE }
|
||||
}
|
||||
steps {
|
||||
withCredentials([usernamePassword(credentialsId: "gitignuranzapassword", usernameVariable: 'USER', passwordVariable: 'PASS')]) {
|
||||
script {
|
||||
env.encodedPass=URLEncoder.encode(PASS, "UTF-8")
|
||||
}
|
||||
sh "\
|
||||
cd tdlight/target-release/apidocs; \
|
||||
git init; \
|
||||
git remote add origin https://git.ignuranza.net/tdlight-team/tdlight-docs; \
|
||||
git remote add origin https://${USER}:${encodedPass}@git.ignuranza.net/tdlight-team/tdlight-docs; \
|
||||
git config user.email \"andrea@warp.ovh\"; \
|
||||
git config user.name \"Andrea Cavalli\"; \
|
||||
git add -A; \
|
||||
|
@ -114,6 +118,7 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
always {
|
||||
/* clean up directory */
|
||||
|
|
Loading…
Reference in New Issue
Block a user