Re: email-ext tokens for "Build Failure Analyzer"

2014-01-15 Thread Mike Bayliss
This isn't working for me - the script is run but failureCauses.size()
isn't more than 0, even though three causes have been matched in my test
case.

This is Jenkins core 1.546, with BFA 1.5.1 and email-ext 2.37.1 (server is
Ubuntu 12.04, java  version 1.7.0_25).

Any ideas what I'm missing?

Mike


On Tue, Dec 17, 2013 at 8:40 AM, Adam Guja  wrote:

> jelly script for obtaining information from Build Failure Analyzer plugin
> and using it in Email ext plugin
>
> Many thanks to Robert Sandell (one of the developers of BFA) for assisting
> me in creating this snippet!
>
> > xmlns:d="jelly:define" >
>> 
>> > value="${it.getAction('com.sonyericsson.jenkins.plugins.bfa.model.FailureCauseBuildAction').getFoundFailureCauses()}"/>
>> 
>> 
>> ${cause.name}
>> 
>> ${cause.description}
>> 
>> 
>> 
>> 
>> 
>
>
> W dniu czwartek, 3 stycznia 2013 14:24:54 UTC+1 użytkownik David Resnick
> napisał:
>>
>> Great plugin! It's a huge time saver to have Jenkins figure out what went
>> wrong with a build rather than having to view the log and figure it out for
>> myself.
>>
>> Right now I'd say that the biggest improvements that could be made to the
>> plugin involve making its results more prominent.
>>
>> It would be great if there was a "failure reason" email-ext token I could
>> add to failure emails Jenkins sends out. I've seen that some plugins
>> produce tokens for use by other plugins, apparently with the help of the
>> Token Macro Plugin (e.g. https://wiki.jenkins-ci.org/
>> display/JENKINS/Static+Code+Analysis+Plug-ins#StaticCodeAnalysisPlug-ins-
>> tokens ).
>>
>> Also, the "identified problems" that appear in a build summary page is
>> last on the page, seemingly following everything else. As far as I'm
>> concerned, because of its importance it should be the very first item on
>> the summary page.
>>
>> The lightbulb is a great way of seeing what happened with various builds
>> without further clicking. Depending on how long descriptions are, it might
>> be good to include additional information in the lightbulb tooltip such as
>> the description or category.
>>
>> In any case, thanks for a very helpful plugin.
>>
>> - 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: A way to get rid of useless local workspace?

2014-01-15 Thread Les Mikesell
On Wed, Jan 15, 2014 at 2:42 AM, kgiloo  wrote:
>
> probably my description lacked precision:
> I should have titled "A way to get rid of useless checkout of repository
> into my local workspace".
>
> I do not use any special slave configuration to trigger my builds on slaves,
> it is all driven by Ant.
> In other words, checkout of repository is also performed by Ant on slave.
>
> I need the "poll SCM" to kick off the build process, for nothing else, i.e
> checkout of repository in workspace has no sense on my master.

Why do it that way?  Why not include the ant script in the checkout
and let jenkins do it in the right place for you?

-- 
  Les Mikesell
lesmikes...@gmail.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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Securely obtain the Jenkins package and public key

2014-01-15 Thread Kohsuke Kawaguchi
OK, that's embarassing.

Indeed we haven't figured out how to communicate security problems to
plugin developers. Sometimes it's not obvious who to talk to, and even when
it is obvious, we haven't configured JIRA to let us grant read access on
issue-by-issue basis.

Issues not getting a timely enough attention is unfortunate, but aside from
trying to add more people to the jenkinsci-cert group (which we are always
trying), I'm not sure how to resolve that.

Daniel, given the level of activity you commit in the core, I feel like you
could help us fixing those issues, in addition to finding them.



2014/1/10 Daniel Beck 

> On 10.01.2014, at 18:11, teilo  wrote:
>
> > Have you helped to improve this situation by actually reporting them via
> the proper channels?
>
> Yes. That's why I consider the resolution process to be broken. The
> "proper channels" don't work.
>
> The first security issue I reported was SECURITY-35 in email-ext
> (installed on 30% of all instances) which I re-filed publicly as
> JENKINS-15213 after getting no response for three months. The email-ext
> author informed me he didn't receive any information from those with access
> to the private issue tracker and quickly fixed the problem. Another five
> months later, a response to SECURITY-35 arrived, explaining that, because
> the process was broken, some issues were overlooked.
>
> Then there's the ongoing SECURITY-87: I reported that anyone can trivially
> DoS any Jenkins instance (including those where anonymous has no
> permissions) on 13 Aug 2013. AFAICT the problem persists. Sure, it's not
> privilege escalation, but still annoying if you're running a public
> instance.
>
> Another example of a security issue in current LTS is JENKINS-20800, which
> I originally reported to Cloudbees Enterprise support in a non-security
> context (so it was filed publicly). I only later found it to be trivially
> exploitable on any Jenkins instance by anyone. Four weeks ago, the fix was
> backported early to LTS, likely because I asked for it on the dev list. But
> 1.532.2 still doesn't even have an RC. Should I have reported it separately
> as a security issue? Maybe, but the developers were aware of this issue,
> and by then I'd mostly given up on "proper channels".
>
>
> --
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Kohsuke Kawaguchi

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Securely obtain the Jenkins package and public key

2014-01-15 Thread Kohsuke Kawaguchi
I've modified the server infrastructure so that the PGP public key is
available at https://jenkins-ci.org/jenkins-ci.org.key. These keys are used
to sign native packages. In the next release I'll update the those package
documentaion to refer to this key location in HTTPS.

Aside from that, regardless of the packaging, the war file is signed with
my X509 certificate. That certificate is itself signed by CoMoDo, so you
can establish a known trust chain back up to the well-trusted root CAs.




2014/1/8 Abhijith Chandrashekar 

> Hello all,
>
> I work with a tech company where we're trying to establish a pristine
> build environment for all of our products. As part of this, we are looking
> to create a Jenkins CI server from scratch using the most secure methods
> possible. This would be on an underlying CentOS 6.2 machine. From reading
> the guide on installing Jenkins on CentOS/RedHat I see that the package and
> the key are both obtained over http as -
>
> wget -O /etc/yum.repos.d/jenkins.repo
> http://pkg.jenkins-ci.org/redhat/jenkins.repo
>
> and
>
> rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
>
> This raises possibilities of a Man-in-the-middle attack compromising the
> integrity of the repo or the key or both. To avoid this, is there a way to
> obtain the package and the key securely? This could either be over HTTPS,
> SFTP or by exchanging PGP keys with the owner and then transporting it over
> email.
>
> If there's a better place to post this question, please inform.
>
> Thanks,
> Abhijith
>
> --
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Kohsuke Kawaguchi

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: How to bring the history back if a job has been renamed

2014-01-15 Thread Curtis Kline
But do not ever run "Reload Configuration from Disk" if you have the Gerrit
Trigger installed (ver 2.10 and older). Every job that's using the Gerrit
Trigger will have serious problems if you do.

See: http://issues.jenkins-ci.org/browse/JENKINS-10709

So if you're running LTS Jenkins and Gerrit Trigger 2.10, you just never
rename jobs, like me.

Curtis



On Mon, Jan 13, 2014 at 10:45 AM, Daniel Beck  wrote:

> Run 'Manage Jenkins » Reload Configuration from Disk' after renaming a job
> and/or update to 1.546, which doesn't have JENKINS-18678 anymore.
>
> On 13.01.2014, at 19:43, Maneesh M P  wrote:
>
> > Hi,
> >
> >  I have a job which has many builds executed,  I just renamed the job
> and all the build history is lost.
> >  How to bring back the history and display in jenkins UI ?
> >
> > Thanks,
> > M
> >
> > --
> > 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.
> > For more options, visit https://groups.google.com/groups/opt_out.
>
> --
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Securely obtain the Jenkins package and public key

2014-01-15 Thread Richard Mortimer

Hi Abhijith,

I think you need to read about chains of trust. Everything that you 
suggest below is at best hiding what you are downloading from an 
observer. It doesn't stop man in the middle attacks or guarantee that 
the contents were not corrupted during transit.


As James suggested all you need to do is convince yourself that 
Kohsuke's public PGP key is actually his. Once you have done that you 
can verify that the signed release is actually what Kohsuke meant to 
release.


How paranoid you are is really up to you. You could just trust the key 
that is publicly posted by Kohsuke, attempt to verify the key via a web 
of trust, or even try to convince Kohsuke to meet you in person to 
verify the key.


Really I suspect that most of that is just overkill. You just need to 
ensure that you have a repeatable build environment where you have a 
reasonable level of trust that the software you downloaded is fit for 
purpose. Many Linux OS distributions (Debian for example) have all of 
the individual packages are linked back to a widely published central 
key allowing you to detect any tampering in transit.


The same applies to any commercial arrangements with appropriate 
software suppliers. You would need to get & trust a public key from them 
to allow you to verify that you receive exactly what was intended to be 
sent.


Regards

Richard


On 15/01/2014 22:27, abhijith chandrashekar wrote:

Thanks Tielo. Although I do think downloading sources and inspecting
them would not only be overkill, but also not a foolproof way of
ensuring security. What if the source files are mangled during download?

The only few ways I can think of are

1. to get the binaries and keys/hashes over PGP email from somebody on
the inside
2. obtain it over HTTPS on their website
3. using SFTP or
4. by having someone on the inside ship a DVD that contains the binary +
public key.

I'm trying other avenues (CloudBees, for example) but there do not seem
to be any provisions to do this.

Thanks,
Abhijith



On Mon, Jan 13, 2014 at 1:46 AM, teilo mailto:teilo+goo...@teilo.net>> wrote:


On Sunday, 12 January 2014 22:20:17 UTC, Abhijith Chandrashekar wrote:

 > Of course, you'd need a secure way to make sure it's actually
his signature, but that should be easier than changing the
entire distribution chain.

That's exactly the problem. Any ideas on how I can do that?

Thanks,
Abhijith


