We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe062c1 commit 925afb0Copy full SHA for 925afb0
1 file changed
Jenkinsfile
@@ -3,6 +3,7 @@ pipeline {
3
4
environment {
5
GIT_REPO_URL = 'https://github.com/Rapter1990/cryptoexchangeapi.git'
6
+ GIT_REPO_ID = 'fdf97c32-ab81-4fff-ae77-8f833263dc55'
7
BRANCH_NAME = 'main'
8
DOCKERHUB_USERNAME = 'noyandocker'
9
DOCKER_IMAGE_NAME = 'cryptoexchangeapi-jenkins'
@@ -15,7 +16,10 @@ pipeline {
15
16
checkout([
17
$class: 'GitSCM',
18
branches: [[name: "*/${env.BRANCH_NAME}"]],
- userRemoteConfigs: [[url: "${env.GIT_REPO_URL}"]]
19
+ userRemoteConfigs: [[
20
+ url: "${env.GIT_REPO_URL}",
21
+ credentialsId: env.GIT_REPO_ID
22
+ ]]
23
])
24
}
25
0 commit comments