Jenkins API to find the owner of a job ?

2018-05-05 Thread Sunshine
Is there a way to find owner or find out who created a job in Jenkins ?

I do have Jenkins JobConfigHistory plugin where I can I see the people who have 
made config changes for a job...

Is there a way I can capture the owner Details via API or groovy script?

-- 
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/34f2514f-b742-403c-be0f-ad558452fd2e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Email only after all retries fail

2018-05-05 Thread Sandeep R Kurup
hey if in case you are still facing the issue,

You can use jenkins Editable Email Notification plugin and in advanced 
settings you will have an option of failure-X where you can specify after 
how many failures you need to send the email. Old versions of jenkins may 
not be helping with this. So you can use the following PRESEND SCRIPT in 
editable email-notification


try { //used try catch because NAGINATOR_COUNT will be a undefined property 
for first build
cancel = true
if ($NAGINATOR_COUNT && $NAGINATOR_COUNT == 2) { //where after 2nd retry it 
will trigger email
 cancel = false
}
} catch (e) {
 cancel = true
}

Hope this answers

On Wednesday, August 6, 2014 at 2:14:46 AM UTC+5:30, Craig wrote:
>
> I’m trying to get Jenkins to send email to recipients only after the last 
> attempted retry of a job fails.  In other words, I don’t want them getting 
> email for all the failures; just if they **all** fail.  Is there a way to 
> do that with the email-ext plugin and naginator?
>
>  
>
> Thanks.
>
> Craig
>
>  
>

-- 
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/e004a326-bc74-4386-badf-63c26ccfb201%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Parallel Build issue

2018-05-05 Thread Somshekar C Kadam
Hi Christian,

Thanks a lot for letting me know solution. It helps a lot.

I will use customworkspace, that suits better.

Thanks for pointing at the proper site Docs.

regards
Somshekar

Regards
Somshekar C Kadam
9036660538

On Fri, May 4, 2018 at 8:17 PM, <
christian.beushau...@continental-corporation.com> wrote:

> Hi Somshekar,
>
> We had the same issue with our build environment and I saw that we had 2
> possible solutions.
> 1.
> https://wiki.jenkins.io/display/JENKINS/Features+controlled+by+system+
> properties
> amongst others gives you hudson.slaves.WorkspaceList which you can change
> to set a different token.
> 2. use a ws(){} block in your pipeline to change to a different workspace.
> (for declarative Pipeline this is the customWorkspace option of the agent
> keyword (see. https://jenkins.io/doc/book/pipeline/syntax/#agent)
>
> Since I don't control the Jenkins master in our project I used the second
> approach. Especially since I am building in parallel on the same node I am
> reusing the original workspace and all checked out sources and build in a
> new subdirectory of the workspace.
>
> Hope this helps.
> Christian
>
> jenkinsci-users@googlegroups.com schrieb am 04.05.2018 07:53:42:
>
> > Von: Somshekar C Kadam 
> > An: jenkinsci-users@googlegroups.com
> > Datum: 04.05.2018 07:54
> > Betreff: Parallel Build issue
> > Gesendet von: jenkinsci-users@googlegroups.com
> >
> > Hi All,
> >
> > I have setup a parallel build using data pipeline. This build
> > machine is on VM.
> >
> > 
> > pipeline {
> >
> >  stages {
> >
> > stage('ParallelBuild') {
> >
> >parallel {
> >
> >   stage(‘BuildIntel’) {
> >   agent {
> >..
> >;;;
> >
> >stage(‘BuildArm’) {
> >agent {
> > 
> >
> > Workspace for Intel
> >
> > [‘BuildIntel’]
> > [CYELP_feature-3WJHZSTZRAESMPGCATYIL555HUF7XSCPTK2GXMGWNX7W5MCBMX4A]
> >
> > Workspace for Arm
> > [‘BuildARM’]
> > [CYELP_feature-3WJHZSTZRAESMPGCATYIL555HUF7XSCPTK2GXMGWNX7W5MCBMX4A@2
> >
> > Build for Arm is failing
> > [‘BuildARM’] Error, you have an invalid character (@) in your
> > COREBASE directory path. Please move the installation to a directory
> > which doesn't include any @ characters.
> >
> > as it is same workspace dir wit @2 extra
> >
> > to make it build I can create a separate dir in workspace and proceed.
> > Is it the right solution or any other fix is better please suggest
> >
> > thanks in advance
> >
> > Regards
> > Somshekar C Kadam
> >
> > --
> > 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/CALbGK-pAedn1a8aeFaMYq%3DPWsG44JvjRsqaOe_f-
> > zUkYLHitWQ%40mail.gmail.com.
> > For more options, visit https://groups.google.com/d/optout.
>
> Mit freundlichen Gruessen/Best regards,
>
> Christian Beushausen
> I S&T PD SW SWF
> Interior Systems & Technology
>
> Besucheradresse / Visitor address:
> Continental Automotive GmbH
> Philipsstrasse 1, 35576 Wetzlar, Germany
>
> Rechnungsadresse / Invoice address:
> Continental Automotive GmbH
> Philipsstrasse 1, 35576 Wetzlar, Germany
>
> Telefon/Phone: +49 6441 370-9031
> Mobile: +49 151 74660227
> Telefax: +49 6441 37013-9031
> E-Mail: christian.beushau...@continental-corporation.com
>
> http://www.continental-automotive.com
> 
>
> Continental Automotive GmbH, Vahrenwalder Str. 9, D-30165 Hannover
> Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Helmut
> Matschi
> Geschaeftsfuehrer/Managing Director: Georg Sistermanns, Harald Stuhlmann
> Sitz der Gesellschaft/Registered Office: Hannover
> Registergericht/Registered Court: Amtsgericht Hannover, HRB 59424
> USt.-ID-Nr./VAT-ID-No. DE814950663
> 
>
> Proprietary and confidential. Distribution only by express authority of
> Continental AG or its subsidiaries.
>
> --
> 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/OF2CDE8E6F.F579456E-ONC1258283.0050379E-C1258283.
> 00514802%40continental-corporation.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 rec