http://kohsuke.org/about/pgp/

But if you are that security paranoid then you should download the
sources, inspect them (and the history)  and then compile them
yourself every release (like you do for all the plugins right!?).

/James

--
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/3O8vpxrWZH8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
jenkinsci-users+unsubscr...@googlegroups.com
.
For more options, visit https://groups.google.com/groups/opt_out.


--
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.
For more options, visit https://groups.google.com/groups/opt_out.


--
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Looking for solution on Jenkins Email Plugin feature

2014-01-15 Thread devanand
Thanks a lot, Finally following line is the correct line which i suppose to 
use it...

${BUILD_LOG_REGEX, regex=".*((?=.*?Environment)(?=.*?Total)(E.*?\\)))", 
substText="$1",showTruncatedLines=false}

This is working all right now... thanks a lot for your help



On Wednesday, January 15, 2014 3:28:17 PM UTC-8, slide wrote:
>
> Try this: ${BUILD_LOG_REGEX, 
> regex=".*((?=.*?Environment)(?=.*?Total)(E.*?\\)))", substText="$1"}
>
>
> On Wed, Jan 15, 2014 at 3:55 PM, Daivish Shah 
> > wrote:
>
>> Yes you are right I just verified my LOGs...The line is getting 
>> Printed as part of my API. But some how it's not able to remove [java] from 
>> the REGEX.
>>
>> i tested my REGEX you can take a look here. It's just trying to grab the 
>> specific line which i want to get it printed in the email... But still i am 
>> not sure from where [java] is coming...
>> http://regex101.com/r/aZ0dI0
>>
>> I even tried following thing, Which didn't work and it's just printing 
>> [java] [java] 2 times...
>> ${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?
>> \\))",showTruncatedLines=false,substText="$1"}
>>
>>
>> On Wed, Jan 15, 2014 at 2:10 PM, Slide > >wrote:
>>
>>> [java] is not printed by the build log regex token, I can guarantee that.
>>> On Jan 15, 2014 2:43 PM, "devanand" > 
>>> wrote:
>>>
  I think i got it what are you trying to say now I tried your 
 approach but it's still printing same thing...

 But seems like this is not the solution... As i can still see [java] is 
 always getting printed as part of any BUILD_LOG_REGEX whatever i do... As 
 that is coming from this API itself... Seems like i can't avoid this to 
 get 
 it printed as part of email.. No solution seems like..



 On Wednesday, January 15, 2014 12:53:23 PM UTC-8, slide wrote:
>
> I don't have a way to test, so I can't tell you exactly what you need 
> to use. The substText can use $0 through $9 to be the matching groups for 
> the replacement text, so something like this (THIS WILL NOT WORK AS IS).
>
> ${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?
> \\))",showTruncatedLines=false,substText="$1"}
>
>
> On Wed, Jan 15, 2014 at 11:34 AM, devanand  wrote:
>
>> I am still confused sorry but i never used substText before and i 
>> didn't find any good documentation for this too so i am asking the 
>> question 
>> again...
>>
>> ${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?
>> \\))",showTruncatedLines=false,substText=Matcher.appendReplacement 
>> [StringBuffer,String]}
>>
>> Now what should i pass here as part of StringBuffer object and String 
>> Object ?? 
>>
>> Currently i am getting this output from EMAIL if i use following line.
>> ${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?
>> \\))",showTruncatedLines=false}
>>
>> *[java] Environment: ABC Total(Pass:0 Fail:1 Incomplete:0 Delayed:0 
>> Manual Verification:0) *
>>
>> What exactly i need to modify here in order to get the output from 
>> LOG file like this ?
>>
>>
>> *Environment: ABC Total(Pass:0 Fail:1 Incomplete:0 Delayed:0 Manual 
>> Verification:0) *
>>
>> This will be helpful if you can give me a exact sample here.. As i 
>> never used it before...
>>
>> Thanks.
>>
>> On Wednesday, January 15, 2014 9:40:29 AM UTC-8, slide wrote:
>>
>>> The BUILD_LOG_REGEX token has a substText parameter, you specify the 
>>> replacement you want to replace the matched regex with. You can use the 
>>> same syntax for the replacement string as is supported by 
>>> appendReplacement 
>>> of the Matcher object, e.g., (this does not solve your issue, you'll 
>>> have 
>>> to determine the regex and replacement for you).
>>>
>>> ${BUILD_LOG_REGEX,regex="Something(.*)",substText="$1"}
>>>
>>> slide
>>>
>>>
>>> On Wed, Jan 15, 2014 at 10:24 AM, devanand  wrote:
>>>
 Hi,

 I am using Email Ext Plugin here... I don't see a way to use JAVA 
 API as a part of the EMAIL feature for Jenkins.

 https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin
 #Email-extplugin-Scriptcontent

 Can anyone guide me what syntax i need to write in order to remove 
 [JAVA] from the actual email  ?

 Thanks.



 On Tuesday, January 14, 2014 6:23:23 PM UTC-8, slide wrote:

> You can use the substText which is passed to 
> Matcher.appendReplacement [1], you can see how to use that in the 
> Javadoc. 
> You can use $0 through $9 to be the matched groups.
>
> slide
>
> 1 - http://docs.oracle.com/javase/6/docs/api/java/util/regex/M
> atcher.html#appendReplacement(java.lang.StringBuffer, 
>

Re: Looking for solution on Jenkins Email Plugin feature

2014-01-15 Thread Slide
Try this: ${BUILD_LOG_REGEX,
regex=".*((?=.*?Environment)(?=.*?Total)(E.*?\\)))", substText="$1"}


On Wed, Jan 15, 2014 at 3:55 PM, Daivish Shah  wrote:

> Yes you are right I just verified my LOGs...The line is getting
> Printed as part of my API. But some how it's not able to remove [java] from
> the REGEX.
>
> i tested my REGEX you can take a look here. It's just trying to grab the
> specific line which i want to get it printed in the email... But still i am
> not sure from where [java] is coming...
> http://regex101.com/r/aZ0dI0
>
> I even tried following thing, Which didn't work and it's just printing
> [java] [java] 2 times...
> ${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?
> \\))",showTruncatedLines=false,substText="$1"}
>
>
> On Wed, Jan 15, 2014 at 2:10 PM, Slide  wrote:
>
>> [java] is not printed by the build log regex token, I can guarantee that.
>> On Jan 15, 2014 2:43 PM, "devanand"  wrote:
>>
>>>  I think i got it what are you trying to say now I tried your
>>> approach but it's still printing same thing...
>>>
>>> But seems like this is not the solution... As i can still see [java] is
>>> always getting printed as part of any BUILD_LOG_REGEX whatever i do... As
>>> that is coming from this API itself... Seems like i can't avoid this to get
>>> it printed as part of email.. No solution seems like..
>>>
>>>
>>>
>>> On Wednesday, January 15, 2014 12:53:23 PM UTC-8, slide wrote:

 I don't have a way to test, so I can't tell you exactly what you need
 to use. The substText can use $0 through $9 to be the matching groups for
 the replacement text, so something like this (THIS WILL NOT WORK AS IS).

 ${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?
 \\))",showTruncatedLines=false,substText="$1"}


 On Wed, Jan 15, 2014 at 11:34 AM, devanand  wrote:

> I am still confused sorry but i never used substText before and i
> didn't find any good documentation for this too so i am asking the 
> question
> again...
>
> ${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?
> \\))",showTruncatedLines=false,substText=Matcher.appendReplacement
> [StringBuffer,String]}
>
> Now what should i pass here as part of StringBuffer object and String
> Object ??
>
> Currently i am getting this output from EMAIL if i use following line.
> ${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?
> \\))",showTruncatedLines=false}
>
> *[java] Environment: ABC Total(Pass:0 Fail:1 Incomplete:0 Delayed:0
> Manual Verification:0) *
>
> What exactly i need to modify here in order to get the output from LOG
> file like this ?
>
>
> *Environment: ABC Total(Pass:0 Fail:1 Incomplete:0 Delayed:0 Manual
> Verification:0) *
>
> This will be helpful if you can give me a exact sample here.. As i
> never used it before...
>
> Thanks.
>
> On Wednesday, January 15, 2014 9:40:29 AM UTC-8, slide wrote:
>
>> The BUILD_LOG_REGEX token has a substText parameter, you specify the
>> replacement you want to replace the matched regex with. You can use the
>> same syntax for the replacement string as is supported by 
>> appendReplacement
>> of the Matcher object, e.g., (this does not solve your issue, you'll have
>> to determine the regex and replacement for you).
>>
>> ${BUILD_LOG_REGEX,regex="Something(.*)",substText="$1"}
>>
>> slide
>>
>>
>> On Wed, Jan 15, 2014 at 10:24 AM, devanand  wrote:
>>
>>> Hi,
>>>
>>> I am using Email Ext Plugin here... I don't see a way to use JAVA
>>> API as a part of the EMAIL feature for Jenkins.
>>>
>>> https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin
>>> #Email-extplugin-Scriptcontent
>>>
>>> Can anyone guide me what syntax i need to write in order to remove
>>> [JAVA] from the actual email  ?
>>>
>>> Thanks.
>>>
>>>
>>>
>>> On Tuesday, January 14, 2014 6:23:23 PM UTC-8, slide wrote:
>>>
 You can use the substText which is passed to
 Matcher.appendReplacement [1], you can see how to use that in the 
 Javadoc.
 You can use $0 through $9 to be the matched groups.

 slide

 1 - http://docs.oracle.com/javase/6/docs/api/java/util/regex/M
 atcher.html#appendReplacement(java.lang.StringBuffer,
 java.lang.String)


 On Tue, Jan 14, 2014 at 6:47 PM, devanand  wrote:

