Hi Ketan,

the problem also appears, if I run the script on the go agent. What does 
you mean exactly with the env command? I already use the -Denv=ci in my 
script. I do not get any errors about the environment variables. Here is 
the terminal output:

11:13:05.464 [go] setting environment variable 'GO_SERVER_URL' to value 
'https://127.0.0.1:8154/go' 
11:13:05.464 [go] setting environment variable 'GO_TRIGGER_USER' to value 
'anonymous' 
11:13:05.464 [go] setting environment variable 'GO_PIPELINE_NAME' to value 
'GaugeTests' 
11:13:05.464 [go] setting environment variable 'GO_PIPELINE_COUNTER' to 
value '27' 
11:13:05.464 [go] setting environment variable 'GO_PIPELINE_LABEL' to value 
'27' 
11:13:05.464 [go] setting environment variable 'GO_STAGE_NAME' to value 
'GaugeStage' 
11:13:05.464 [go] setting environment variable 'GO_STAGE_COUNTER' to value 
'1' 
11:13:05.464 [go] setting environment variable 'GO_JOB_NAME' to value 
'gaugeJob' 
11:13:05.464 [go] setting environment variable 'GO_REVISION_GAUGE_GIT' to 
value '9fc3b3685626e3b39a3f2d182bd63793b289cc46' 
11:13:05.464 [go] setting environment variable 'GO_TO_REVISION_GAUGE_GIT' 
to value '9fc3b3685626e3b39a3f2d182bd63793b289cc46' 
11:13:05.464 [go] setting environment variable 'GO_FROM_REVISION_GAUGE_GIT' 
to value '9fc3b3685626e3b39a3f2d182bd63793b289cc46' 

11:13:05.473 [go] Start to build GaugeTests/27/GaugeStage/1/gaugeJob on 
Mac-mini [/Users/admin/Library/Application Support/Go Agent] 
11:13:05.473 [go] Current job status: passed. 

11:13:05.473 [go] Start to execute task: <exec command="sh" > 
<arg>semigator_GaugeTests_ci.sh</arg> 
</exec>. 

11:13:06.707 [INFO] Scanning for projects... 

11:13:06.905 [INFO] 
11:13:06.906 [INFO] 
------------------------------------------------------------------------ 
11:13:06.906 [INFO] Building Semigator.Gauge 1.0 
11:13:06.906 [INFO] 
------------------------------------------------------------------------ 
11:13:07.345 [INFO] 
11:13:07.345 [INFO] --- gauge-maven-plugin:1.1.0:execute (default-cli) @ 
Semigator.Gauge --- 

11:13:10.268 [ValidationError] /Users/admin/Library/Application Support/Go 
Agent/pipelines/GaugeTests/specs/basicmenutest.spec:5: Step implementation 
not found => 'Open Master Agreement Start Page'

... and then the step implementation not found error for all specs.


Cheers,
michael

Am Mittwoch, 24. August 2016 11:16:40 UTC+2 schrieb Ketan Padegaonkar:
>
> Michael,
>
> Can login into the go agent and run the same command as the user that runs 
> the go agent process? If it still continues to fail, you should probably 
> consider adding the `env` command to your shell script to see if there's 
> any missing environment variables that gauge depends on.
>
>
> On Wed, Aug 24, 2016 at 2:24 PM Michael Pauli <[email protected] 
> <javascript:>> wrote:
>
>> Hi again,
>>
>>
>> I’ve tried  to check out a lot of things, like the gauge installation or 
>> the java plugin on the gocd server. Everything is there and should work 
>> like wished. I’ve triggered the tests from my local machine with the bash 
>> script. Also the one, that is used by gocd (With Selenium Grid on a test 
>> VM). I’ve also checked the files in the Go agent pipelines on the go 
>> sever…everything was there and at the same place like locally. But still 
>> the same problem: The specs could not find the step implementations. Only 
>> running on the gocd server.
>>
>>
>> I have absolutely no idea anymore…
>>
>>
>> Cheers,
>>
>> michael
>>
>> Am Montag, 22. August 2016 14:46:36 UTC+2 schrieb Michael Pauli:
>>>
>>> Hi Ketan!
>>>
>>> Thanks for the response!
>>>
>>> Here is the xml part:
>>>
>>> <exec command="sh">
>>>                 <arg>semigator_GaugeTests_ci.sh</arg>
>>>                 <runif status="any" />
>>> </exec>
>>>
>>>
>>> Am Montag, 22. August 2016 11:59:51 UTC+2 schrieb Ketan Padegaonkar:
>>>>
>>>> Could you provide us the contents of the `<exec/>` task xml?
>>>>
>>>> On Mon, Aug 22, 2016 at 3:16 PM Michael Pauli <[email protected]> 
>>>> wrote:
>>>>
>>>>> No idea at all, that could help me with my problem?
>>>>>
>>>>> Cheers,
>>>>> michael
>>>>>
>>>>>
>>>>> Am Mittwoch, 3. August 2016 17:30:23 UTC+2 schrieb Michael Pauli:
>>>>>>
>>>>>> Hi!
>>>>>>
>>>>>> I have a problem with the triggering of Gauge tests from GoCD.
>>>>>>
>>>>>> My GoCD (Go Version: 16.7.0) Machine is a Mac OSX 10.11.6 with one Go 
>>>>>> Server and two Go Agents.
>>>>>> The following versions auf Gauge/Plugins are installed on this 
>>>>>> machine:
>>>>>> Gauge version: 0.6.1
>>>>>> Plugins
>>>>>> -------
>>>>>> html-report (2.1.1)
>>>>>> java (0.5.0)
>>>>>>
>>>>>> The task is a custom command that start a .sh file in the root of the 
>>>>>> project. Inside the script is only the command mvn gauge:execute 
>>>>>> -DspecsDir=specs -Denv="ci" (ci is my user.propertie under env/ci beside 
>>>>>> the default folder).
>>>>>>
>>>>>> If I trigger now GoCD to build the test, I get the following error 
>>>>>> for all of my steps/specs:
>>>>>> [ValidationError] /Users/admin/Library/Application Support/Go 
>>>>>> Agent/pipelines/GaugeTests/specs/xxx.spec:11: Step implementation not 
>>>>>> found 
>>>>>> => '...'
>>>>>>
>>>>>> I'm asking the question here and not in the Gauge Group cause if I 
>>>>>> run the test with the same .sh file on my local machine (via Selenium 
>>>>>> Grid) 
>>>>>> with the same Gauge/Plugin versions, every test works fine. I also have 
>>>>>> no 
>>>>>> problems with GoCD and Selenium tests, JMeter tests and RestAssured 
>>>>>> tests.
>>>>>>
>>>>>> I'm new to GoCD so it could also be, that the bug sits in front of 
>>>>>> the display ;-)
>>>>>>
>>>>>> Thanks and cheers,
>>>>>> michael
>>>>>>
>>>>>> -- 
>>>>> 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].
>>>>> 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] <javascript:>.
>> 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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to