On Wed, Feb 22, 2017 at 9:36 AM, Sharan Basappa
<[email protected]> wrote:
> folks, need some guidance here ... thanks
>
> On Tuesday, 21 February 2017 23:39:43 UTC+5:30, Sharan Basappa wrote:
>>
>> My Jenkins build job indicates success but none of the scripts I am
>> executing seem to do anything. I put a simple "pwd" command to echo current
>> working directory but nothing happens. All Jenkins reports is "Running shell
>> script" and then nothing is seen.
>>
>>
>> Snippet of Jenkins log:
>>
>> First time build. Skipping changelog. [Pipeline] sh
>> [an_example_test3-26UQSYQ445FSBP4QRKEWLPQCJH545MLQVD6B552CIGPOXLZO4G5A]
>> Running shell script [Pipeline] sh
>> [an_example_test3-26UQSYQ445FSBP4QRKEWLPQCJH545MLQVD6B552CIGPOXLZO4G5A]
>> Running shell script [Pipeline] sh
>> [an_example_test3-26UQSYQ445FSBP4QRKEWLPQCJH545MLQVD6B552CIGPOXLZO4G5A]
>> Running shell script [Pipeline] sh
>> [an_example_test3-26UQSYQ445FSBP4QRKEWLPQCJH545MLQVD6B552CIGPOXLZO4G5A]
>> Running shell script [Pipeline] } [Pipeline] // node [Pipeline] End of
>> Pipeline Finished: SUCCESS
>>
>>
>> Jenkinsfile that is used to define the builds:
>>
>> node { stage 'build' sh "echo ${env.BRANCH_NAME}" git url:
>> 'git@hd1:testing', branch: "${env.BRANCH_NAME}" sh "ls -rtl" sh "pwd" sh
>> "csh ${workspace}/simple.csh" sh "csh ${workspace}/source.csh" }
I'm not an expert, but I would change your syntax to "stage ('build')
{ ... }". The parens probably aren't necessary, but the closure syntax
likely is.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" 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/jenkinsci-users/CAA5t8VoRVBPFv52GKzNLc7mYGxr_v4ooL20_r_JWeH5ORSALXQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.