Re: Jenkins build says successful but no output is seen

2017-02-25 Thread Daniel Beck

> On 25.02.2017, at 04:21, Sharan Basappa  wrote:
> 
> Maybe it is not related but one thing I changed recently was the native 
> shell. I changed from sh to csh

Should be easy enough to test with a shebang line at the beginning of the `sh` 
argument.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9DF8BE25-8621-4B43-97D5-69610E27C519%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins build says successful but no output is seen

2017-02-25 Thread Daniel Beck

> On 25.02.2017, at 06:59, David Karr  wrote:
> 
> Stage takes a closure.

Originally they weren't. This was added recently (JENKINS-26107) and while 
AFAIK deprecated, the old syntax should still work.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/7CC54792-CB12-41DE-B2EE-1E7831CD6439%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins build says successful but no output is seen

2017-02-24 Thread David Karr
I'll say again, add braces around the body of the entire stage. Stage takes
a closure.

On Fri, Feb 24, 2017, 19:21 Sharan Basappa  wrote:

> David,
>
> I will remove everything and start with just pwd. I will update how it
> goes.
> Maybe it is not related but one thing I changed recently was the native
> shell. I changed from sh to csh
>
> On Friday, 24 February 2017 17:39:07 UTC+5:30, Daniel Beck wrote:
>
>
> > On 21.02.2017, at 19:09, Sharan Basappa  wrote:
> >
> > Snippet of Jenkins log:
> >
>
> Is that the minimal Pipeline script exhibiting the problem, i.e. is the
> git checkout necessary? What happens when you remove everything but the 'sh
> "pwd"' that doesn't work, does it work then?
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/76e552ca-3b77-4931-99fc-73651164d6ad%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAA5t8Vpc8kYi_ec8-V5w9s7RJ9gGpFhr29Rm_hUBdx%3Da8Y9hcQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins build says successful but no output is seen

2017-02-24 Thread Sharan Basappa
David,

I will remove everything and start with just pwd. I will update how it goes.
Maybe it is not related but one thing I changed recently was the native 
shell. I changed from sh to csh

On Friday, 24 February 2017 17:39:07 UTC+5:30, Daniel Beck wrote:

>
> > On 21.02.2017, at 19:09, Sharan Basappa  > wrote: 
> > 
> > Snippet of Jenkins log: 
> > 
>
> Is that the minimal Pipeline script exhibiting the problem, i.e. is the 
> git checkout necessary? What happens when you remove everything but the 'sh 
> "pwd"' that doesn't work, does it work then? 
>
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/76e552ca-3b77-4931-99fc-73651164d6ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins build says successful but no output is seen

2017-02-24 Thread Daniel Beck

> On 21.02.2017, at 19:09, Sharan Basappa  wrote:
> 
> Snippet of Jenkins log:
> 

Is that the minimal Pipeline script exhibiting the problem, i.e. is the git 
checkout necessary? What happens when you remove everything but the 'sh "pwd"' 
that doesn't work, does it work then?

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/25660017-447C-45E6-A94A-BF8CC140986A%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins build says successful but no output is seen

2017-02-23 Thread Sharan Basappa
Hi David,

Is there any other forum where I can get help? I haven't got much inputs on
this forum

On Fri, Feb 24, 2017 at 12:08 AM, David Karr 
wrote:

> On Wed, Feb 22, 2017 at 9:36 AM, Sharan Basappa
>  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 a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/jenkinsci-users/Dj6hRGzzJZs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-users+unsubscr...@googlegroups.com.
> 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.
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CACfoTn7RLBQdd87Tnz-QaXED0oTri4Zx0a-v%2Bth11R31is0pdg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins build says successful but no output is seen

2017-02-23 Thread David Karr
On Wed, Feb 22, 2017 at 9:36 AM, Sharan Basappa
 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 jenkinsci-users+unsubscr...@googlegroups.com.
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.


Re: Jenkins build says successful but no output is seen

2017-02-22 Thread Sharan Basappa
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" }
>
>
>
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/97f1f8dd-dc68-452e-966e-abaed2d70cc6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins build says successful but no output is seen

2017-02-21 Thread Sharan Basappa


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" }



-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/264cf466-6de8-4afe-8d16-b5b40713955d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.