> Hi,
>
> I have this value configured to send out email, Under editable
> email configuration section of the JOB.
>
>
> ${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?
> \\))",showTruncatedLines=false}
>
> As i result of this LINE i am getting this value as part of my
> Email.
>
> *[j

Re: Looking for solution on Jenkins Email Plugin feature

2014-01-15 Thread Daivish Shah
Yes you are right I just verified my LOGs...The line is getting Printed
as part of my API. But some how it's not able to remove [java] from the
REGEX.

i tested my REGEX you can take a look here. It's just trying to grab the
specific line which i want to get it printed in the email... But still i am
not sure from where [java] is coming...
http://regex101.com/r/aZ0dI0

I even tried following thing, Which didn't work and it's just printing
[java] [java] 2 times...
${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?
\\))",showTruncatedLines=false,substText="$1"}


On Wed, Jan 15, 2014 at 2:10 PM, Slide  wrote:

> [java] is not printed by the build log regex token, I can guarantee that.
> On Jan 15, 2014 2:43 PM, "devanand"  wrote:
>
>> I think i got it what are you trying to say now I tried your approach
>> but it's still printing same thing...
>>
>> But seems like this is not the solution... As i can still see [java] is
>> always getting printed as part of any BUILD_LOG_REGEX whatever i do... As
>> that is coming from this API itself... Seems like i can't avoid this to get
>> it printed as part of email.. No solution seems like..
>>
>>
>>
>> On Wednesday, January 15, 2014 12:53:23 PM UTC-8, slide wrote:
>>>
>>> I don't have a way to test, so I can't tell you exactly what you need to
>>> use. The substText can use $0 through $9 to be the matching groups for the
>>> replacement text, so something like this (THIS WILL NOT WORK AS IS).
>>>
>>> ${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?
>>> \\))",showTruncatedLines=false,substText="$1"}
>>>
>>>
>>> On Wed, Jan 15, 2014 at 11:34 AM, devanand  wrote:
>>>
 I am still confused sorry but i never used substText before and i
 didn't find any good documentation for this too so i am asking the question
 again...

 ${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?
 \\))",showTruncatedLines=false,substText=Matcher.appendReplacement
 [StringBuffer,String]}

 Now what should i pass here as part of StringBuffer object and String
 Object ??

 Currently i am getting this output from EMAIL if i use following line.
 ${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?
 \\))",showTruncatedLines=false}

 *[java] Environment: ABC Total(Pass:0 Fail:1 Incomplete:0 Delayed:0
 Manual Verification:0) *

 What exactly i need to modify here in order to get the output from LOG
 file like this ?


 *Environment: ABC Total(Pass:0 Fail:1 Incomplete:0 Delayed:0 Manual
 Verification:0) *

 This will be helpful if you can give me a exact sample here.. As i
 never used it before...

 Thanks.

 On Wednesday, January 15, 2014 9:40:29 AM UTC-8, slide wrote:

> The BUILD_LOG_REGEX token has a substText parameter, you specify the
> replacement you want to replace the matched regex with. You can use the
> same syntax for the replacement string as is supported by 
> appendReplacement
> of the Matcher object, e.g., (this does not solve your issue, you'll have
> to determine the regex and replacement for you).
>
> ${BUILD_LOG_REGEX,regex="Something(.*)",substText="$1"}
>
> slide
>
>
> On Wed, Jan 15, 2014 at 10:24 AM, devanand  wrote:
>
>> Hi,
>>
>> I am using Email Ext Plugin here... I don't see a way to use JAVA API
>> as a part of the EMAIL feature for Jenkins.
>>
>> https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin
>> #Email-extplugin-Scriptcontent
>>
>> Can anyone guide me what syntax i need to write in order to remove
>> [JAVA] from the actual email  ?
>>
>> Thanks.
>>
>>
>>
>> On Tuesday, January 14, 2014 6:23:23 PM UTC-8, slide wrote:
>>
>>> You can use the substText which is passed to
>>> Matcher.appendReplacement [1], you can see how to use that in the 
>>> Javadoc.
>>> You can use $0 through $9 to be the matched groups.
>>>
>>> slide
>>>
>>> 1 - http://docs.oracle.com/javase/6/docs/api/java/util/regex/M
>>> atcher.html#appendReplacement(java.lang.StringBuffer,
>>> java.lang.String)
>>>
>>>
>>> On Tue, Jan 14, 2014 at 6:47 PM, devanand  wrote:
>>>
 Hi,

 I have this value configured to send out email, Under editable
 email configuration section of the JOB.


 ${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?
 \\))",showTruncatedLines=false}

 As i result of this LINE i am getting this value as part of my
 Email.

 *[java] Environment: ABC Total(Pass:0 Fail:1 Incomplete:0 Delayed:0
 Manual Verification:0) *


 *But i don't want [java] to be printed as part of my email, How can
 i avoid this ?? I am looking to resolve this issue. *

 *Thanks.*

 --
>

Re: Securely obtain the Jenkins package and public key

2014-01-15 Thread abhijith chandrashekar
Thanks Tielo. Although I do think downloading sources and inspecting them
would not only be overkill, but also not a foolproof way of ensuring
security. What if the source files are mangled during download?

The only few ways I can think of are

1. to get the binaries and keys/hashes over PGP email from somebody on the
inside
2. obtain it over HTTPS on their website
3. using SFTP or
4. by having someone on the inside ship a DVD that contains the binary +
public key.

I'm trying other avenues (CloudBees, for example) but there do not seem to
be any provisions to do this.

Thanks,
Abhijith



On Mon, Jan 13, 2014 at 1:46 AM, teilo  wrote:

>
> On Sunday, 12 January 2014 22:20:17 UTC, Abhijith Chandrashekar wrote:
>>
>> > Of course, you'd need a secure way to make sure it's actually his
>> signature, but that should be easier than changing the entire distribution
>> chain.
>>
>> That's exactly the problem. Any ideas on how I can do that?
>>
>> Thanks,
>> Abhijith
>>
>
> http://kohsuke.org/about/pgp/
>
> But if you are that security paranoid then you should download the
> sources, inspect them (and the history)  and then compile them yourself
> every release (like you do for all the plugins right!?).
>
> /James
>
> --
> 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/3O8vpxrWZH8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Looking for solution on Jenkins Email Plugin feature

2014-01-15 Thread Slide
[java] is not printed by the build log regex token, I can guarantee that.
On Jan 15, 2014 2:43 PM, "devanand"  wrote:

> I think i got it what are you trying to say now I tried your approach
> but it's still printing same thing...
>
> But seems like this is not the solution... As i can still see [java] is
> always getting printed as part of any BUILD_LOG_REGEX whatever i do... As
> that is coming from this API itself... Seems like i can't avoid this to get
> it printed as part of email.. No solution seems like..
>
>
>
> On Wednesday, January 15, 2014 12:53:23 PM UTC-8, slide wrote:
>>
>> I don't have a way to test, so I can't tell you exactly what you need to
>> use. The substText can use $0 through $9 to be the matching groups for the
>> replacement text, so something like this (THIS WILL NOT WORK AS IS).
>>
>> ${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?
>> \\))",showTruncatedLines=false,substText="$1"}
>>
>>
>> On Wed, Jan 15, 2014 at 11:34 AM, devanand  wrote:
>>
>>> I am still confused sorry but i never used substText before and i didn't
>>> find any good documentation for this too so i am asking the question
>>> again...
>>>
>>> ${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?
>>> \\))",showTruncatedLines=false,substText=Matcher.appendReplacement
>>> [StringBuffer,String]}
>>>
>>> Now what should i pass here as part of StringBuffer object and String
>>> Object ??
>>>
>>> Currently i am getting this output from EMAIL if i use following line.
>>> ${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?
>>> \\))",showTruncatedLines=false}
>>>
>>> *[java] Environment: ABC Total(Pass:0 Fail:1 Incomplete:0 Delayed:0
>>> Manual Verification:0) *
>>>
>>> What exactly i need to modify here in order to get the output from LOG
>>> file like this ?
>>>
>>>
>>> *Environment: ABC Total(Pass:0 Fail:1 Incomplete:0 Delayed:0 Manual
>>> Verification:0) *
>>>
>>> This will be helpful if you can give me a exact sample here.. As i never
>>> used it before...
>>>
>>> Thanks.
>>>
>>> On Wednesday, January 15, 2014 9:40:29 AM UTC-8, slide wrote:
>>>
 The BUILD_LOG_REGEX token has a substText parameter, you specify the
 replacement you want to replace the matched regex with. You can use the
 same syntax for the replacement string as is supported by appendReplacement
 of the Matcher object, e.g., (this does not solve your issue, you'll have
 to determine the regex and replacement for you).

 ${BUILD_LOG_REGEX,regex="Something(.*)",substText="$1"}

 slide


 On Wed, Jan 15, 2014 at 10:24 AM, devanand  wrote:

> Hi,
>
> I am using Email Ext Plugin here... I don't see a way to use JAVA API
> as a part of the EMAIL feature for Jenkins.
>
> https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin
> #Email-extplugin-Scriptcontent
>
> Can anyone guide me what syntax i need to write in order to remove
> [JAVA] from the actual email  ?
>
> Thanks.
>
>
>
> On Tuesday, January 14, 2014 6:23:23 PM UTC-8, slide wrote:
>
>> You can use the substText which is passed to
>> Matcher.appendReplacement [1], you can see how to use that in the 
>> Javadoc.
>> You can use $0 through $9 to be the matched groups.
>>
>> slide
>>
>> 1 - http://docs.oracle.com/javase/6/docs/api/java/util/regex/M
>> atcher.html#appendReplacement(java.lang.StringBuffer,
>> java.lang.String)
>>
>>
>> On Tue, Jan 14, 2014 at 6:47 PM, devanand  wrote:
>>
>>> Hi,
>>>
>>> I have this value configured to send out email, Under editable email
>>> configuration section of the JOB.
>>>
>>>
>>> ${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?
>>> \\))",showTruncatedLines=false}
>>>
>>> As i result of this LINE i am getting this value as part of my
>>> Email.
>>>
>>> *[java] Environment: ABC Total(Pass:0 Fail:1 Incomplete:0 Delayed:0
>>> Manual Verification:0) *
>>>
>>>
>>> *But i don't want [java] to be printed as part of my email, How can
>>> i avoid this ?? I am looking to resolve this issue. *
>>>
>>> *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-use...@googlegroups.com.
>>>
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>
>>
>> --
>> Website: http://earl-of-code.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-use...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>



 

