That looks right to me, but I'm very new to GoCD and might be out of my
league on this one. Did you try putting your arguments all on one line and
not having a return in it? "*-c curl xyz $GO_PIPELINE_COUNTER*"

Did you test with an environment variable that you defined?

On Thu, May 9, 2019 at 11:04 AM Martin c <[email protected]>
wrote:

> sorry should have mentioned, it gets replaced with *${env.GO_PIPELINE_COUNTER}
> *and not the actual counter value
>
> On Thursday, May 9, 2019 at 3:50:16 PM UTC+1, Chris Flynn wrote:
>>
>> It seems like that page is exactly what you need. Is it not working? Do
>> you get an error message? What does the task and output look like?
>>
>> On Thu, May 9, 2019 at 10:45 AM Martin c <[email protected]>
>> wrote:
>>
>>> even doing something like
>>> command: sh
>>> arguments: -c
>>> curl xyz $*GO_PIPELINE_COUNTER*
>>>
>>> doesn't work
>>>
>>> On Thursday, May 9, 2019 at 3:21:25 PM UTC+1, Martin c wrote:
>>>>
>>>> Is it possible to use the Standard GoCD environment variables in a gocd
>>>> pipeline? I'm trying to use it in a task e.g. *$GO_PIPELINE_COUNTER*
>>>> or *%GO_PIPELINE_COUNTER%* but can't get it to work
>>>>
>>> --
>>> 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/241ad867-b9ee-43db-9c40-2007dd14ebb3%40googlegroups.com
>>> <https://groups.google.com/d/msgid/go-cd/241ad867-b9ee-43db-9c40-2007dd14ebb3%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> 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/8ada5a74-8c20-4fa2-8262-77b2e668d4bb%40googlegroups.com
> <https://groups.google.com/d/msgid/go-cd/8ada5a74-8c20-4fa2-8262-77b2e668d4bb%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAJwF_efewgk6qi9XS%2BkAnELEqZqKjX8WvykM_%2BrJ7E6ijuRO3g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to