Remove credentialsId from Git checkout configuration for improved security and flexibility
This commit is contained in:
parent
febfb1e7d6
commit
b71f8a7acb
|
|
@ -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
|
||||
]
|
||||
])
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue