diff --git a/Jenkinsfile b/Jenkinsfile index 344e450..bfc68f9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,16 +3,13 @@ pipeline { environment { SSH_CREDENTIALS_ID = 'SSH' - GIT_CREDENTIALS_ID = 'Gitea-user' } stages { stage('Checkout') { steps { - // Hace un checkout del repositorio Git utilizando las credenciales de Git - withCredentials([usernamePassword(credentialsId: 'SSH', usernameVariable: 'GIT_USERNAME', passwordVariable: 'GIT_PASSWORD')]) { - git credentialsId: 'SSH', url: 'ssh://git@gitssh.mainserverprivate.org:8222/vgallegoiz/Status.git' - } + // Hace un checkout del repositorio Git utilizando las credenciales SSH + git credentialsId: '${SSH_CREDENTIALS_ID}', url: 'git@gitssh.mainserverprivate.org:vgallegoiz/Status.git' } }