Skip to content
GitLab Next
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gitlab-runner gitlab-runner
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2,438
    • Issues 2,438
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 120
    • Merge requests 120
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • gitlab-runnergitlab-runner
  • Issues
  • #4115
Closed
Open
Created Apr 04, 2019 by Uwe Hartwig@M3ssman

Powershell Project Secret Variable Substitution

Using gitlab-runner (11.9 win64 bit) configured with executor = "shell" and shell = "powershell" and a gitl-ci.config containing

 script: 
   - $time = Get-Date -f yyyy-MM-dd-HH-mm
   - D:\\qislsf\\apache-ant-1.10.5\\bin\\ant.bat -DJVM_VAR=$env:SECRET_VAR > D:\\log\\build_$time.log

I don't understand why D:\\ant\\ant.bat -DJVM_VAR=$env:SECRET_VAR is not substituted, whereas D:\\ant\\ant.bat -DJVM_VAR=$SECRET_VAR$ is processed as expected.

According to https://docs.gitlab.com/ee/ci/variables/, I would rather expect that "$env:SECRET_VAR" would be suffcient?

Solution with what GitLab documentation should be updated with

#4115 (comment 157692820)

Edited Apr 05, 2019 by Steve Azzopardi
Assignee
Assign to
Time tracking