Stage View in Parallel Exectution

2017-04-24 Thread vishad alekh
Hi All,


I am looking to implement stage view for parallel execute jobs . Let 
suppose i have five independent job . These five jobs will be called 
through one job . Now i want to show the stage of all the five jobs 
separately in the main job from where they are called . Please help me with 
this .



Thanks and Regards
Vishad Alekh

-- 
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/00659356-8136-408d-8d28-554142a9a309%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Supporting the Pipeline Editor with any Git server

2017-04-24 Thread James Dumay
Hi all,

As part of the Pipeline Editor working with any Git server (thats right -
you'll be able to use the Editor without Github!) I am trying to massively
simplify the way that users setup Pipelines connected to Git repositories.

I've put together a short page here:
https://wiki.jenkins-ci.org/display/JENKINS/Git+creation+and+editing

The high level summary is:

   - When people upload their SSH private key to Jenkins for git operations
   that key is also commonly used for other purposes e.g. logging into other
   systems
   - If Jenkins is compromised then an attacker could use that key to gain
   access to non-git systems (e.g. your production server)

We want to resolve this by:

   - Not presenting UI in Blue Ocean to add new credentials for SSH when
   creating or editing Pipelines
   - Generate a public/private ssh key pair that is associated with the
   logged in user and have that user authorise the public key with their Git
   server (only once per Git server)

While this is a different way of working, this has advantages:

   - You never upload private keys via Blue Ocean. If Jenkins is
   compromised, no secrets are disclosed except for the public/private key we
   generate for you
  - Attacker cannot use the Jenkins users public/private key to login
  to other systems
   - Pipeline and creation user experience is vastly simplified
  - There is less UI to achieve a connection to your Git repository


What I want to find out is if this would impact you so negatively you could
not use Pipeline creation and Editing with Blue Ocean and if those exist
what the use cases are specifically.

Looking forward to hearing from you!
-- 
James Dumay,
Director of Product Management.
CloudBees, Inc.
Skype: jdumaycb Twitter: i386

-- 
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/CAErbOvTJN_irKUAPLk0NcfpfYbSrGB_zxGbw%3Dw%3D7QHxyt0V%2BWQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Bitbucket Branch Source plugin / Pull request handling in Jenkinsfile

2017-04-24 Thread Stephen Connolly
that is not functionality currently available, you would need to use a
bitbucket cli at present to perform that

On 24 April 2017 at 19:41,  wrote:

> Hi,
>
> I'd like to approve or decline a pull request within the Jenkinsfile, the
> pull-request appears to have a branch-name starting with 'PR-',
> are there any docs on how to approve or decline the pullrequest?
>
> Kind regards,
> Xander
>
> --
> 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/937b198c-2907-4119-907b-47b1a3a840cf%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/CA%2BnPnMzStufY2AvbxZHkGh02cRiR88j3RjOQcAN2%3D5u8tafung%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Aw: How to checkout Jenkinsfile by a custom script?

2017-04-24 Thread Al Le
> So, my question is: Is it possible (and how) to have the Jenkinsfile under 
> version control, do the check out for it by a custom script (e.g. using a 
> .bat command) and then have the pipeline executed as if the Jenkinsfile had 
> been extracted by the "Pipeline script from SCM" option?

I.e., as I understand it, I need a plugin command to interpret a given 
Jenkinsfile. Is there one for doing this? Groovy "load" is not what I need 
because it loads and executed standard Groovy code and not the pipeline syntax.

-- 
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/trinity-207ac27e-4de0-4e49-99fb-e6943e06eeca-1493062983972%403capp-gmx-bs01.
For more options, visit https://groups.google.com/d/optout.


Grails plugin not available in new Jenkins versions?

2017-04-24 Thread Carina Marban
Hi,


I'm currently trying to migrate our jobs from a Jenkins 1.650 instance
to a new one that we just updated to 2.56. Unfortunately, I seem unable 
to install the Grails plugin: 
https://wiki.jenkins-ci.org/display/JENKINS/Grails+Plugin 
because it is not in the list of available plugins. 
I also can't find it on https://plugins.jenkins.io

Am I correct to assume that the Grails plugin is not available anymore in 
more recent 
versions of Jenkins? Since it is quite central to our process, that would 
unfortunately 
mean that I will have to downgrade to an older version of Jenkins. Is there 
any way 
I can find out which is the most recent version of Jenkins that still 
supports the plugin?

I saw the discussions in the Jenkins Developers user group about the plugin 
not having any active maintainers anymore. Is it really dead? I know that 
there
is not a huge number of projects that are actively using Grails but I am 
still a bit surprised (and sad) about this.

Am I maybe just missing something?


Thanks in advance,
Carina

-- 
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/9501902e-3229-4c89-8bd8-d0ad95258f38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Bitbucket Branch Source plugin / Pull request handling in Jenkinsfile

2017-04-24 Thread vanwiggen
Hi,

I'd like to approve or decline a pull request within the Jenkinsfile, the 
pull-request appears to have a branch-name starting with 'PR-',
are there any docs on how to approve or decline the pullrequest?

Kind regards,
Xander

-- 
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/937b198c-2907-4119-907b-47b1a3a840cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Having Trouble with Inheritable Parameters in Jenkins, value zero is interpreted as null

2017-04-24 Thread Robert Kruck
I am having trouble with Inheritable Parameters in Jenkins

My build system is still based on Build Flow, I have not converted to 
Pipeline yet

My Jenkins version is 2.5

My "Project-Inheritance" plugin version was originally 2.0, I rolled back 
to 1.5.3 later, but am having the same problem with inherited parameters

All inherited parameters are passed down normally, except if they have a 
value of zero ("0")

The project which inherits parameters gets all of them correct, except that 
If the inherited parameter has a value of  zero ("0") , the project thinks 
its value is null.

Does anyone know why this could be happening?

-- 
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/c3b71090-3341-428f-830c-bd67f30ee891%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Regarding the recent waves of mailing list spam

2017-04-24 Thread Michael Hunter
I am willing to help as well. Timezone: GMT, BST.

On 19 April 2017 at 21:33, Arnaud Héritier  wrote:

> Let's go
> CEST/CET
> Do we know how many new subscribers we have per day/week to see how many
> we should be to moderate new members ?
>
> On Tue, Apr 18, 2017 at 5:10 PM, Joseph P  wrote:
>
>> I would also be willing. Timezone CEST/CET :)
>>
>>
>> Den mandag den 17. april 2017 kl. 17.53.45 UTC+2 skrev R Tyler Croy:
>>
>>>
>>> As you may have noticed, there has been an uptick in spam getting
>>> through to
>>> the Google Groups run by the Jenkins project. On some lists, these have
>>> resulted in Google flagging the group and bouncing emails from those
>>> groups.
>>>
>>> This was discussed during our last project meeting
>>> (http://meetings.jenkins-ci.org/jenkins-meeting/2017/jenkins
>>> -meeting.2017-04-12-18.00.html),
>>> and as promised I wanted to let everybody know where things stand and
>>> why.
>>>
>>>
>>> If you receive emails as they're posted (non-digest mode) from Google
>>> Groups,
>>> if a spamemr gets through, there's nothing we can do for you. While I
>>> have
>>> added a couple more "Manager" roles to the jenkinsci-users@ list, who
>>> can ban
>>> authors and delete posts, once something is delivered to your inbox,
>>> there's
>>> nothing we can do.
>>>
>>> Some people have suggested first-poster moderation, which is one option,
>>> but
>>> not one I'm personally willing to turn on until more people are active
>>> moderators. Unfortunately I took a weekend off from my morning-routine
>>> of
>>> banning spammers two weekends ago, which seems to have led to the recent
>>> surge
>>> and flagging of the group.
>>>
>>>
>>> What we are evaluating between last project meeting and the upcoming one
>>> (April
>>> 26) is whether Google Groups is still a viable option for the Jenkins
>>> project.
>>> A number of other projects have moved to groups.io, which would be a
>>> likely
>>> destination if Google continues to flag our groups.
>>>
>>>
>>>
>>> Consider yourselves updated, feel free to ping me on IRC (rtyler) with
>>> questions.
>>>
>>>
>>> Cheers
>>> - R. Tyler Croy
>>>
>>> --
>>>  Code: 
>>>   Chatter: 
>>>  xmpp: rty...@jabber.org
>>>
>>>   % gpg --keyserver keys.gnupg.net --recv-key 1426C7DC3F51E16F
>>> --
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Jenkins Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to jenkinsci-dev+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/jenkinsci-dev/67550b76-a94f-4a36-b085-7ab424c690dc%40googlegroups.com
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> -
> Arnaud Héritier
> http://aheritier.net
> Mail/GTalk: aheritier AT gmail DOT com
> Twitter/Skype : aheritier
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-dev/CAFNCU-81LNy7Zo504X8RJJAFOSsNE90du5TU
> sYkMr-qGZZHzUQ%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
michaelrf.hunter at gmail dot com

