Actualizar Jenkinsfile.ci
This commit is contained in:
@@ -116,7 +116,9 @@ post {
|
|||||||
|
|
||||||
def commentsUrl = "${giteaBase}/gitea/api/v1/repos/${owner}/${repo}/issues/${pr}/comments"
|
def commentsUrl = "${giteaBase}/gitea/api/v1/repos/${owner}/${repo}/issues/${pr}/comments"
|
||||||
|
|
||||||
withCredentials([string(credentialsId: 'jenkins-bot-api', variable: 'GITEA_TOKEN')]) {
|
withCredentials([usernamePassword(credentialsId: 'jenkins-bot-api',
|
||||||
|
usernameVariable: 'GITEA_USER',
|
||||||
|
passwordVariable: 'GITEA_TOKEN')]) {
|
||||||
sh """
|
sh """
|
||||||
set -e
|
set -e
|
||||||
curl -sS -X POST \
|
curl -sS -X POST \
|
||||||
@@ -128,6 +130,7 @@ post {
|
|||||||
JSON
|
JSON
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
echo "No es build de PR (CHANGE_ID vacío); no comento."
|
echo "No es build de PR (CHANGE_ID vacío); no comento."
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user