Re: Global use of masked password

2014-01-15 Thread Daniel Beck

On 15.01.2014, at 21:51, Scott Evans  wrote:

> there's a click box

… provided by the Environment Injector Plugin (or "env-inject").

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Looking for solution on Jenkins Email Plugin feature

2014-01-15 Thread devanand
I think i got it what are you trying to say now I tried your approach 
but it's still printing same thing...

But seems like this is not the solution... As i can still see [java] is 
always getting printed as part of any BUILD_LOG_REGEX whatever i do... As 
that is coming from this API itself... Seems like i can't avoid this to get 
it printed as part of email.. No solution seems like..



On Wednesday, January 15, 2014 12:53:23 PM UTC-8, slide wrote:
>
> I don't have a way to test, so I can't tell you exactly what you need to 
> use. The substText can use $0 through $9 to be the matching groups for the 
> replacement text, so something like this (THIS WILL NOT WORK AS IS).
>
> ${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?
> \\))",showTruncatedLines=false,substText="$1"}
>
>
> On Wed, Jan 15, 2014 at 11:34 AM, devanand 
> > wrote:
>
>> I am still confused sorry but i never used substText before and i didn't 
>> find any good documentation for this too so i am asking the question 
>> again...
>>
>> ${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?\\))",showTruncatedLines=false,substText=Matcher.appendReplacement
>>  
>> [StringBuffer,String]}
>>
>> Now what should i pass here as part of StringBuffer object and String 
>> Object ?? 
>>
>> Currently i am getting this output from EMAIL if i use following line.
>> ${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?
>> \\))",showTruncatedLines=false}
>>
>> *[java] Environment: ABC Total(Pass:0 Fail:1 Incomplete:0 Delayed:0 
>> Manual Verification:0) *
>>
>> What exactly i need to modify here in order to get the output from LOG 
>> file like this ?
>>
>>
>> *Environment: ABC Total(Pass:0 Fail:1 Incomplete:0 Delayed:0 Manual 
>> Verification:0) *
>>
>> This will be helpful if you can give me a exact sample here.. As i never 
>> used it before...
>>
>> Thanks.
>>
>> On Wednesday, January 15, 2014 9:40:29 AM UTC-8, slide wrote:
>>
>>> The BUILD_LOG_REGEX token has a substText parameter, you specify the 
>>> replacement you want to replace the matched regex with. You can use the 
>>> same syntax for the replacement string as is supported by appendReplacement 
>>> of the Matcher object, e.g., (this does not solve your issue, you'll have 
>>> to determine the regex and replacement for you).
>>>
>>> ${BUILD_LOG_REGEX,regex="Something(.*)",substText="$1"}
>>>
>>> slide
>>>
>>>
>>> On Wed, Jan 15, 2014 at 10:24 AM, devanand  wrote:
>>>
 Hi,

 I am using Email Ext Plugin here... I don't see a way to use JAVA API 
 as a part of the EMAIL feature for Jenkins.

 https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+
 plugin#Email-extplugin-Scriptcontent

 Can anyone guide me what syntax i need to write in order to remove 
 [JAVA] from the actual email  ?

 Thanks.



 On Tuesday, January 14, 2014 6:23:23 PM UTC-8, slide wrote:

> You can use the substText which is passed to Matcher.appendReplacement 
> [1], you can see how to use that in the Javadoc. You can use $0 through 
> $9 
> to be the matched groups.
>
> slide
>
> 1 - http://docs.oracle.com/javase/6/docs/api/java/util/regex/
> Matcher.html#appendReplacement(java.lang.StringBuffer, 
> java.lang.String)
>
>
> On Tue, Jan 14, 2014 at 6:47 PM, devanand  wrote:
>
>> Hi,
>>
>> I have this value configured to send out email, Under editable email 
>> configuration section of the JOB. 
>>
>>
>> ${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?
>> \\))",showTruncatedLines=false}
>>
>> As i result of this LINE i am getting this value as part of my Email. 
>>
>> *[java] Environment: ABC Total(Pass:0 Fail:1 Incomplete:0 Delayed:0 
>> Manual Verification:0) *
>>
>>  
>> *But i don't want [java] to be printed as part of my email, How can i 
>> avoid this ?? I am looking to resolve this issue. *
>>
>> *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-use...@googlegroups.com.
>>
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> -- 
> Website: http://earl-of-code.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-use...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.

>>>
>>>
>>>
>>> -- 
>>> Website: http://earl-of-code.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 

Re: Looking for solution on Jenkins Email Plugin feature

2014-01-15 Thread Slide
I don't have a way to test, so I can't tell you exactly what you need to
use. The substText can use $0 through $9 to be the matching groups for the
replacement text, so something like this (THIS WILL NOT WORK AS IS).

${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?
\\))",showTruncatedLines=false,substText="$1"}


On Wed, Jan 15, 2014 at 11:34 AM, devanand  wrote:

> I am still confused sorry but i never used substText before and i didn't
> find any good documentation for this too so i am asking the question
> again...
>
> ${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?\\))",showTruncatedLines=false,substText=Matcher.appendReplacement
> [StringBuffer,String]}
>
> Now what should i pass here as part of StringBuffer object and String
> Object ??
>
> Currently i am getting this output from EMAIL if i use following line.
> ${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?
> \\))",showTruncatedLines=false}
>
> *[java] Environment: ABC Total(Pass:0 Fail:1 Incomplete:0 Delayed:0 Manual
> Verification:0) *
>
> What exactly i need to modify here in order to get the output from LOG
> file like this ?
>
>
> *Environment: ABC Total(Pass:0 Fail:1 Incomplete:0 Delayed:0 Manual
> Verification:0) *
>
> This will be helpful if you can give me a exact sample here.. As i never
> used it before...
>
> Thanks.
>
> On Wednesday, January 15, 2014 9:40:29 AM UTC-8, slide wrote:
>
>> The BUILD_LOG_REGEX token has a substText parameter, you specify the
>> replacement you want to replace the matched regex with. You can use the
>> same syntax for the replacement string as is supported by appendReplacement
>> of the Matcher object, e.g., (this does not solve your issue, you'll have
>> to determine the regex and replacement for you).
>>
>> ${BUILD_LOG_REGEX,regex="Something(.*)",substText="$1"}
>>
>> slide
>>
>>
>> On Wed, Jan 15, 2014 at 10:24 AM, devanand  wrote:
>>
>>> Hi,
>>>
>>> I am using Email Ext Plugin here... I don't see a way to use JAVA API as
>>> a part of the EMAIL feature for Jenkins.
>>>
>>> https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+
>>> plugin#Email-extplugin-Scriptcontent
>>>
>>> Can anyone guide me what syntax i need to write in order to remove
>>> [JAVA] from the actual email  ?
>>>
>>> Thanks.
>>>
>>>
>>>
>>> On Tuesday, January 14, 2014 6:23:23 PM UTC-8, slide wrote:
>>>
 You can use the substText which is passed to Matcher.appendReplacement
 [1], you can see how to use that in the Javadoc. You can use $0 through $9
 to be the matched groups.

 slide

 1 - http://docs.oracle.com/javase/6/docs/api/java/util/regex/
 Matcher.html#appendReplacement(java.lang.StringBuffer,
 java.lang.String)


 On Tue, Jan 14, 2014 at 6:47 PM, devanand  wrote:

> Hi,
>
> I have this value configured to send out email, Under editable email
> configuration section of the JOB.
>
>
> ${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?
> \\))",showTruncatedLines=false}
>
> As i result of this LINE i am getting this value as part of my Email.
>
> *[java] Environment: ABC Total(Pass:0 Fail:1 Incomplete:0 Delayed:0
> Manual Verification:0) *
>
>
> *But i don't want [java] to be printed as part of my email, How can i
> avoid this ?? I am looking to resolve this issue. *
>
> *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-use...@googlegroups.com.
>
> For more options, visit https://groups.google.com/groups/opt_out.
>



 --
 Website: http://earl-of-code.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-use...@googlegroups.com.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>
>>
>> --
>> Website: http://earl-of-code.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.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Website: http://earl-of-code.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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Global use of masked password

2014-01-15 Thread Scott Evans
Eric,

We use that all the time.  Under Build Environment for each job there's a
click box for "Inject password to the build as environment variables" and a
sub-check for Global Passwords.  It should be masked in any log output, but
available to each job that's configured to use global passwords.

Scott


On Wed, Jan 15, 2014 at 2:43 PM, Eric Wood  wrote:

> Is it possible to set up a "global" password from the jenkins configure
> system  page and use it throughout my various jenkins jobs?  I tried to
> create a Mask Passwords - Global name/password pair and then use it as a
> variable in the job's ANT properties section as:
> ${TEST_PASSWORD}, but it did not translate at the job level.  It did work
> if I set the name/value pair in the Build Environment on the job page
> itself, but it would be nice to be able to use the global setting.  How do
> I set up the page to use the global setting from the configure page?
>
> Thanks for you rhelp
>
> --
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Java Version 7, Update 45 warning every time I try starting the slave

2014-01-15 Thread Jeremy Morton
Thanks, that got me back to having to check a box each time I start the 
program. There doesn't seem to be a way to tell it to just run it when it 
is launched.