-- 
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/CAN%3D952oHHWTzpXz4b-G4Mwv_a7saabQs7x3rv-%3DvOF%2BNyD4hUw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to use email-ext plugin in pipeline script?

2017-04-24 Thread jerome
It's not so hard, it's just some behavior/limitations that are a bit hard 
to grasp (groovy loop anyone). I think they went on a road to provide some 
features at high trade back cost.

If you want some examples more like real life usage:
https://github.com/jenkinsci/pipeline-examples

I would love to have better or complex examples, that would save a lots of 
questions on this lists and people wouldn't get so frustrated trying to 
achieve simple stuff.

Some people must have made a few .groovy that could be used by many, that 
would be great if that could be shared between user, like plugins one day. 
I made a few python scripts to help me back into the Jenkins non pipeline 
era, I still use them, but passing them to Groovy would be a pain, since 
even if I made a normal groovy script, I would still have to validate the 
Jenkins 'groovy' alike language can output the same thing and probably have 
to allow a few dozen of functions into scripts approval.

So far, I use simple Jenkins file that launch a lot of console cmd (Python 
code, msbuild command, batch/bash script, custom C# program) that I can 
test into console. Work fine, except the Windows slave hang and the new 
email-ext that doesn't resolve the absolute path on node.

-- 
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/de3f954b-71d6-43d0-8c25-adc475557136%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Multi-branch Pipeline Plugin - comment trigger only?

2017-04-24 Thread Danny Rehelis
Allow me elaborate my question,

We use Multi-branch Pipeline plugin and run CI for each git push to an open
PR.

I need more control to this behavior, for example:

- Run CI only for the first push or,

- Run CI for PRs with specific label for every push or,

- Run CI upon specific comment whether labeled or not.

Is there a way to achieve any of the above if not via GUI then via scripted
Jenkinsfile?

Thanks

On Wed, Apr 19, 2017, 09:13 Danny Rehelis  wrote:

> Hello,
>
> Is it possible to use Multi-branch Pipeline plugin upon comment only and
> not for every push to Github?
>
> I do not want to run a CI on every single push user makes but only when a
> specific comment triggered.
>
> Thanks
>

-- 
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/CAObRFCXSb-cCMHg0yN8jiCOP7M2mtL60GT22cc%2Bd%2BpnX%3DAR0Zw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


RE: How to use email-ext plugin in pipeline script?

2017-04-24 Thread David Aldrich
Understood. But the multibranch plugin is marked as deprecated and it seems 
that the multibranch pipeline is advised.  Multibranch projects are very 
helpful for us so I thought it would be good to look at pipelines.

I guess I may be advised to try Blue Ocean, but that is git-centric and we are 
svn-centric.  So we’re a bit stuck ☹

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Slide
Sent: 24 April 2017 17:24
To: jenkinsci-users@googlegroups.com
Subject: Re: How to use email-ext plugin in pipeline script?

I'll be completely honest here and say that pipeline isn't for everyone. Not 
ever build setup needs pipeline. Free style projects are just fine to use 
still. If they meet your needs, then I don't see a reason to switch to pipeline.

On Mon, Apr 24, 2017 at 9:17 AM David Aldrich 
> wrote:
Thanks for your answer.

I’m beginning to think that pipeline scripting is too difficult.  It seems to 
me that there aren’t enough complete examples to demonstrate this stuff.  The 
snippets generator does not help with putting a complete script together.

Jenkins seems to have gone from being very user friendly to difficult ☹

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com]
 On Behalf Of jer...@bodycad.com
