Skip to content

Parameters usage in bash script #11867

Discussion options

You must be logged in to vote

You can't use GoCD pipeline parameters within the content of a separately source controlled shell script outside the pipeline configuration.

GoCD can only replace parameters within job configuration it knows about at "trigger time", not something within source control or an artifact sourced by the agent at runtime.

Presumably ./pipelines/deployVm/windowsAzure/jobs/preConfig/preConfig.sh is source controlled or from an artifact.

The shell script argument to bash has no special meaning to GoCD, it doesn't even know it's a file it 'could' look inside - it's just a string it passes to bash when forking a process within the agent.

If you want to supply variables to a shell script at runtime, y…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@chadlwilson
Comment options

@dauphinpasdroit
Comment options

@chadlwilson
Comment options

Answer selected by dauphinpasdroit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants