Remove credentialsId from Git checkout configuration for improved security and flexibility

This commit is contained in:
Enno Gelhaus 2025-10-03 14:44:51 +02:00
parent febfb1e7d6
commit b71f8a7acb
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ pipeline {
[$class: 'CloneOption', depth: 0, noTags: false, reference: '', shallow: false]
],
userRemoteConfigs: [
[credentialsId: 'YOUR_GIT_CREDENTIALS_ID', url: env.GIT_URL ?: ''] // Replace env.GIT_URL if needed
[url: env.GIT_URL ?: ''] // Replace env.GIT_URL if needed
]
])
}