Sent: 24 April 2017 17:13
To: Jenkins Users 
>
Cc: David Aldrich 
>
Subject: Re: How to use email-ext plugin in pipeline script?

You can check the currentBuild status just before sending the email:

currentBuild.result

If empty it mean nothing have set it to warning or error yet. you can set it to 
success
if(!currentBuild.result)
{
  currentBuild.result = 'SUCCESS'
}

or you could set it directly into the email without touching the 
currentBuild.result variable or use another variables into a custom template.

--
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/dd403b4e-dd28-484b-9c7e-3f8342e6faa6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Click 
here
 to report this email as spam.
--
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/867d39cd53494612b471bc5238f31d16%40EUX13SRV1.EU.NEC.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/CAPiUgVd77cZ0G8hrXn5jDzPzBUZL04mAex0nrBU2cCKQTxgMaw%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/56f231f9e9ca452b8106b5a524e8e7b8%40EUX13SRV1.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.


Re: How to use email-ext plugin in pipeline script?

2017-04-24 Thread Slide
I'll be completely honest here and say that pipeline isn't for everyone.
Not ever build setup needs pipeline. Free style projects are just fine to
use still. If they meet your needs, then I don't see a reason to switch to
pipeline.

On Mon, Apr 24, 2017 at 9:17 AM David Aldrich 
wrote:

