현재 CI 통합을 위해 다중 러너와 함께 gitlab.com (로컬 설치 아님)을 사용하고 있습니다. 이것은 내 프로젝트 중 하나에서 훌륭하게 작동하지만 다른 프로젝트에서는 실패합니다.gitlab runner 요청 된 URL이 오류를 반환했습니다 : 403
저는 MSBuild 버전 14.0.23107.0으로 내 호스트에 2012R2를 사용하고 있습니다. 나는 아래의 오류가 액세스 거부 메시지 인 403을 보여줍니다. 내 문제는 변경 권한 설정을 찾는 것입니다.
오류 메시지 :
Running with gitlab-ci-multi-runner 1.5.3 (fb49c47) Using Shell executor... Running on WIN-E0ORPCQUFHS...
Fetching changes...
HEAD is now at 6a70d96 update runner file remote: Access denied fatal: unable to access ' https://gitlab-ci-token:[email protected]/##REDACTED##/ADInactiveObjectCleanup.git/ ': The requested URL returned error: 403 Checking out 60ea1410 as Production...
fatal: reference is not a tree: 60ea1410dd7586f6ed9535d058f07c5bea2ba9c7 ERROR: Build failed: exit status 128
gitlab-ci.yml 파일 : 당신이 당신의 before_script에 현재 디렉토리를 인쇄 할 cd
명령을 추가 추가 할 필요가 같은
variables:
Solution: ADInactiveObjectCleanup.sln
before_script:
#- "echo off"
#- 'call "%VS120COMNTOOLS%\vsvars32.bat"'
## output environment variables (usefull for debugging, propably not what you want to do if your ci server is public)
#- echo.
#- set
#- echo.
stages:
- build
#- test
#- deploy
build:
stage: build
script:
- echo building...
- '"%ProgramFiles(x86)%\MSBuild\14.0\Bin\msbuild.exe" "%Solution%" /p:Configuration=Release'
except:
#- tags
환경 변수 덤프에는 빌드를 시작한 사람의 이메일이 있습니다. 그 사람의 권리는 특정 서버 측 요소의 성공과 실패를 결정할 것입니다. 그 맞습니까? –
나를 위해 환경 변수 덤프를 수행하지 않습니다. 'before_script'블록에 도달하기 전에 주자 정지를 복제/가져올 수없는 경우 –
아, 그래, 약간의 실패 사례입니다. gitlab 러너 config.toml에 git clone이 실패 할 때 실행되는 쉘 명령을위한 옵션을 갖는 것이 좋은 기능 일 수 있습니다. 그래서 당신은 그런 것을 알아낼 수 있습니다. –