CI can’t download artifacts x509: certificate signed by unknown authority need help
I use gitlb.com and when I run pipline I getting error
-
- My ci file config*
variables:
GIT_SSL_NO_VERIFY: 'true'
## API variables
API_PUBLISH_PATH: '.\API.www\publish\$CI_PIPELINE_ID\'
API_PUBLISH_DATA_PATH: '.\API.www\publish\$CI_PIPELINE_ID\*.*'
APP_API_POOL_NAME: 'www.api'
IIS_APP_API_PATH: 'C:\inetpub\wwwroot\Api'
stages: # List of stages for jobs, and their order of execution
- build-api
- deploy-api
#-----API project
# Build API project
build_api_job:
stage: build-api
tags:
- sumatus_prod
only:
- master # which branches deploy
script:
- dotnet restore
- dotnet build --no-restore
- dotnet publish ./API.www/API.www.csproj -c Release -o $API_PUBLISH_PATH
artifacts:
expire_in: '5 days'
paths:
- $API_PUBLISH_PATH
# Deploy API project
deploy_api_job:
tags:
- sumatus_prod
only:
- master
stage: deploy-api
script:
- |
if((Get-WebSiteState -Name $APP_API_POOL_NAME).Value -ne 'Stopped'){
Write-Output ('Stopping WebSite: {0}' -f $APP_API_POOL_NAME)
Stop-WebSite -Name $APP_API_POOL_NAME
}
- |
if((Get-WebAppPoolState -Name $APP_API_POOL_NAME).Value -ne 'Stopped'){
Write-Output ('Stopping Application Pool: {0}' -f $APP_API_POOL_NAME)
Stop-WebAppPool -Name $APP_API_POOL_NAME
}
- "Copy-Item $API_PUBLISH_DATA_PATH -Destination $IIS_APP_API_PATH -Force"
- "Start-Sleep -s 5"
- |
if((Get-WebAppPoolState -Name $APP_API_POOL_NAME).Value -ne 'Started'){
Write-Output ('Starting Application Pool: {0}' -f $APP_API_POOL_NAME)
Start-WebAppPool -Name $APP_API_POOL_NAME
}
- |
if((Get-WebSiteState -Name $APP_API_POOL_NAME).Value -ne 'Started'){
Write-Output ('Starting WebSite: {0}' -f $APP_API_POOL_NAME)
Start-WebSite -Name $APP_API_POOL_NAME
}
needs: [build_api_job]
dependencies:
- build_api_job
-
I try changes giltab runners
-
My runner config*
concurrent = 1
check_interval = 0
log_level = "warning"
sentry_dsn = "https://......."
[session_server]
session_timeout = 1800
[[runners]]
name = "production server deployer"
url = "https://gitlab.com/"
token = "........"
executor = "shell"
environment = ["GIT_SSL_NO_VERIFY=true"]
shell = "powershell"
tls_verify = "false"
[runners.custom_build_dir]
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]
[runners.cache.azure]
Maybe someones know where is the problem?