Test Jenkinsfile
Some checks failed
Gitea/Status/pipeline/head There was a failure building this commit

This commit is contained in:
2024-05-05 20:26:02 +02:00
parent 8f30d8780c
commit c197ac6c24

7
Jenkinsfile vendored
View File

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