fix(jenkins): use GIT_TOKEN as credential ID for Gitea
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
4
ci/Jenkinsfile
vendored
4
ci/Jenkinsfile
vendored
@@ -30,7 +30,7 @@
|
|||||||
*
|
*
|
||||||
* Credenziali Jenkins richieste
|
* Credenziali Jenkins richieste
|
||||||
* ------------------------------
|
* ------------------------------
|
||||||
* gitea-credentials Username/Password — token Gitea (checkout + push)
|
* GIT_TOKEN Username/Password — token Gitea (checkout + push)
|
||||||
* registry-credentials Username/Password — Docker registry
|
* registry-credentials Username/Password — Docker registry
|
||||||
*
|
*
|
||||||
* ============================================================================
|
* ============================================================================
|
||||||
@@ -465,7 +465,7 @@ else:
|
|||||||
|
|
||||||
// Commit e push solo se ci sono modifiche staged
|
// Commit e push solo se ci sono modifiche staged
|
||||||
withCredentials([usernamePassword(
|
withCredentials([usernamePassword(
|
||||||
credentialsId: 'gitea-credentials',
|
credentialsId: 'GIT_TOKEN',
|
||||||
usernameVariable: 'GITEA_PUSH_USR',
|
usernameVariable: 'GITEA_PUSH_USR',
|
||||||
passwordVariable: 'GITEA_PUSH_PSW'
|
passwordVariable: 'GITEA_PUSH_PSW'
|
||||||
)]) {
|
)]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user