On Wednesday, January 15, 2014 3:42:59 PM UTC-5, KT wrote:
>
> Try going to Java in Control Panel > Programs.
>
> Then go to the Security Tab, and click on edit site list.  Add your 
> jenkins base address there 
>
> --
> *From: *"Jeremy Morton" >
> *To: *jenkins...@googlegroups.com 
> *Sent: *Wednesday, January 15, 2014 2:22:08 PM
> *Subject: *Re: Re: Java Version 7, Update 45 warning every time I try 
> starting the slave
>
> Even worse, even if you don't update Java, it refuses to run self-signed 
> jnlp files because you aren't running the latest version [and the latest 
> version blocks them, too].
>
>
>
> On Wednesday, January 15, 2014 3:10:15 PM UTC-5, Jeremy Morton wrote:
>
>> FYI, as of Update 51, it now blocks with no option to allow execution.
>>
>>  -- 
> 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-use...@googlegroups.com .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Java Version 7, Update 45 warning every time I try starting the slave

2014-01-15 Thread k . thieling
Try going to Java in Control Panel > Programs. 


Then go to the Security Tab, and click on edit site list. Add your jenkins base 
address there 

- Original Message -
From: "Jeremy Morton"  
To: jenkinsci-users@googlegroups.com 
Sent: Wednesday, January 15, 2014 2:22:08 PM 
Subject: Re: Re: Java Version 7, Update 45 warning every time I try starting 
the slave 



Even worse, even if you don't update Java, it refuses to run self-signed jnlp 
files because you aren't running the latest version [and the latest version 
blocks them, too]. 




On Wednesday, January 15, 2014 3:10:15 PM UTC-5, Jeremy Morton wrote: 


FYI, as of Update 51, it now blocks with no option to allow execution. 





















-- 
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. 
For more options, visit https://groups.google.com/groups/opt_out . 

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Global use of masked password

2014-01-15 Thread Eric Wood
Is it possible to set up a "global" password from the jenkins configure system  
page and use it throughout my various jenkins jobs?  I tried to create a Mask 
Passwords - Global name/password pair and then use it as a variable in the 
job's ANT properties section as:
${TEST_PASSWORD}, but it did not translate at the job level.  It did work if I 
set the name/value pair in the Build Environment on the job page itself, but it 
would be nice to be able to use the global setting.  How do I set up the page 
to use the global setting from the configure page?

Thanks for you rhelp

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Re: Java Version 7, Update 45 warning every time I try starting the slave

2014-01-15 Thread Jeremy Morton
Even worse, even if you don't update Java, it refuses to run self-signed 
jnlp files because you aren't running the latest version [and the latest 
version blocks them, too].



On Wednesday, January 15, 2014 3:10:15 PM UTC-5, Jeremy Morton wrote:

> FYI, as of Update 51, it now blocks with no option to allow execution.
>
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Re: Java Version 7, Update 45 warning every time I try starting the slave

2014-01-15 Thread Jeremy Morton
FYI, as of Update 51, it now blocks with no option to allow execution.

On Thursday, December 19, 2013 6:21:36 AM UTC-5, Andreas Schilling wrote:
>
> Hi everyone, 
>
> as stated in my answer from some time ago, the issue is that the JNLP for 
> Java versions from v7u45 must be signed. 
> That means the build process for the slave-JAR must be extended 
> accordingly. This is how it works: 
> https://blogs.oracle.com/thejavatutorials/entry/signing_a_jnlp_file 
> https://blogs.oracle.com/thejavatutorials/entry/signing_jar_files_with_a 
>
> Does anyone know whether there is already a JIRA-issue for that? If not, I 
> can create it. 
>
> Mit freundlichen Grüßen / kind regards 
> i.A. Andreas Schilling 
> Enterprise Processes & Software 
> --- 
> Dipl. Inf. Andreas Schilling 
> Senior Software Architect 
>
> TWT GmbH 
> Science & Innovation 
> Ernsthaldenstraße 17 
> D-70565 Stuttgart 
>   
> Tel: +49.7 11.21 57 77.6 73 <#> 
> Mobil: +49.1 72.6 22 88 70 <#> 
> E-Mail: andreas@twt-gmbh.de  
>  
> www.twt-gmbh.de 
>  
> Geschäftsführung: Dr. Dimitrios Vartziotis, Joachim Laicher (Stv.), Frank 
> Beutenmüller (Stv.) 
> Registergericht: Amtsgericht Stuttgart, HRB Nr. 212778 
> Umsatzsteuer: ID-Nr.: DE147841145 
>  
>
>
>
> Von:Mark > 
> An:jenkins...@googlegroups.com  
> Datum:17.12.2013 16:07 
> Betreff:Re: Java Version 7, Update 45 warning every time I try 
> starting the slave 
> Gesendet von:jenkins...@googlegroups.com  
> --
>
>
>
> I am experiencing the same problems. Executed: *java -jar 
> **slave.jar** 
> -jnlpUrl**http://HOSTNAME:8080/computer/HOSTNAME/slave-agent.jnlp**
>  
> -secret * 
>   
> And still get the error message "Running this application may be a 
> security risk" 
>   
>
> Op dinsdag 17 december 2013 00:55:24 UTC+1 schreef Mark Waite: 
> No, there is nothing on the server side which needs to be set.  Maybe I'm 
> not understanding the technique you attempted. 
>
> I downloaded the slave.jar file from the Jenkins server to a local 
> directory on my computer. 
> I created a batch file and inserted the "java -jar slave.jar ..." command 
> in the batch file 
> I started the batch file by double clicking it from Windows explorer 
>
> Did you do something different than that? 
>
> Mark Waite 
>
>  
> On Mon, Dec 16, 2013 at 1:38 PM, Adam Westhusing <*westh...@gmail.com*> 
> wrote: 
> I tried doing this and still received the security warning.  Is there 
> anything special that needs to be set on the server side to not receive the 
> warning?   
>
>  
> On Mon, Dec 2, 2013 at 3:39 PM, Mark Waite <*mark.ea...@gmail.com*> wrote: 
> You can download slave.jar from the link on each slave node definition 
> page.  It is available from 
> *http://localhost:8080/jnlpJars/slave.jar*(replace
>  localhost with your Jenkins server host name). 
>
> Mark Waite 
>
>  
> On Mon, Dec 2, 2013 at 12:58 PM, Jeremy Morton <*raist...@hotmail.com*> 
> wrote: 
> I am not finding slave.jar, and that command errors with:
>  
> Error: Unable to access jarfile slave.jar 
>
> On Friday, November 29, 2013 4:13:31 AM UTC-5, Mikael Larsson wrote: 
> Hi, 
>
> We had the same issue and solved it by using the alternative way to start 
> the jnlp-jar: 
>
>java -jar slave.jar -jnlpUrl 
> *https://ci.domain.com/jenkins/computer/COMPUTERNAME/slave-agent.jnlp*
>  
>
>
>
> Den tisdagen den 29:e oktober 2013 kl. 19:25:12 UTC+1 skrev Jeremy Morton: 
> When I run the javaws.exe command line to start slave-agent.jnlp, I now 
> get this Security warning from Java, which implies that in a future Java 
> update, I won't be able to run it at all. 
>   
> Is this something that I need to configure to make Java happy, or is this 
> a Jenkins-side fix? 
>   
> Security Warning 
> Do you want to run this application? 
> Name: hudson.remoting.Launcher 
> Publisher: UNKNOWN 
> Location: *http://jenkinsmaster:8080*  
> Running applications by UNKNOWN publishers will be blocked in a future 
> release 
> because it is potentially unsafe and a security risk. 
> Risk: This application will run with unrestricted access which may put 
> your computer and personal information at 
> risk. The information provided is unreliable op unknown so it is 
> recommended not to run this application unless 
> you are familiar with its source 
> This application will be blocked in a Future Java security update because 
> the JAR File manifest does not 
> contain the Permissions attribute. Please 

Disappearing slave nodes after restart

2014-01-15 Thread ddumont
Every time I restart my jenkins server it seems like I lose a slave node or 
two.
If I catch it right away, I can reload the config from disk and it comes 
back... but if I leave it alone and start making changes, I loose that 
ability.

I have jenkins checking in the config changes to git now, and I've noticed 
that there are commits being made, apparently for my user, which delete the 
slave node.  I am certainly not doing this though.
Does anyone have any ideas on how to investigate this issue?   Has anyone 
else had this problem?

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Generating parallel flow with Build Flow Plugin

2014-01-15 Thread Rodrigo García Peláez
Hi,

I'm trying to use build flow 
plugin https://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Plugin to run 
the same job multiple times in parallel but with different parameters that 
I produce from a given String parameter in the job

I was trying something like this:

parallel (
{
  params["BACKEND_SERVER"].split(",").each()
  { build( 
"GENERIC_DEPLOYMENT",BACKEND_BUILD_TAG:params["BACKEND_BUILD_TAG"],BACKEND_SERVER:it)
 
}
}
)

The console for the last run I tried shows this:

Started by user pelaezr 
[EnvInject] - Loading node environment variables.
Building on master in workspace /Users/jenkins/.jenkins/jobs/MULTI/workspace
parallel {
Schedule job GENERIC_DEPLOYMENT 

Build GENERIC_DEPLOYMENT #19 
 started
GENERIC_DEPLOYMENT #19 
 completed 
Schedule job GENERIC_DEPLOYMENT 

Build GENERIC_DEPLOYMENT #20 
 started
GENERIC_DEPLOYMENT #20 
 completed 
}
Notifying upstream projects of job completion
Finished: SUCCESS


But it doesn't seem to have run in parallel since it took 11 minutes and 
normally the GENERIC_DEPLOYMENT job takes about 5. This GENERIC_DEPLOYMENT 
should allow concurrent builds since it has ticked the check box with "Execute 
concurrent builds if necessary"


Jenkins is configured at the moment with a max number of executors of 4 and no 
other jobs were running


What am I missing? 


Thanks and regards

Rodrigo

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Is it possible to see the next scheduled build for a job? (ie, when using the "H" / hash crontab option)

2014-01-15 Thread Daniel Beck
I don't think it's exposed anywhere on the UI (except indirectly, e.g. dates in 
polling logs and when previous builds were started).

However, you can access it via the Jenkins script console, if you're willing to 
work for the information.

