Skip to content

Commit f1d7688

Browse files
committed
Document proper GitLab CI credentials use on Windows
1 parent 6fe982c commit f1d7688

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.gitlab-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ build-linux:
1717
allow_failure: true
1818
- if: $CI_PIPELINE_SOURCE != "merge_request_event" # Only on push events (same as 'except: merge_requests')
1919
before_script: # This is required for pulling dependencies on projects
20-
- git config --global credential.helper store
20+
#- git config --global credential.helper store # done in cmake-cpp image
2121
- echo "https://gitlab-ci-token:${CI_JOB_TOKEN}@${CI_SERVER_HOST}" > ~/.git-credentials
2222
script:
2323
- cmake --version && $CC --version && $CXX --version
@@ -44,8 +44,8 @@ build-windows:
4444
rules:
4545
- if: $CI_PIPELINE_SOURCE != "merge_request_event" # Only on push events (same as 'except: merge_requests')
4646
before_script: # This is required for pulling dependencies on projects
47-
- git config --system credential.helper store
48-
- echo "https://gitlab-ci-token:${CI_JOB_TOKEN}@${CI_SERVER_HOST}`n" > ~/.git-credentials
47+
#- git config --system credential.helper manager # done in cmake-cpp image
48+
- cmdkey /generic:git:https://${env:CI_SERVER_HOST} /user:gitlab-ci-token /pass:${env:CI_JOB_TOKEN}
4949
script:
5050
- cmake --version
5151
- mkdir -p build

0 commit comments

Comments
 (0)