> Thanks for your answer.
>
>
>
> I’m beginning to think that pipeline scripting is too difficult.  It seems
> to me that there aren’t enough complete examples to demonstrate this
> stuff.  The snippets generator does not help with putting a complete script
> together.
>
>
>
> Jenkins seems to have gone from being very user friendly to difficult L
>
>
>
> *From:* jenkinsci-users@googlegroups.com [mailto:
> jenkinsci-users@googlegroups.com] *On Behalf Of *jer...@bodycad.com
> *Sent:* 24 April 2017 17:13
> *To:* Jenkins Users 
> *Cc:* David Aldrich 
> *Subject:* Re: How to use email-ext plugin in pipeline script?
>
>
>
> You can check the currentBuild status just before sending the email:
>
>
>
> currentBuild.result
>
>
> If empty it mean nothing have set it to warning or error yet. you can set
> it to success
>
> if(!currentBuild.result)
> {
>   currentBuild.result = 'SUCCESS'
> }
>
>
> or you could set it directly into the email without touching the
> currentBuild.result variable or use another variables into a custom
> template.
>
>
>
> --
> 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/dd403b4e-dd28-484b-9c7e-3f8342e6faa6%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
> Click here
> 
> to report this email as spam.
>
> --
> 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/867d39cd53494612b471bc5238f31d16%40EUX13SRV1.EU.NEC.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/CAPiUgVd77cZ0G8hrXn5jDzPzBUZL04mAex0nrBU2cCKQTxgMaw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: AWS EC2 API Plugin

2017-04-24 Thread harold . putman
Check https://plugins.jenkins.io/

On Monday, April 24, 2017 at 11:00:20 AM UTC-4, Johnathan Kanarek wrote:
>
> Hi,
>
> I need to create images, run instances, start instances and stop instances 
> during build.
>
> Is there an existing plugin that enable AWS EC2 APIs as build steps?
>
> I don’t mind creating one by myself, but prefer to use existing one.
>
>  
>
> Johnathan.
>

-- 
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/7ab45983-2ab3-4ab5-8b4b-aecc04ff4d76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: How to use email-ext plugin in pipeline script?

2017-04-24 Thread David Aldrich
Thanks for your answer.

I’m beginning to think that pipeline scripting is too difficult.  It seems to 
me that there aren’t enough complete examples to demonstrate this stuff.  The 
snippets generator does not help with putting a complete script together.

Jenkins seems to have gone from being very user friendly to difficult ☹

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of jer...@bodycad.com
Sent: 24 April 2017 17:13
To: Jenkins Users 
Cc: David Aldrich 
Subject: Re: How to use email-ext plugin in pipeline script?

You can check the currentBuild status just before sending the email:

currentBuild.result

If empty it mean nothing have set it to warning or error yet. you can set it to 
success
if(!currentBuild.result)
{
  currentBuild.result = 'SUCCESS'
}

or you could set it directly into the email without touching the 
currentBuild.result variable or use another variables into a custom template.

--
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/dd403b4e-dd28-484b-9c7e-3f8342e6faa6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Click 
here
 to report this email as spam.

-- 
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/867d39cd53494612b471bc5238f31d16%40EUX13SRV1.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.


Re: How to use email-ext plugin in pipeline script?

