Test Jenkinsfile
Some checks failed
Gitea/Status/pipeline/head There was a failure building this commit
Some checks failed
Gitea/Status/pipeline/head There was a failure building this commit
This commit is contained in:
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@@ -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'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user