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 }
|
expression { params.RELEASE }
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
|
withCredentials([usernamePassword(credentialsId: "gitignuranzapassword", usernameVariable: 'USER', passwordVariable: 'PASS')]) {
|
||||||
|
script {
|
||||||
|
env.encodedPass=URLEncoder.encode(PASS, "UTF-8")
|
||||||
|
}
|
||||||
sh "\
|
sh "\
|
||||||
cd tdlight/target-release/apidocs; \
|
cd tdlight/target-release/apidocs; \
|
||||||
git init; \
|
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.email \"andrea@warp.ovh\"; \
|
||||||
git config user.name \"Andrea Cavalli\"; \
|
git config user.name \"Andrea Cavalli\"; \
|
||||||
git add -A; \
|
git add -A; \
|
||||||
|
@ -114,6 +118,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
/* clean up directory */
|
/* clean up directory */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user