Run the following script, replacing 'job-name' with the name of the job you're 
interested in:
---
Jenkins.instance.getItemByFullName('job-name').triggers.each { desc, trig ->
  println desc.class.name
  trig.tabs.tabs.each { it.bits.each { b -> println Long.toBinaryString(b) } }
  println ""
}
return
---

This will print something like the following:
---
hudson.triggers.TimerTrigger$DescriptorImpl
1001001001
1000
1000
0

hudson.triggers.SCMTrigger$DescriptorImpl
100
100
1110
111
---

One block per configured trigger, in this case one 'Build periodically' 
(TimerTrigger) and one 'Poll SCM' (SCMTrigger). The binary lines correspond to 
minutes, hours, day-of-month and month respectively. The bits which are set 
indicate when the trigger is set to trigger. The rightmost bit always 
represents '0' (which cannot be set for day-of-month and month). Day-of-week is 
special and missing here, left as an exercise to the reader.

In the first example, I used the cron expression 'H/15 H(12-18) 15 * *'. It is 
set to trigger on 15:(0,15,30,45) on the 15th of every month.

In the second example, I used the expression 'H 10 * 4-10 *'. H is effectively 
31, polling SCM every day from April to October on 10:31.

This uses private members etc. and might break in future versions in Jenkins. 
Should be safe from breaking Jenkins though.

On 15.01.2014, at 18:40, Paul Molodowitch  wrote:

> I'm a big fan of using the hash in scheduled builds - ie,
> 
> H H * * *
> 
> to run a job once a day.
> 
> The only downside is that it can be hard to know when a job will next build - 
> is there any way to see that information?
> 
> Thanks,
>  Paul
> 
> -- 
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


I'm getting OutOfMemoryError (Jenkins 1.546 with slave nodes)

2014-01-15 Thread ddumont
Got a heap dump... also previously opened this issue which may be related: 
https://issues.jenkins-ci.org/browse/JENKINS-21382

Here is the requested path to root: http://pastebin.com/gpnB6v4M
Please let me know if there is any more information you would like added to 
the issue or this thread.

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Looking for solution on Jenkins Email Plugin feature

2014-01-15 Thread devanand
I am still confused sorry but i never used substText before and i didn't 
find any good documentation for this too so i am asking the question 
again...

${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?\\))",showTruncatedLines=false,substText=Matcher.appendReplacement
 
[StringBuffer,String]}

Now what should i pass here as part of StringBuffer object and String 
Object ?? 

Currently i am getting this output from EMAIL if i use following line.
${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?\\))",showTruncatedLines=false}

*[java] Environment: ABC Total(Pass:0 Fail:1 Incomplete:0 Delayed:0 Manual 
Verification:0) *

What exactly i need to modify here in order to get the output from LOG file 
like this ?

*Environment: ABC Total(Pass:0 Fail:1 Incomplete:0 Delayed:0 Manual 
Verification:0) *

This will be helpful if you can give me a exact sample here.. As i never 
used it before...

Thanks.

On Wednesday, January 15, 2014 9:40:29 AM UTC-8, slide wrote:
>
> The BUILD_LOG_REGEX token has a substText parameter, you specify the 
> replacement you want to replace the matched regex with. You can use the 
> same syntax for the replacement string as is supported by appendReplacement 
> of the Matcher object, e.g., (this does not solve your issue, you'll have 
> to determine the regex and replacement for you).
>
> ${BUILD_LOG_REGEX,regex="Something(.*)",substText="$1"}
>
> slide
>
>
> On Wed, Jan 15, 2014 at 10:24 AM, devanand 
> > wrote:
>
>> Hi,
>>
>> I am using Email Ext Plugin here... I don't see a way to use JAVA API as 
>> a part of the EMAIL feature for Jenkins.
>>
>>
>> https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin#Email-extplugin-Scriptcontent
>>
>> Can anyone guide me what syntax i need to write in order to remove [JAVA] 
>> from the actual email  ?
>>
>> Thanks.
>>
>>
>>
>> On Tuesday, January 14, 2014 6:23:23 PM UTC-8, slide wrote:
>>
>>> You can use the substText which is passed to Matcher.appendReplacement 
>>> [1], you can see how to use that in the Javadoc. You can use $0 through $9 
>>> to be the matched groups.
>>>
>>> slide
>>>
>>> 1 - http://docs.oracle.com/javase/6/docs/api/java/util/
>>> regex/Matcher.html#appendReplacement(java.lang.StringBuffer, 
>>> java.lang.String)
>>>
>>>
>>> On Tue, Jan 14, 2014 at 6:47 PM, devanand  wrote:
>>>
 Hi,

 I have this value configured to send out email, Under editable email 
 configuration section of the JOB. 


 ${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?
 \\))",showTruncatedLines=false}

 As i result of this LINE i am getting this value as part of my Email. 

 *[java] Environment: ABC Total(Pass:0 Fail:1 Incomplete:0 Delayed:0 
 Manual Verification:0) *

  
 *But i don't want [java] to be printed as part of my email, How can i 
 avoid this ?? I am looking to resolve this issue. *

 *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-use...@googlegroups.com.

 For more options, visit https://groups.google.com/groups/opt_out.

>>>
>>>
>>>
>>> -- 
>>> Website: http://earl-of-code.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-use...@googlegroups.com .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> -- 
> Website: http://earl-of-code.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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Looking for solution on Jenkins Email Plugin feature

2014-01-15 Thread Slide
The BUILD_LOG_REGEX token has a substText parameter, you specify the
replacement you want to replace the matched regex with. You can use the
same syntax for the replacement string as is supported by appendReplacement
of the Matcher object, e.g., (this does not solve your issue, you'll have
to determine the regex and replacement for you).

${BUILD_LOG_REGEX,regex="Something(.*)",substText="$1"}

slide


On Wed, Jan 15, 2014 at 10:24 AM, devanand  wrote:

> Hi,
>
> I am using Email Ext Plugin here... I don't see a way to use JAVA API as a
> part of the EMAIL feature for Jenkins.
>
>
> https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin#Email-extplugin-Scriptcontent
>
> Can anyone guide me what syntax i need to write in order to remove [JAVA]
> from the actual email  ?
>
> Thanks.
>
>
>
> On Tuesday, January 14, 2014 6:23:23 PM UTC-8, slide wrote:
>
>> You can use the substText which is passed to Matcher.appendReplacement
>> [1], you can see how to use that in the Javadoc. You can use $0 through $9
>> to be the matched groups.
>>
>> slide
>>
>> 1 - http://docs.oracle.com/javase/6/docs/api/java/util/
>> regex/Matcher.html#appendReplacement(java.lang.StringBuffer,
>> java.lang.String)
>>
>>
>> On Tue, Jan 14, 2014 at 6:47 PM, devanand  wrote:
>>
>>> Hi,
>>>
>>> I have this value configured to send out email, Under editable email
>>> configuration section of the JOB.
>>>
>>>
>>> ${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?
>>> \\))",showTruncatedLines=false}
>>>
>>> As i result of this LINE i am getting this value as part of my Email.
>>>
>>> *[java] Environment: ABC Total(Pass:0 Fail:1 Incomplete:0 Delayed:0
>>> Manual Verification:0) *
>>>
>>>
>>> *But i don't want [java] to be printed as part of my email, How can i
>>> avoid this ?? I am looking to resolve this issue. *
>>>
>>> *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-use...@googlegroups.com.
>>>
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>
>>
>> --
>> Website: http://earl-of-code.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.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Website: http://earl-of-code.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.
For more options, visit https://groups.google.com/groups/opt_out.


Is it possible to see the next scheduled build for a job? (ie, when using the "H" / hash crontab option)

2014-01-15 Thread Paul Molodowitch
I'm a big fan of using the hash in scheduled builds - ie,

H H * * *

to run a job once a day.

The only downside is that it can be hard to know when a job will next build 
- is there any way to see that information?

Thanks,
 Paul

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Looking for solution on Jenkins Email Plugin feature

2014-01-15 Thread devanand
Hi,

I am using Email Ext Plugin here... I don't see a way to use JAVA API as a 
part of the EMAIL feature for Jenkins.

https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin#Email-extplugin-Scriptcontent

Can anyone guide me what syntax i need to write in order to remove [JAVA] 
from the actual email  ?

Thanks.



On Tuesday, January 14, 2014 6:23:23 PM UTC-8, slide wrote:
>
> You can use the substText which is passed to Matcher.appendReplacement 
> [1], you can see how to use that in the Javadoc. You can use $0 through $9 
> to be the matched groups.
>
> slide
>
> 1 - 
> http://docs.oracle.com/javase/6/docs/api/java/util/regex/Matcher.html#appendReplacement(java.lang.StringBuffer,
>  
> java.lang.String)
>
>
> On Tue, Jan 14, 2014 at 6:47 PM, devanand  >wrote:
>
>> Hi,
>>
>> I have this value configured to send out email, Under editable email 
>> configuration section of the JOB. 
>>
>>
>>
>> ${BUILD_LOG_REGEX,regex="(?=.*?Environment)(?=.*?Total)(E.*?\\))",showTruncatedLines=false}
>>
>> As i result of this LINE i am getting this value as part of my Email. 
>>
>> *[java] Environment: ABC Total(Pass:0 Fail:1 Incomplete:0 Delayed:0 
>> Manual Verification:0) *
>>
>>  
>> *But i don't want [java] to be printed as part of my email, How can i 
>> avoid this ?? I am looking to resolve this issue. *
>>
>> *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-use...@googlegroups.com .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> -- 
> Website: http://earl-of-code.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.
For more options, visit https://groups.google.com/groups/opt_out.


application blocked by security setting when running a slave

2014-01-15 Thread Victoria Wei Lei
I run a slave by Java web start,  it returned error: "application blocked 
by security setting". see the screen shot. Please advise what's the cause.

Thanks
Victoria 

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.
<>

upgrading from Jenkins ver. 1.535 to 1.547 : wait for jenkins to restart after upgrade took over 4 hours, and did not complete.

