Strange behaviour when running /bin/bash task in v19.12.0

26 views
Skip to first unread message

Mike S

unread,
Jan 8, 2020, 6:54:13 AM1/8/20
to go-cd
Hi all,

I am writing regarding an issue I've detailed on Gitter

              <exec command="/bin/bash">
                <arg>-c</arg>
                <arg>APP=testapp DEV_STACK_ENABLED=true gcoall/gco/ci/deploy.sh</arg>
                <runif status="passed" />
              </exec>

Error:
/bin/bash: -
: invalid option
Usage:    /bin/bash [GNU long option] [option] ...

Any ideas?

Thanks, M.

Ashwanth Kumar

unread,
Jan 8, 2020, 7:03:06 AM1/8/20
to go...@googlegroups.com
Nothing seems wrong at the snippet. Could it be similar to the one that's discussed here

--
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 go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/9c4b7e29-d367-49cc-9a90-24860d701926%40googlegroups.com.


--

Ashwanth Kumar / ashwanthkumar.in

Mike S

unread,
Jan 8, 2020, 7:09:06 AM1/8/20
to go-cd
Even this fails with the same error -

              <exec command="/bin/bash">
                <arg>-c</arg>
                <arg>echo $HOME</arg>
                <runif status="passed" />
              </exec>

Totally mind blown right now O_O

Screenshot 2020-01-08 at 17.38.32.png



Thanks M

Mike S

unread,
Jan 8, 2020, 8:23:40 AM1/8/20
to go-cd
I found the bug.  If I removed `<runif status="passed" />` from the XML definition, this works fine.

O_O
Reply all
Reply to author
Forward
0 new messages