2017-04-24 Thread jerome
You can check the currentBuild status just before sending the email:

currentBuild.result

If empty it mean nothing have set it to warning or error yet. you can set 
it to success
if(!currentBuild.result)
{
  currentBuild.result = 'SUCCESS'
}

or you could set it directly into the email without touching the 
currentBuild.result variable or use another variables into a custom 
template.

-- 
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/dd403b4e-dd28-484b-9c7e-3f8342e6faa6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to use email-ext plugin in pipeline script?

2017-04-24 Thread David Aldrich
Hi

Here's my pipeline:

1.  node('pc1') {
2.
3.  stage('Checkout') {
4.  checkout([$class: 'SubversionSCM',
5.  additionalCredentials: [[credentialsId: '', realm: '']],
6.  excludedCommitMessages: '',
7.  excludedRegions: '',
8.  excludedRevprop: '',
9.  excludedUsers: '',
10. filterChangelog: false,
11. ignoreDirPropChanges: false,
12. includedRegions: '',
13. locations: [[credentialsId: '', depthOption: 'infinity', 
ignoreExternalsOption: false, local: '.', remote: '']],
14. workspaceUpdater: [$class: 'UpdateUpdater']])
15. }
16.
17. sh '''make'''
18.
19. emailext attachLog: true, body: '$DEFAULT_CONTENT', subject: 
'$DEFAULT_SUBJECT', to: ''
20.
21. }

The resulting email has result 'BUILDING'.  How should I change the script to 
make email-ext report the final result (FAILURE or SUCCESS)?

Best regards

David

-- 
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/1ae7445daac54a6fb0fadd0d66c821b7%40EUX13SRV1.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.


AWS EC2 API Plugin

2017-04-24 Thread Johnathan Kanarek


Hi,

I need to create images, run instances, start instances and stop instances 
during build.

Is there an existing plugin that enable AWS EC2 APIs as build steps?

I don’t mind creating one by myself, but prefer to use existing one.

 

Johnathan.

-- 
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/dce00b69-6594-46e2-8d02-84577ade7ed0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


email-ext no mor resolve template absolute path

2017-04-24 Thread jerome
Hi,
is there a change into email-ext lately (I was into Jenkins 2.51 and 
email-ext 2.56, now updated to Jenkins 2.54 with 2.57.2)  that could 
prevent email-ext to fetch template into the node with an absolute path? My 
outgoing email used to work now I receive this into my email body:

Jelly file [c:/Jenkins/workspace/CAD_CPP/CAD_CPP_ContinuousBuild@tmp/
email_template_file.jelly] was not found in $JENKINS_HOME/email-templates.

The file was present on the node is there a way to fix this or an approval 
switch to enable?

I'm guessing this got broke into the 2.57 or 2.57.2 release:
https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin

P.S.: Sometime I wish there was a non secure global switch and we could 
accept the server run into a secure local network and don't have to mess 
around with all the security non sense and modification that always broke 
the build machine at every Jenkins update. I still have the slave hang 
during the whole building phase, there's still many bugs report for this 
(over 2 years, and this important bug don't get fix, then we see 'security' 
features that remove working use case all the time). Maintaining Jenkins is 
more time consuming then maintaining our code base. Maybe I should stop 
update it, but I still hope the Windows slave hanging will be fix one day, 
if that day come around and I get it to work, I might highly tempted to 
stop updating.

-- 
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/6f602780-ff11-4110-8329-56faf95895c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Connecting software development tools to an e-learning platform

2017-04-24 Thread Victor Martinez
You already asked something similar a few days ago:
- https://groups.google.com/forum/#!topic/jenkinsci-users/CunEt1ISDis
- https://groups.google.com/forum/#!topic/jenkinsci-dev/I45iPY9olzk

Maybe it's worth reusing the same thread, since some people already replied 
back with some approaches/ideas

Please don't cross post your questions though, read the below page:
- https://jenkins.io/mailing-lists/

Cheers

