Update Jenkinsfile

This commit is contained in:
Andrea Cavalli 2020-10-30 12:30:31 +01:00
parent e1f92c7f33
commit fc3b8c9f1b

7
Jenkinsfile vendored
View File

@ -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 */