2014-01-15 Thread Warren Postma
I attempted to upgrade from within jenkins from 1.535 to 1.547.This is 
on a Windows 7 64 bit computer. 

It upgraded, and tried to restart, it sat on the "jenkins is getting ready 
to work" screen for four hours.  

I decided to kill it after 4 hours went by.  I then could not get the 
service to start.  I deleted the windows service, using "jenkins delete" 
and "jenkins install" to re-register windows service. Now it works.

Has anybody else seen this? Is this a windows quirk with the JVM, or the 
jenkins.exe or something odd about Windows NT-service-contexts hosting 
jetty/tomcat?

Warren





-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Using job generator with parameter factories

2014-01-15 Thread syl20bnr
HI Balázs,

Parameters file are not supported yet in a post-build action but it should 
be doable, can you fill a JIRA ticket here [1] ?
Can you fill a second one for the bug with parameters file when 
Parameterized Build Trigger is used as a build step ?

Thank you,
syl20bnr

[1] 
https://issues.jenkins-ci.org/secure/IssueNavigator.jspa?mode=hide&reset=true&jqlQuery=project+%3D+JENKINS+AND+status+in+%28Open%2C+%22In+Progress%22%2C+Reopened%29+AND+component+%3D+%27jobgenerator%27

Le lundi 13 janvier 2014 11:31:17 UTC-5, adamisb a écrit :
>
> Hi everyone, 
>
> I would like to use job generator plugin to dinamically build jobs 
> depending 
> on parameter files and do not really manage to pass generator parameters 
> between jobs. 
>
> When I use "Post-build Actions" > "Trigger parameterized build on other 
> project" and "Predifined Generator parameters" the jobs are generated 
> correctly, but there I can not use parameter factories. Or is there a way 
> to 
> use parameter factories in post-build actions? 
>
> When I use a normal "build" step > "Trigger/call builds on other projects" 
> and "Predefined Generator parametes" then the parameters are not resolved 
> correctly. 
> For example if I use "LANGUAGE" as generator parameter and set it to EN 
> the 
> generated job will be "${LANGUAGE}_C" using "${LANGUAGE}_C" as "Generated 
> Job Name". In the previous case it would be named "EN_C" as expected. 
>
> I also tried using parameter factories in a normal build step. Using the 
> "Counter Generator Parameter Factory" works fine. I could generate a lot 
> of 
> jobs with an increasing number in their names. 
> But I would like to use "File Generator Parameter Factory" which did not 
> work for me. Result was one "${LANGUAGE}_C" style job. 
>
> Does someone has some experience with this plugin? 
> Is it possible to use a normal build step to call a job with generator 
> parameters? What is the correct way to use generator parameter factories? 
>
> The example on the jenkins wiki 
> ( https://wiki.jenkins-ci.org/display/JENKINS/Job+Generator+Plugin ) 
> states a "publisher Trigger a parameterized build" should be used. What 
> does 
> that mean? 
>
> Is this a bug or am I doing / understanding something wrong? 
>
> Best regards, 
> Balázs 
>
>
>
> -- 
> View this message in context: 
> http://jenkins-ci.361315.n4.nabble.com/Using-job-generator-with-parameter-factories-tp4687362.html
>  
> Sent from the Jenkins users mailing list archive at Nabble.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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: git plugin: get a list of changed file names?

2014-01-15 Thread Waky
You could have also looked at the git reflog to get the previous SHA-1.

Cheers,
Kalle

keskiviikko, 15. tammikuuta 2014 17.49.46 UTC+2 saml kirjoitti:
>
> ended up using REST API: https://gist.github.com/saml/8437653
>
>
> On Tue, Jan 14, 2014 at 5:37 PM, Mark Waite 
> > wrote:
>
>> If you're willing to call the REST API, I think the SHA1 of each of the 
>> jobs is available from the REST API.
>>
>> For my job "git-client-plugin", I queried with:
>>
>> http://localhost:8080/job/git-client-plugin/api/xml?depth=1
>>
>> and saw that each build included the SHA1 for that build.
>>
>> You could then use those SHA1 values for the diff calculation.
>>
>> Mark Waite
>>
>>
>> On Tue, Jan 14, 2014 at 2:47 PM, Sam Lee > >wrote:
>>
>>> Hello,
>>>
>>> I have a build set up to use git plugin.
>>> The build is paramatized to take any git revision (commit, branch, 
>>> ..etc).
>>>
>>> During the build, I need to get a list of changed files since last build.
>>> I could do this if the current build is on the same branch of git by 
>>> looking at GIT_COMMIT and GIT_PREVIOUS_COMMIT environment variables in my 
>>> script.
>>>
>>> But, if the current build is not on the same branch, GIT_PREVIOUS_COMMIT 
>>> isn't set.
>>> So, I can't do  git diff --name-only $GIT_PREVIOUS_COMMIT $GIT_COMMIT 
>>>  to get the list of changed files  if I'm building a new branch.
>>>
>>> Is it better to use jenkins REST API to get previous build info?
>>>
>>> *tl;tr  How do I get a list of changed files since the last build (from 
>>> a git project)?*
>>>
>>> -- 
>>> 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-use...@googlegroups.com .
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>
>>
>> -- 
>> Thanks!
>> Mark Waite
>>  
>> -- 
>> 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-use...@googlegroups.com .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: git plugin: get a list of changed file names?

2014-01-15 Thread Sam Lee
ended up using REST API: https://gist.github.com/saml/8437653


On Tue, Jan 14, 2014 at 5:37 PM, Mark Waite wrote:

> If you're willing to call the REST API, I think the SHA1 of each of the
> jobs is available from the REST API.
>
> For my job "git-client-plugin", I queried with:
>
> http://localhost:8080/job/git-client-plugin/api/xml?depth=1
>
> and saw that each build included the SHA1 for that build.
>
> You could then use those SHA1 values for the diff calculation.
>
> Mark Waite
>
>
> On Tue, Jan 14, 2014 at 2:47 PM, Sam Lee  wrote:
>
>> Hello,
>>
>> I have a build set up to use git plugin.
>> The build is paramatized to take any git revision (commit, branch, ..etc).
>>
>> During the build, I need to get a list of changed files since last build.
>> I could do this if the current build is on the same branch of git by
>> looking at GIT_COMMIT and GIT_PREVIOUS_COMMIT environment variables in my
>> script.
>>
>> But, if the current build is not on the same branch, GIT_PREVIOUS_COMMIT
>> isn't set.
>> So, I can't do  git diff --name-only $GIT_PREVIOUS_COMMIT $GIT_COMMIT  to
>> get the list of changed files  if I'm building a new branch.
>>
>> Is it better to use jenkins REST API to get previous build info?
>>
>> *tl;tr  How do I get a list of changed files since the last build (from a
>> git project)?*
>>
>> --
>> 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.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> --
> Thanks!
> Mark Waite
>
> --
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: email notification recipients list not saved.

2014-01-15 Thread rop
I am experiencing the same problem.
When I go into a Jenkins-job, click Configure, then Save the job, the 
email-recipients field goes empty.

We have 2 different Linux-servers with exactly the same jenkins-version: 
1.532.1

HOWEVER: this error happens only on 1 of the servers, while the other works 
correct.

So, apparently, it is not a general problem with the war-version, but 
happens under some specific circumstances only.

Anyone here familiar with the Jenkins source-code,
could you help point me to the code that executes when the Save-button is 
clicked?

Then I can look it over and try figure out what the issue might be...



Den fredagen den 3:e januari 2014 kl. 17:41:53 UTC+1 skrev Alessandro 
Ferrucci:
>
>
> Hello,
> I'm running Jenkins 1.544 in standalone mode.  I have a maven2/3 job 
> configured and want to set email notifications under job configuration -> 
> Build Settings ->Email Notification.
>
> If I attempt at setting an email address in the recipient list and 
> clicking Apply, then Save.  The email recipient list isn't saved.  If I go 
> back to configuration screen, the Email Notification checkbox is still 
> checked, but the recipient list is empty.
>
> Jenkins doesn't log any errors/warnings in the log.
>
> If I open the job's config.xml, I can see that the email settings are 
> correct for the checkboxes I have checked, but it has no recipient list XML 
> element.
>
> The following is the Mailer snippet I see in the job's config.xml:
>
>   
> 
>   true
>   false
>   true
> 
>   
>
>
> Does anyone have any hints/suggestions as to what I can try in order to 
> try to figure out what the issue is?
>
> Thanks!
> Alessandro Ferrucci
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Build triggers not working after upgrading to 1.546 and 1.547

2014-01-15 Thread Sarah Renick
This is due to UpDownStreamNumberSychronizedNotify not working as of 
1.5.32.1  JENKINS-21154 

On Monday, January 13, 2014 4:03:11 PM UTC-5, Sarah Renick wrote:
>
> This is my first question to the group so please bear with me.
> We upgraded from Jenkins 1.52x (can't remember exactly) to 1.546 and also 
> upgraded all our plugins.  We have 4 build jobs.  CommitBuild1 triggers 
> CommitBuild2 which triggers CommitBuild3 which triggers CommitBuild4.  All 
> were working before the upgrade.  After the upgrade the build tiggers are 
> not working.  The first job completes and the last line in the console 
> output is: 
> 15:53:48 CommitBuild2 #2703 is already in the queue
> But, the queue shows no jobs and CommitBuild2 is never run.  
> Has anyone experienced this with the lastest releases?
> 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.
For more options, visit https://groups.google.com/groups/opt_out.


jenkins warnings plugin pclint linux

2014-01-15 Thread Stijn
Hi,

I'm using pclint together with jenkins warnings plugin on linux.  However, 
pclint is a windows executable executed by wine.  Therefore, the output of 
pclint is something like 
Z:\media\Data\workspace\pr_7315\app\common\logging\src\logger.c(91): Note 
956: Non const, non volatile static or external variable 
'log_parse_succeeded'

Z: doesn't exist on a linux system, so Z: should be the \ path instead.

The warnings plugin gives following error:
01 Copying the source file 'Z:
/media/Data/workspace/pr_7315/app/drivers/io/src/io_rm_7358.c' f
rom the workspace to the build folder '/var/lib/jenkins/jobs/pr_7315/builds/
2014-01-15_14-50-21/workspace-files/aa97a26a.tmp' o
n the Jenkins master failed.
02 Is the file 'Z:
/media/Data/workspace/pr_7315/app/drivers/io/src/io_rm_7358.c' a 
valid filename?
03 If you are building on a slave: please check *if *
the file is accessible under '$JENKINS_HOME/[job-name]
/Z:/media/Data/workspace/pr_7315/app/drivers/io/src/io_rm_7358.c'
04 If you are building on the master: please check *if *
the file is accessible under '$JENKINS_HOME/[job-name]
/workspace/Z:/media/Data/workspace/pr_7315/app/drivers/io/src/io_rm_7358.c'
05 
java.io.FileNotFoundException: 
Z:/media/Data/workspace/pr_7315/app/drivers/io/src/io_rm_7358.c 
(No such file or directory)
06   at java.io.FileInputStream.open(Native Method)
07   at java.io.FileInputStream.(FileInputStream.java:137)
08   at hudson.FilePath$37.invoke(FilePath.java:1814)
09   at hudson.FilePath$37.invoke(FilePath.java:1809)
10   at hudson.FilePath.act(FilePath.java:914)
11   at hudson.FilePath.act(FilePath.java:887)
12   at hudson.FilePath.copyTo(FilePath.java:1809)
13   
at 
hudson.plugins.analysis.core.HealthAwareRecorder.copyFilesWithAnnotationsToBuildFolder
(HealthAwareRecorder.java:398)
14   at hudson.plugins.warnings.WarningsPublisher.perform(
WarningsPublisher.java:334)
15   at hudson.plugins.analysis.core.HealthAwareRecorder.perform(
HealthAwareRecorder.java:333)
16   at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
17   at hudson.model.AbstractBuild$AbstractBuildExecution.perform(
AbstractBuild.java:785)
18   
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(
AbstractBuild.java:757)
19   at hudson.model.Build$BuildExecution.post2(Build.java:183)
20   at hudson.model.AbstractBuild$AbstractBuildExecution.post(
AbstractBuild.java:706)
21   at hudson.model.Run.execute(Run.java:1703)
22   at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
23   at hudson.model.ResourceController.execute(ResourceController.java:88)
24   at hudson.model.Executor.run(Executor.java:231)


Any idea how to solve this?

KR,
Stijn.

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Variable filename for EnvInject

2014-01-15 Thread Nick Brown
Is there any way of passing the 'Properties File Path' value a resolvable 
variable? 
I was trying something like ${WORKSPACE}\EnvFile.txt but it seems it has to 
be a hard coded absolute path. 
This plugin allows for a lot of freedom to parameterise your jobs with 
variables defined before even the SCM kicks in but to use a file it 
seems disappointingly you cannot use parameters or variables.

Anybody have a clever way round this?

Cheers

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: A way to get rid of useless local workspace?

2014-01-15 Thread Maciej Jaros

kgiloo (2014-01-15 09:42):


probably my description lacked precision:
I should have titled "A way to get rid of useless checkout of 
repository into my local workspace".


I do not use any special slave configuration to trigger my builds on 
slaves, it is all driven by Ant.

In other words, checkout of repository is also performed by Ant on slave.

I need the "poll SCM" to kick off the build process, for nothing else, 
i.e checkout of repository in workspace has no sense on my master.


You don't have to poll SCM. You can triggger builds from the repository 
using e.g. post-commit hooks in SVN. Just enable remote builds.


Regards,
Nux

--
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: A way to get rid of useless local workspace?

2014-01-15 Thread Maciej Jaros

kgiloo (2014-01-15 09:42):


probably my description lacked precision:
I should have titled "A way to get rid of useless checkout of 
repository into my local workspace".


I do not use any special slave configuration to trigger my builds on 
slaves, it is all driven by Ant.

In other words, checkout of repository is also performed by Ant on slave.

I need the "poll SCM" to kick off the build process, for nothing else, 
i.e checkout of repository in workspace has no sense on my master.


You don't have poll SCM. You can triggger builds from the repository 
using e.g. post-commit hooks in SVN. Just enable remote builds.


Regards,
Nux

--
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Page load slow at 1st time but fast in 2nd time

2014-01-15 Thread Vincent Latombe
There are two directions :
- increase the heap, that will allow Jenkins to keep more jobs/builds in
memory (but this is not guaranteed)
- try to remove some columns that may trigger useless load of all builds
for a job

Vincent


2014/1/15 dennys 

> I have hundred jobs and use view to separate them. Each view has 50~100
> jobs.
> When I login one view, it takes about 10 seconds to show the page.
> But I I click refreash, it only takes less than 1 second.
>
> And if I don't use Jenkins for a while, when I click it again, it takes 10
> seconds again.
> I guess the reason is Jenkins need time to read every job and it's build
> status.
>
> And since 2nd time is fast, I guessJenkins has a cache mechanism.
> Is it possible to keep the cache in memory then we can have good user
> response?
>
>
>
> --
> View this message in context:
> http://jenkins-ci.361315.n4.nabble.com/Page-load-slow-at-1st-time-but-fast-in-2nd-time-tp4687583.html
> Sent from the Jenkins users mailing list archive at Nabble.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.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Customizing behavior of "Wipe out current workspace"

2014-01-15 Thread Vincent Latombe
Hi,

I guess it is possible but requires implementation of a BuildWrapper. Then
in the teardown part, you implement your custom logic and it can be
executed whether the build is successful or failed.

As for customizing the wipe out workspace action, it can be done only
through SCM implementations, which is orthogonal to your problem, so
probably not the way you should do it.

Cheers,

Vincent


2014/1/15 Craig Rodrigues 

> Hi,
>
> That is one possibility, but I don't want to modify my build steps
> to accomodate this special case.  Also, the way that
> my build is structured, when one of the steps fail,
> the build stops right away and no more steps are executed.
> In that failure case, it is possible that certain binaries have
> the 'schg' flag set, and it is necessary to wipe out the workspace.
>
> --
> Craig
>
>
>
> On Wed, Jan 15, 2014 at 12:07 AM, Richard Bywater wrote:
>
>> Could you stick a "run a shell command" build item in at the end of the
>> job to to the chflags command which would mean that when wipe out current
>> workspace does its thing it would work?
>>
>> Richard.
>>
>>
>> On Wed, Jan 15, 2014 at 11:31 AM, Craig Rodrigues wrote:
>>
>>> Hi,
>>>
>>> Is it possible to customize the behavior of "wipe out current
>>> worksptace"?
>>>
>>>
>>> I have a build under FreeBSD which sets the
>>> "noschg" flag on certain binaries,
>>> so even as root you cannot do "rm -fr" on the workspace
>>> to delete things unless you do "chflags -R schg *" on the workspace.
>>>
>>>
>>> --
>>> 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Page load slow at 1st time but fast in 2nd time

2014-01-15 Thread dennys
I have hundred jobs and use view to separate them. Each view has 50~100 jobs.
When I login one view, it takes about 10 seconds to show the page.
But I I click refreash, it only takes less than 1 second.

And if I don't use Jenkins for a while, when I click it again, it takes 10
seconds again.
I guess the reason is Jenkins need time to read every job and it's build
status.

And since 2nd time is fast, I guessJenkins has a cache mechanism. 
Is it possible to keep the cache in memory then we can have good user
response?



--
View this message in context: 
http://jenkins-ci.361315.n4.nabble.com/Page-load-slow-at-1st-time-but-fast-in-2nd-time-tp4687583.html
Sent from the Jenkins users mailing list archive at Nabble.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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: A way to get rid of useless local workspace?

2014-01-15 Thread kgiloo

probably my description lacked precision: 
I should have titled "A way to get rid of useless checkout of repository 
into my local workspace".

I do not use any special slave configuration to trigger my builds on 
slaves, it is all driven by Ant. 
In other words, checkout of repository is also performed by Ant on slave. 

I need the "poll SCM" to kick off the build process, for nothing else, i.e 
checkout of repository in workspace has no sense on my master. 

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Customizing behavior of "Wipe out current workspace"

2014-01-15 Thread Craig Rodrigues
Hi,

That is one possibility, but I don't want to modify my build steps
to accomodate this special case.  Also, the way that
my build is structured, when one of the steps fail,
the build stops right away and no more steps are executed.
In that failure case, it is possible that certain binaries have
the 'schg' flag set, and it is necessary to wipe out the workspace.

--
Craig


On Wed, Jan 15, 2014 at 12:07 AM, Richard Bywater  wrote:

> Could you stick a "run a shell command" build item in at the end of the
> job to to the chflags command which would mean that when wipe out current
> workspace does its thing it would work?
>
> Richard.
>
>
> On Wed, Jan 15, 2014 at 11:31 AM, Craig Rodrigues wrote:
>
>> Hi,
>>
>> Is it possible to customize the behavior of "wipe out current worksptace"?
>>
>>
>> I have a build under FreeBSD which sets the
>> "noschg" flag on certain binaries,
>> so even as root you cannot do "rm -fr" on the workspace
>> to delete things unless you do "chflags -R schg *" on the workspace.
>>
>>
>> --
>> 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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Customizing behavior of "Wipe out current workspace"

2014-01-15 Thread Richard Bywater
Could you stick a "run a shell command" build item in at the end of the job
to to the chflags command which would mean that when wipe out current
workspace does its thing it would work?

Richard.


On Wed, Jan 15, 2014 at 11:31 AM, Craig Rodrigues wrote:

> Hi,
>
> Is it possible to customize the behavior of "wipe out current worksptace"?
>
>
> I have a build under FreeBSD which sets the
> "noschg" flag on certain binaries,
> so even as root you cannot do "rm -fr" on the workspace
> to delete things unless you do "chflags -R schg *" on the workspace.
>
>
> --
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.