On Monday, 24 April 2017 08:52:13 UTC+1, Jülide Dursun wrote:
>
> Hello Jenkins Users,
>
> I hope you can help me. I am working on my bachelor thesis right now. 
> Topic is: Connecting software development tools to an e-learning platform. 
>
> The e-learning platform in this case is Moodle. The software development 
> tool is Jenkins.
>
> I have to make following scenario true:
> Moodle-participant is taking a course in moodle for learning Jenkins. 
> After watching the introduction slides, he has to do a task in Jenkins. 
> Problem is: How does the moodle-trainer know that the task in the 
> external tool Jenkins has been completed? 
>
> Is it possible to make a connection between the e-larning platform moodle 
> and the software jenkins?
>
> Which signals can Jenkins send? Maybe it is possible to check wether the 
> task is done inside of Jenkins and if the task is done, there can be sent a 
> mail to the moodle-trainer through jenkins? 
>
> I hope that my question is clear. I really don't know what to do and hope 
> I'll get support.
>
> Greetings
> Jüli
>

-- 
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/57b89b1a-e513-43a4-bbcf-290f14e04f42%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to checkout Jenkinsfile by a custom script?

2017-04-24 Thread Al Le
Hello,

I've created a Jenkins job of type "Pipeline" and used an inline pipeline 
script. Now I'd like to put the script under version control and use the 
"Pipeline script from SCM" option (I think, I don't have to describe the merits 
of this).

However, our version control system (CA SCM) is not well supported in Jenkins: 
I couldn't make the plugin to check out anything.

We do have, however, some scripts for working with CA SCM that allow to check 
out things reliably.

So, my question is: Is it possible (and how) to have the Jenkinsfile under 
version control, do the check out for it by a custom script (e.g. using a .bat 
command) and then have the pipeline executed as if the Jenkinsfile had been 
extracted by the "Pipeline script from SCM" option?

Thanks!

-- 
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/trinity-72a39176-539c-4ad4-a492-b7e6ba6a8ebd-1493030557838%403capp-gmx-bs44.
For more options, visit https://groups.google.com/d/optout.


Scripts not permitted to use a method already approve in In-process Script Approval GUI

2017-04-24 Thread Romaric Crailox
Hello all,

I have this error during execution of a Jenkins job with "Scan for compiler 
warnings" in "post build action" (two parsers are use : parser1 and 
parser2)  :

[WARNINGS] Parsing warnings in files 'output1' with parser parser1
[WARNINGS] Groovy sandbox rejected the parsing script for parser parser1: 
Scripts not permitted to use method java.util.regex.MatchResult group int. 
You will need to manually approve the call in the Script Approval UI.
[WARNINGS] Parsing warnings in files 'output2' with parser parser2
[WARNINGS] Groovy sandbox rejected the parsing script for parser parser2: 
Scripts not permitted to use method java.util.regex.MatchResult group int. 
You will need to manually approve the call in the Script Approval UI.

Problem, java.util.regex.MatchResult method already approve in "In-process 
Script Approval" Windows (in Manage Jenkins) : see script_aproval.png file.
In "Manage Jenkins" > "Configure System" > "Compiler Warnings" > "Parsers" 
there is no error message below parser1 and parser2... (I think about error 
message like "An exception occurred during evaluation of the Groovy script: 
Scripts not permitted to use method 
hudson.plugins.analysis.util.model.FileAnnotation setModuleName 
java.lang.String").

Can you help me to understand what thing I have missed to make please ?

Best regards

Romaric Crailox

-- 
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/1869648b-63d2-48ef-a231-da57e08b092f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Connecting software development tools to an e-learning platform

2017-04-24 Thread Jülide Dursun
Hello Jenkins Users,

I hope you can help me. I am working on my bachelor thesis right now. Topic
is: Connecting software development tools to an e-learning platform.

The e-learning platform in this case is Moodle. The software development
tool is Jenkins.

I have to make following scenario true:
Moodle-participant is taking a course in moodle for learning Jenkins. After
watching the introduction slides, he has to do a task in Jenkins.
Problem is: How does the moodle-trainer know that the task in the external
tool Jenkins has been completed?

Is it possible to make a connection between the e-larning platform moodle
and the software jenkins?

Which signals can Jenkins send? Maybe it is possible to check wether the
task is done inside of Jenkins and if the task is done, there can be sent a
mail to the moodle-trainer through jenkins?

I hope that my question is clear. I really don't know what to do and hope
I'll get support.

Greetings
Jüli

-- 
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/CAJe3S5R4iD0q7D1G83OC4CFSuo5A15UR9uVzBxCs%3DdJ5cpbB4A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.