Hello,
As you have discovered, the command interpreter in GoCD is not a shell and
does not perform environment variable substitution.
You can work around this limitation by explicitly invoking a shell (e.g.
bash -c "echo ${GO_STAGE_COUNTER}") but the preferred method is to save the
commands you want GoCD to execute into a script that is stored in your
version control system and have GoCD run that.
Hope this helps,
Jason
On Tuesday, 5 April 2022 at 00:44:44 UTC-4 [email protected] wrote:
> HI I'm new to GOCD and currently evaluate this product to replace existing
> CICD pipeline . I try to do simple thing to build docker image and tag the
> version image to running build count from GoCD but unfortunatelly no
> success.
>
> Executing simple echo ${GO_STAGE_COUNTER} not resolve to any return value
> instead return the original string format
>
> [image: gocd.png]
>
--
You received this message because you are subscribed to the Google Groups
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/go-cd/b95222ce-6811-41c8-bc8b-1cf31c315ae0n%40googlegroups.com.