eofexception on slave termination

2016-03-19 Thread Ivo
Hi,

I'm creating a cloud plugin and keep running into the following stacktrace 
on slave disconnect/termination:

WARNING: Computer.threadPoolForRemoting [#8] for 18392a20986e8 terminated
java.io.EOFException
at org.jenkinsci.remoting.nio.NioChannelHub$3.run(NioChannelHub.java
:613)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.
java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at hudson.remoting.SingleLaneExecutorService$1.run(
SingleLaneExecutorService.java:112)
at jenkins.util.ContextResettingExecutorService$1.run(
ContextResettingExecutorService.java:28)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.
java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(
ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(
ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

I can not figure out why this is happening. I'm 
calling toComputer().disconnect(null) in my _terminate method. Is there 
anything else I need to explicitly close/disconnect? The slave is 
automatically connected through jnlp.

Hopefully someone is able to help me out with this. I can provide 
additional code details if necessary.

Regards,
Ivo

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/72074cef-aa7d-4652-a3fe-75887e40c2a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: Special measures for running Windows 10 slaves via DCOM?

2016-03-19 Thread David Aldrich
Hi Slide

Our Jenkins master is behind a reverse proxy so I think I need to specify the “
Tunnel connection through” parameter of JNLP.  I can’t find a value that works.

Do you have to specify this parameter in your environment?

Best regards

David


From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Slide
Sent: 15 March 2016 16:24
To: jenkinsci-users@googlegroups.com
Subject: Re: Special measures for running Windows 10 slaves via DCOM?

Here you go: 
https://wiki.jenkins-ci.org/display/JENKINS/Distributed+builds#Distributedbuilds-LaunchslaveagentviaJavaWebStart

On Tue, Mar 15, 2016 at 9:20 AM David Aldrich 
mailto:david.aldr...@emea.nec.com>> wrote:
Yes, we have also experienced lots of pain from that route and I would be only 
too pleased to drop it!

Please can you give me a pointer to the JNLP method?

David

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com]
 On Behalf Of Slide
Sent: 15 March 2016 16:18
To: jenkinsci-users@googlegroups.com
Subject: Re: Special measures for running Windows 10 slaves via DCOM?

Just as an FYI, I don't think that the DCOM slaves stuff has received much love 
in recent years. I would recommend using the JNLP method for setting up slaves 
on Windows. The DCOM method provided me with nothing but pain and anguish every 
time I tried to use it.

On Tue, Mar 15, 2016 at 9:03 AM David Aldrich 
mailto:david.aldr...@emea.nec.com>> wrote:
Hi

Jenkins wiki page:

https://wiki.jenkins-ci.org/display/JENKINS/Windows+slaves+fail+to+start+via+DCOM

describes how to fix ‘Windows slaves fail to start via DCOM’ and really just 
refers to Windows 7 and Windows 2008 Jenkins slaves.

Are the same fixes applicable to Windows 10 slaves?

Best regards

David

--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/41302A7145AC054FA7A96CFD03835A0A0BAAEB99%40EX10MBX02.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVc8cWRZ0wONnr553DP3dUa9YRQoMJOcbLQbsue8ddz1Pg%40mail.gmail.com.

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

Click 
here
 to report this email as spam.
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/41302A7145AC054FA7A96CFD03835A0A0BAAEBF0%40EX10MBX02.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVeEKuSDnKJjn4Y7MPSSfvwePLso%2BoJE58JU6zfhmgufnQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com

Re: [workflow] Git step to check out a commit instead of a branch

2016-03-19 Thread Simone Vratogna
I did, but to me it doesn't work, it checks out anyway the next branch... :(

On Fri, Mar 18, 2016 at 8:58 AM, Baptiste Mathus  wrote:

> Did you try using the generic SCM way as proposed by Jesse?
> Le 17 mars 2016 4:51 PM, "Simone Vratogna"  a écrit :
>
>> Hello, I'm interested as well. Did you find any solution?
>>
>> On Wednesday, March 25, 2015 at 3:26:37 PM UTC+1, Lóránt Pintér wrote:
>>>
>>> Hi,
>>>
>>> Is it possible to check out a particular commit hash, instead of a
>>> branch with the git workflow step?
>>>
>>> Thanks,
>>> Lorant
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to jenkinsci-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/ff3a7df7-73e4-4ad0-923b-67cc53917664%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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/M3tDkHYFfWo/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS5GJLNw5k_G1D1dsRhwgz17msLfJP08tadFfnkGdDV1iQ%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAN37iofovhF6%3DTw1D4DvfeQmGQsuJxy3uCW5gMYE%2B5oq6UYurw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Best Practices with LTS Updates

2016-03-19 Thread Indra Gunawan (ingunawa)
Then don't do yum, install the Jenkins as war on Tomcat, Jetty or the embedded 
Jetty that comes with Jenkins.

From: 
mailto:jenkinsci-users@googlegroups.com>> on 
behalf of Ashish Yadav 
mailto:ashish.ya...@firemon.com>>
Reply-To: 
"jenkinsci-users@googlegroups.com" 
mailto:jenkinsci-users@googlegroups.com>>
Date: Thursday, March 17, 2016 at 10:21 AM
To: "jenkinsci-users@googlegroups.com" 
mailto:jenkinsci-users@googlegroups.com>>
Subject: Re: Best Practices with LTS Updates

I too am running jenkins v1.609.3.

However, I am concerned about upgrading to v1.642.2 due to the following which 
was 'introduced' in v1.625.3.
https://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2015-12-09

How can I tell if this will impact me? How can I tell if this will be an issue 
if I upgrade to v1.625.3?

I am using the following plugins:

*   Maven Integration Plugin v2.7.1
*   Javadoc Plugin v1.1
*   HTML Publisher Plugin v1.3

Is there a way to upgrade to a specific version? If I do 'yum upgrade jenkins', 
I can only upgrade to v1.625.3


From: Brian Ray mailto:be_...@sbcglobal.net>>
Reply-To: 
"jenkinsci-users@googlegroups.com" 
mailto:jenkinsci-users@googlegroups.com>>
Date: Thursday, March 17, 2016 at 11:01 AM
To: Jenkins Users 
mailto:jenkinsci-users@googlegroups.com>>
Subject: Re: Best Practices with LTS Updates

+1 to what Chris said.

Two more cents worth of advice: When I upgrade one of our Jenkins masters (on 
LTS) I first look at the changelogs to have some idea of the delta-- potential 
gotchas, new features to evangelize, etc. Aside from critical security releases 
I typically wait a day or two after the LTS release is available in the 
unlikely event that the LTS release is not S(table). That's never been the 
case, but my bias is very conservative for this particular Jenkins master.

On Wednesday, March 16, 2016 at 5:51:42 PM UTC-7, Christopher Orr wrote:
On 14/03/16 19:36, Mark Bidewell wrote:
> I am managing the Jenkins Server for my company.  Recently, we moved
> from 1.609.3 to 1.625.3.  I noticed however that the Required Core
> Dependencies for Pipe line skipped 1.625.x and went from 1.609.1 to 1.642.1.
>
> What are the best practices for selecting LTS versions to update?  Would
> an upgrade from say 1.609.3 to 1.642.2 be safe?

You're already on LTS, so there aren't many more "best practices", other
than update regularly :)

But there should generally be no problem with upgrading between releases
that are relatively close like those two are.

Regards,
Chris

--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b62523a0-5e08-477d-baac-498a3722%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/D3104FD1.1DFE1%25ashish.yadav%40firemon.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/D31038A6.4BD60%25ingunawa%40cisco.com.
For more options, visit https://groups.google.com/d/optout.


Re: java.lang.IllegalStateException: Invalid object ID

2016-03-19 Thread oliver . kuster
Also started happening after upgrade.
Java: Java Openjdk 7 -> Oracle Java 8u74
Jenkins: 1.626 (I don't remember correctly) -> 1.652

OS: Ubuntu 14.04.4 LTS

Happened on 'Invoke Sonar Standalone Analysis' from the SonarQube Plugin.

On Friday, October 9, 2015 at 6:06:11 PM UTC-3, Steve K wrote:
>
>
> Hello,
>
> Recently, I've been seeing a "java.lang.IllegalStateException: Invalid object 
> ID" error at the end of one of my builds.
> I think the error occurs while the NUnit plugin is parsing the *.xml
>
> Others have seen this error and there is a problem ticket for it (
> https://issues.jenkins-ci.org/browse/JENKINS-23271 );
> The ticket has not been resolved and none of the examples associated with the 
> problem ticket reference NUnit. 
>
> Here is a part of my console output that shows the stack trace:
>
> Recording NUnit tests resultsERROR: Publisher 
> hudson.plugins.nunit.NUnitPublisher aborted due to 
> exceptionjava.lang.IllegalStateException 
> :
>  Invalid object ID 51 iota=196  at 
> hudson.remoting.ExportTable.diagnoseInvalidId(ExportTable.java:348) 
> 
>  at hudson.remoting.ExportTable.get(ExportTable.java:324) 
> 
>  at hudson.remoting.Channel.getExportedObject(Channel.java:604) 
> 
>  at 
> hudson.remoting.MultiClassLoaderSerializer$Input.readClassLoader(MultiClassLoaderSerializer.java:95)
>  
> 
>  at 
> hudson.remoting.MultiClassLoaderSerializer$Input.resolveClass(MultiClassLoaderSerializer.java:112)
>  
> 
>   at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)   at 
> java.io.ObjectInputStream.readClassDesc(Unknown Source)  at 
> java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at 
> java.io.ObjectInputStream.readObject0(Unknown Source)at 
> java.io.ObjectInputStream.readObject(Unknown Source) at 
> hudson.remoting.UserRequest.deserialize(UserRequest.java:185)at 
> hudson.remoting.UserResponse.retrieve(UserRequest.java:218)  at 
> hudson.remoting.Channel.call(Channel.java:752)   at 
> hudson.FilePath.act(FilePath.java:969)   at 
> hudson.FilePath.act(FilePath.java:958)   at 
> hudson.plugins.nunit.NUnitPublisher.getTestResult(NUnitPublisher.java:226)   
> at 
> hudson.plugins.nunit.NUnitPublisher.recordTestResult(NUnitPublisher.java:189) 
>at 
> hudson.plugins.nunit.NUnitPublisher.perform(NUnitPublisher.java:152) at 
> hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)at 
> hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
> at 
> hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
>at hudson.model.Build$BuildExecution.post2(Build.java:183)  at 
> hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
>at hudson.model.Run.execute(Run.java:1770)  at 
> hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)  at 
> hudson.model.ResourceController.execute(ResourceController.java:89)  at 
> hudson.model.Executor.run(Executor.java:240)Caused by: java.lang.Exception: 
> Object was recently deallocated#51 (ref.0) : 
> [hudson.remoting.RemoteClassLoader$IClassLoader]  Created at Thu Oct 08 
> 13:04:17 EDT 2015
> 
>
> I'm running Jenkins 1.580.1 
> NUnit plugin version 0.17
>
> Does anyone have a solution or a suggestion for dealing with this problem?
>
> Thanks in advance.
>
> Steve K.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/10f757e6-069d-4ad2-8764-0adc6a1545e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Best Practices with LTS Updates

2016-03-19 Thread Ashish Yadav
I too am running jenkins v1.609.3.

However, I am concerned about upgrading to v1.642.2 due to the following which 
was 'introduced' in v1.625.3.
https://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2015-12-09

How can I tell if this will impact me? How can I tell if this will be an issue 
if I upgrade to v1.625.3?

I am using the following plugins:

*   Maven Integration Plugin v2.7.1
*   Javadoc Plugin v1.1
*   HTML Publisher Plugin v1.3

Is there a way to upgrade to a specific version? If I do 'yum upgrade jenkins', 
I can only upgrade to v1.625.3


From: Brian Ray mailto:be_...@sbcglobal.net>>
Reply-To: 
"jenkinsci-users@googlegroups.com" 
mailto:jenkinsci-users@googlegroups.com>>
Date: Thursday, March 17, 2016 at 11:01 AM
To: Jenkins Users 
mailto:jenkinsci-users@googlegroups.com>>
Subject: Re: Best Practices with LTS Updates

+1 to what Chris said.

Two more cents worth of advice: When I upgrade one of our Jenkins masters (on 
LTS) I first look at the changelogs to have some idea of the delta-- potential 
gotchas, new features to evangelize, etc. Aside from critical security releases 
I typically wait a day or two after the LTS release is available in the 
unlikely event that the LTS release is not S(table). That's never been the 
case, but my bias is very conservative for this particular Jenkins master.

On Wednesday, March 16, 2016 at 5:51:42 PM UTC-7, Christopher Orr wrote:
On 14/03/16 19:36, Mark Bidewell wrote:
> I am managing the Jenkins Server for my company.  Recently, we moved
> from 1.609.3 to 1.625.3.  I noticed however that the Required Core
> Dependencies for Pipe line skipped 1.625.x and went from 1.609.1 to 1.642.1.
>
> What are the best practices for selecting LTS versions to update?  Would
> an upgrade from say 1.609.3 to 1.642.2 be safe?

You're already on LTS, so there aren't many more "best practices", other
than update regularly :)

But there should generally be no problem with upgrading between releases
that are relatively close like those two are.

Regards,
Chris

--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b62523a0-5e08-477d-baac-498a3722%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/D3104FD1.1DFE1%25ashish.yadav%40firemon.com.
For more options, visit https://groups.google.com/d/optout.


Change GitSCM repository from a plugin

2016-03-19 Thread Iñigo Telleria
Hi,

I'm developing a Jenkins plugin which copies a job (template-job) and 
changes some data. 

To do so, I've written this code in a plugin:

MavenModuleSet template = (MavenModuleSet) jenkins.getItem("template-job");
MavenModuleSet newJob = (MavenModuleSet) jenkins.copy((TopLevelItem) 
template, "new-job-name");

GitSCM gitScm = (GitSCM) newJob.getScm();
List repositories = gitScm.getRepositories();

if (repositories.size() != 1) {
 throw new IllegalStateException("Just one repository was expected and 
there are " + repositories.size());
}

RemoteConfig repository = repositories.get(0);
repository.removeURI(new URIish("${REPOSITORY_URL}"));
String newUrl = "http://domain.com/project.git";
repository.addURI(new URIish(url));

This code creates a new job based on template-job and it has a new name. 
However, I can't change its git's repository url.

Have I missed something? Can somebody give me a clue?

Iñigo


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/cb67d0da-3d96-478b-a024-d79445f48b7b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Removing build associated files on Linux from Windows Jenkins

2016-03-19 Thread Ioannis Moutsatsos
Good question! If we were using the intermediate files (on Linux) just for 
that build, we could certainly do what you are suggesting.
In our use patterns the intermediate results can be reused by several 
downstream jobs. As a result we don't want to delete them at the end of the 
first build that uses them.

Thank you for the feedback!

On Friday, March 18, 2016 at 3:41:51 AM UTC-4, Baptiste Mathus wrote:
>
> Must be missing something. Why can't you just:
> * upload files
> * process them
> * download resulting files
> * clean up everything
>
> In the same go?
>
> Cheers
> Le 14 mars 2016 6:09 PM, "Ioannis Moutsatsos"  > a écrit :
>
>> I have a job that uploads user data on a Linux server where it gets 
>> processed (ssh remote execution build step). Results (artifacts) are 
>> subsequently downloaded and archived on the windows Jenkins server.
>>
>> How can I delete the user data on the Linux server when  their associated 
>> Jenkins build is deleted?
>> Jenkins obviously deletes the archived artifacts, but I can't think of a 
>> good way to also trigger the cleanup of the remote data on Linux.
>>
>> Any help would be greatly appreciated. thanks
>> Ioannis
>>
>>
>> -- 
>> 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 .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/f4dc57e6-6045-4d92-b35c-ecb3ec0a5615%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/87f49451-6732-4ddd-837a-16c87dca25a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Included regions feature

2016-03-19 Thread Christopher Orr

On 15/03/16 16:24, Andy Billy wrote:

hi:

  where could I find the option button in jenkins web ui for
included regions feature of gradlescm plugin ?


There isn't a "Gradle SCM" nor a plugin with a similar name.

If you mean the Git SCM, the Git plugin has an "included regions" field, 
which you can find in a job's configuration page by clicking "Add" next 
to "Additional behaviours" and choosing "Polling ignores commits in 
certain paths".


Regards,
Chris

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/56EA0121.3030507%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Plugin to support Docker swarm as cloud provider?

2016-03-19 Thread Jason Swager
We use the Docker Plugin 
(https://wiki.jenkins-ci.org/display/JENKINS/Docker+Plugin) with Docker 
Swarm.  Since a Swarm Master presents itself just like a normal Docker 
host, Jenkins doesn't see the difference and and uses it exactly the same.

On Wednesday, March 16, 2016 at 12:07:16 PM UTC-7, Geoffroy Jabouley wrote:
>
> Hello
>
> are there any ongoing developments regarding a Jenkins plugins that would 
> add support for Docker Swarm as cloud provider?
>
> it would basically work the same way as Jenkins Mesos plugin, ie 
> dynamically provisioning  Jenkins Slaves running in docker container on a 
> Docker Swarm cluster.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f053bb6b-84a9-444a-a60f-3713e13c16bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Pipeline/Workflow node name as variable

2016-03-19 Thread Baptiste Mathus
Inline

Le 17 mars 2016 1:23 PM, "Frank Hask"  a écrit :
>
> Hi all, i am building pipeline on my project that uses 5 DB servers.
>
> So based on build variable i want to set node name. Like this..
>
> env.NODE = 'blabla'
>
>
> node('${NODE}') {
>   //some code
> }

Why don't you just do:
def nodeLabel = 'blabla'
node(nodeLabel) {
...
}

?

Here you seem to want to define an environment variable. Not a pipeline
(groovy) variable. Is this intended?

>
> but each time i get error - There are no nodes with the label ‘${NODE}’
>
> Thanks for help in advance...
>
> --
> You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/bf6fe502-84b4-401a-ae57-e003e8e37f01%40googlegroups.com
.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS7WOUuScVewS7hR6%2B9kWH_uY9ACuEUenKeGiffbDq3K9g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


How to do a simple post request using HTTP request plugin

2016-03-19 Thread steliosP



I am trying to do a post request using HTTP plugin. One basic question: 
where do you put the content you want to post?I cannot find any related 
field. Please have a look at the screenshot of the plugin provided 
parameters

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f208351c-d3b5-4856-90c0-ac9005c60672%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[jenkins squish integration] parse error in test cases string: unexpected escaped character

2016-03-19 Thread anks113

I am trying to run my squish test on slave machine (windows) using jenkins
from master machine (windows).

When i tried to run test case from squish IDE from slave machine it is
working fine. Same when I am trying to run from remote machine (master
jenkins machine) I am getting this error :

*>> Exception: parse error in test cases string: unexpected escaped
character*

Also in my console output I am *under squish configuration in slave I am
getting IP address of my master machine rather than slave machine* , where i
want to run the test case.

Please provide some help.




--
View this message in context: 
http://jenkins-ci.361315.n4.nabble.com/jenkins-squish-integration-parse-error-in-test-cases-string-unexpected-escaped-character-tp4799926.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/1458125003967-4799926.post%40n4.nabble.com.
For more options, visit https://groups.google.com/d/optout.


Re: Polling question

2016-03-19 Thread Baptiste Mathus
To add to Victor's answer, depending on the job/on your context, you can
also enable the fact that a new build is allowed even if another one for
the same job is already running.

My 2 cents

2016-03-18 19:19 GMT+01:00 Victor Martinez :

> Since you are polling for new changes every 15 minutes, then If there are
> new changes then it will trigger another build
>
> On Friday, 18 March 2016 17:06:26 UTC, Hector Magnanao wrote:
>>
>> In Jenkins,  if I have a polling schedule every 15 minutes on a job,
>> does Jenkins know not to run the job again if the same job is still running
>> after 15 minutes ?
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/c816b4bb-9c83-4d20-87fb-4c83df712494%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS509TCyGxJi4CzXruSSc3T8hDDpU5EogAfVnC8GaEvj9w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Scheduling question

2016-03-19 Thread Hector Magnanao
I have 3 jobs - A, B, and C.  I want to poll B but whenever B needs to run, 
it has to run A first before it can run itself.  After B finishes, then run 
C.  How can I setup this type of job schedule ?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/5e7d17ec-7411-43e1-ae73-171f4e89a456%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


java.lang.NullPointerException

2016-03-19 Thread cardio palma
Dear everybody, 
I'm facing the following issue: 
When I access jenkins login page (logged out), and when I logout too (same 
page), I get the following error:


java.lang.NullPointerException
 at java.util.TreeMap.put(TreeMap.java:556)
 at java.util.TreeSet.add(TreeSet.java:255)
 at jenkins.model.Jenkins.getUnprotectedRootActions(Jenkins.java:3876)
 at jenkins.model.Jenkins.getTarget(Jenkins.java:3852)
 at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:674)
 at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
 at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
 at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:290)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)
 at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
 at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:123)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)
 at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)
 at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.
java:84)
 at hudson.security.UnwrapSecurityExceptionFilter.doFilter(
UnwrapSecurityExceptionFilter.java:51)
 at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.
java:87)
 at jenkins.security.ExceptionTranslationFilter.doFilter(
ExceptionTranslationFilter.java:117)
 at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.
java:87)
 at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter
(AnonymousProcessingFilter.java:125)
 at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.
java:87)
 at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(
RememberMeProcessingFilter.java:135)
 at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.
java:87)
 at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(
AbstractProcessingFilter.java:271)
 at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.
java:87)
 at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java
:93)
 at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.
java:87)
 at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(
HttpSessionContextIntegrationFilter.java:249)
 at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(
HttpSessionContextIntegrationFilter2.java:67)
 at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.
java:87)
 at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:
76)
 at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)
 at org.kohsuke.stapler.compression.CompressionFilter.doFilter(
CompressionFilter.java:49)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)
 at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.
java:81)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)
 at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(
DiagnosticThreadNameFilter.java:30)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)
 at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:233)
 at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:191)
 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
AuthenticatorBase.java:558)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:127)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:102)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
298)
 at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
 at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
 at org.apache.jk.common.Chan

Re: Parameterized TRigger plugin not finding properties files when using Parameter factories

2016-03-19 Thread Elvis Presley
Should I open a bug?

On Friday, March 11, 2016 at 9:30:18 AM UTC-6, Elvis Presley wrote:
>
> Jenkins 1.643 on Windows Server 2012R2 x64
> Java 1.8.0_20 x86
> Parameterized Trigger plugin 2.30
>
> Hi,
>
> Job A uses *"For every property file, invoke one build"* parameter 
> factory to call downstream job B.
> Here is the file pattern I am using:
>
> d:\scripts\batch\salesconfig*.txt
>
> There are two files in that folder:
>
>
> *salesconfig124.txt*
>
> *salesconfig126.txt*
>
> Job B fails because job A is not setting the parameters it depends on, or 
> something similar. If I look at the parameters for a build of Job B, they 
> are empty.
>
> I have the option "*Action to perform when no files found"* set to *"Fail 
> the build step*" in Job A, but Job A does not fail, only Job B.
>
> I have also tried:
>
> Escaping backslashes in path (e.g. d:\\scripts\\batch\\salesconfig*.txt)
> Using different wildcards (e.g. salesconfig*.txt, salesconfig1??.txt)
> Using absolute filename (e.g.d:\\scripts\\batch\\salesconfig126.txt)
>
>
> The process works when I use *"Parameters from  properties file"* parameter 
> type instead of a parameter factory, and specify the full path to one of 
> the files, so I know the files are in the right format. I do not want to 
> add a parameter for each file I have,
>  since I will eventually have 15 or more files.I would prefer to use the 
> parameter factory if possible.
>
> Any ideas?
>
> Thanks,
> pimy
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0de29eaa-f5b7-467e-97fe-6624f3ed59e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Buildflow/workflow executes code block till next build step even after failure

2016-03-19 Thread Christopher Orr
Sorry, I don't have a good answer, but AFAIK the Build Flow plugin isn't 
really in development any more — you should be able to achieve what 
you're looking for with the Pipeline plugin:

https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Plugin

Regards,
Chris


On 13/03/16 09:20, Jayan M N wrote:


Here is my FlowScript. `dev.AlwaysFail` is job that will always fail.


def afterFail=false;
def afterFail_2= false;
guard {
 b = build( "dev.AlwaysFail" )
 out.println ("must not appear")//executed even after the error.
 afterFail = true; //executed even after the error.
 b = build( "dev.AlwaysFail" )
 afterFail_2 = true;
} rescue {
 out.println afterFail
 out.println afterFail_2
}

Result from execution
=

guard {
 Schedule jobdev.AlwaysFail 
 Builddev.AlwaysFail #3   
started
 dev.AlwaysFail #3   completed 
 : FAILURE
must not appear
} rescue {
true
false
}
Finished: FAILURE

=



Is there a way to directly execute "guard" when build triggered from flow 
execute?


Thanks,

Jayan

--
You received this message because you are subscribed to the Google
Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to jenkinsci-users+unsubscr...@googlegroups.com
.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/3a5b966a-410d-4ea1-ba1c-da8e9cb93083%40googlegroups.com
.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/56E9FC68.2090808%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: java.lang.ClassNotFoundException

2016-03-19 Thread Victor Martinez


Hi,


 AFAIK java.lang.NoClassDefFoundError: 
com/cloudbees/hudson/plugins/folder/AbstractFolderPropertyDescripton means you 
are missing some jars/plugins so you need to install the 
https://wiki.jenkins-ci.org/display/JENKINS/CloudBees+Folders+Plugin plugin


 Give a go and see whether it works 


Cheers


On Wednesday, 16 March 2016 13:14:30 UTC, cardio palma wrote:
>
> Dear everybody, 
> hoping I'm not asking in the wrong channel, 
> I'm facing the following issue and I'm unable to find more information around 
> the web. 
>
> This error is raised when I logout from Jenkins, and in general always when 
> the login page is loaded: 
>
> Mar 16, 2016 9:47:14 AM WARNING hudson.ExtensionFinder$Sezpoz scout
>
> Failed to scout 
> com.cloudbees.hudson.plugins.folder.properties.AuthorizationMatrixProperty$DescriptorImpl
> java.lang.InstantiationException: java.lang.NoClassDefFoundError: 
> com/cloudbees/hudson/plugins/folder/AbstractFolderPropertyDescriptor
>   at net.java.sezpoz.IndexItem.element(IndexItem.java:146)
>   at hudson.ExtensionFinder$Sezpoz.scout(ExtensionFinder.java:667)
>   at 
> hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:382)
>   at hudson.ExtensionList.load(ExtensionList.java:349)
>   at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
>   at hudson.ExtensionList.iterator(ExtensionList.java:156)
>   at 
> hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:381)
>   at hudson.ExtensionList.load(ExtensionList.java:349)
>   at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
>   at hudson.ExtensionList.get(ExtensionList.java:171)
>   at 
> hudson.PluginManager$PluginUpdateMonitor.getInstance(PluginManager.java:1261)
>   at hudson.maven.PluginImpl.init(PluginImpl.java:58)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   at java.lang.reflect.Method.invoke(Method.java:606)
>   at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:106)
>   at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:176)
>   at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
>   at jenkins.model.Jenkins$7.runTask(Jenkins.java:905)
>   at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
>   at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.NoClassDefFoundError: 
> com/cloudbees/hudson/plugins/folder/AbstractFolderPropertyDescriptor
>   at java.lang.ClassLoader.defineClass1(Native Method)
>   at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
>   at 
> jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1139)
>   at 
> hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:801)
>   at 
> jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1310)
>   at 
> jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1366)
>   at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
>   at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   at java.lang.reflect.Method.invoke(Method.java:606)
>   at 
> jenkins.ClassLoaderReflectionToolkit.invoke(ClassLoaderReflectionToolkit.java:44)
>   at 
> jenkins.ClassLoaderReflectionToolkit._findClass(ClassLoaderReflectionToolkit.java:86)
>   at 
> hudson.PluginManager$UberClassLoader.findClass(PluginManager.java:1123)
>   at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
>   at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>   at net.java.sezpoz.IndexItem.element(IndexItem.java:134)
>   ... 24 more
> Caused by: java.lang.ClassNotFoundException: 
> com.cloudbees.hudson.plugins.folder.AbstractFolderPropertyDescriptor
>   at 
> jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376)
>   at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
>   at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079)
>   at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>   ... 40 more
>
>
> I've checked and the plugin *cloudbees* is not installed in my Jenkins 
> instance, this is confusing me. 
>
> I've updated all the installed plugin and then upgraded Jenkins to the 
> lastest version: 
> http://updates.jenkins-ci.org/download/war/*1.642.2*/jenkins.war
>
> Currently I've no Idea on how to proceed

[2.0] feedback on setup wizard

2016-03-19 Thread Kohsuke Kawaguchi
I have two problems with the setup wizard in new alpha-3. I filed those as
tickets, but ultimately it should be decided by how users perceive this, so
in the hope of creating a discussion here they are:



*https://issues.jenkins-ci.org/browse/JENKINS-33599
*

The new security setup wizard in alpha-3 requies that the new user provides
a security token that's printed to console to proceed, but knowing where it
goes really isn't easy. You see some beginning of it in this Wiki page
, but this is still
far from complete.

For example, on Windows %JENKINS_HOME% is something the user can override
during the setup, which I think defaults to either c:\jenkins or
%APPDATA%\jenkins that I can't remember. The latter location would be
different depending on Windows versions. And if you are a kind of guy who
just clicks Next, Next, and Next, you probably don't know where it is.

On OS X, we support two ways of installing it, and they put things to
different locations. I don't know exactly where so I couldn't add it to the
page.

Then there's a whole can of worm about running Jenkins on a servlet
container, which can do any number of things depending on how you installed
the said servlet container.

I think this is too much hassle, especially given that I cannot think of
any other tools that do this much. For example, Atlassian tools show the
setup wizard to anyone accessing it.

I suggest we consider alternative ways of authenticating the user:

   - Create a random file name under $JENKINS_HOME and ask the user to
   touch that file by showing the path.
   - Instead of printing it out to stdout, create a file under
$JENKINS_HOME and
   ask the user to paste in its content.

Both of these remove any ambiguity and sufficiently authenticate the user.

Daniel raised that this approach reveals the location of $JENKINS_HOME but
I don't consider that a vulnerability by itself. This only happens briefly
during the setup anyway.


*https://issues.jenkins-ci.org/browse/JENKINS-33601
*

During the setup wizard, Jenkins asks if I want to create an admin user or
skip it. When I choose skip, it'll still create an admin user anyway.

This is unintuitive. The expectation with the 'Skip' label is that I'm NOT
creating an admin user. There are legitimate reasons to do this - for
example if I'm setting up Jenkins with a real security realm like LDAP, I
really do not want the admin user.

The problem is further made worse by the fact that this default admin user
has the security token as the password, which you can never recover if you
haven't written it down.

I think we are going too far here. We make it very obvious and natural for
people to create an admin user, and 'Skip' is very under-emphasized
already. This should be sufficient. It shouldn't get in the way of people
who know what they are doing, just like we let people not install any
recommended plugins.

If we insist on forcing people to create an admin user just to install LDAP
plugin & throw that user away, then I'd rather not have the "Skip" button.
As a reference, Atlassian tools for example doesn't let you skip creating
admin user. You always have to create one.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAN4CQ4yKXzzZT%2B_zpeFtXvd%2BhazQQTZYYqGiQRkGtKi-qEOB8g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [2.0] feedback on setup wizard

2016-03-19 Thread Daniel Beck

On 16.03.2016, at 18:54, Kohsuke Kawaguchi  wrote:

> https://issues.jenkins-ci.org/browse/JENKINS-33599
> …
>   • Instead of printing it out to stdout, create a file under 
> $JENKINS_HOME and ask the user to paste in its content.

This is my favored approach and probably the easiest one for production 
instances, as opposed to dev/test instances, for which the log content is 
easier to retrieve.

---

> https://issues.jenkins-ci.org/browse/JENKINS-33601
> …
> The expectation with the 'Skip' label is that I'm NOT creating an admin user. 
> There are legitimate reasons to do this - for example if I'm setting up 
> Jenkins with a real security realm like LDAP, I really do not want the admin 
> user.

We cannot enable security without having an admin user, and requiring disabling 
security, even if temporary, so users can navigate to the Global Security 
Config, seems counterproductive. WRT integrating security setup into the 
initial configuration, Keith thought this would make this "wizard" sequence of 
dialogs too complex. I'm on the fence on this, so we opted to gather feedback. 
I guess we have one strong opinion now :-)

> The problem is further made worse by the fact that this default admin user 
> has the security token as the password, which you can never recover if you 
> haven't written it down.

This would be solved by the file based approach to the first issue. Just look 
up your password from there. (Which is kind of wonky and broken really… tf 
there's a file, it shouldn't exist forever!)

> I think we are going too far here. We make it very obvious and natural for 
> people to create an admin user, and 'Skip' is very under-emphasized already. 
> This should be sufficient. It shouldn't get in the way of people who know 
> what they are doing, just like we let people not install any recommended 
> plugins.
> If we insist on forcing people to create an admin user just to install LDAP 
> plugin & throw that user away, then I'd rather not have the "Skip" button. As 
> a reference, Atlassian tools for example doesn't let you skip creating admin 
> user. You always have to create one.

Seems to me a lot of the problem stems from the label choice. It seems to fix 
most or all of your concerns if instead of "Skip creating an admin user" it 
said "Hey we have this cool user called admin whose password is the code we 
just told you -- do you want to Customize it? Maybe change the user name? Or 
use a terrible password you can actually remember?".

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0083BBAD-BF38-478A-932E-0449BFD1F45A%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


[pipeline] not found disable project button

2016-03-19 Thread Hưng Nguyễn Việt
Hi, I'm using Jenkins ver. 1.618 with pipeline 1.4 (installed recently). I 
want to disable my pipeline like what I can do with a normal free-style 
project but didn't find the button.
Am I missing something here?
Thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/140ed4c3-a0ee-48e0-9c8a-c0838178c9b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Best Practices with LTS Updates

2016-03-19 Thread Ashish Yadav
Would this work?

 "yum localinstall 
http://pkg.jenkins-ci.org/redhat-stable/jenkins-1.625.2-1.1.noarch.rpm";

From: "Indra Gunawan (ingunawa)" mailto:ingun...@cisco.com>>
Reply-To: 
"jenkinsci-users@googlegroups.com" 
mailto:jenkinsci-users@googlegroups.com>>
Date: Thursday, March 17, 2016 at 12:35 PM
To: "jenkinsci-users@googlegroups.com" 
mailto:jenkinsci-users@googlegroups.com>>
Subject: Re: Best Practices with LTS Updates

Then don't do yum, install the Jenkins as war on Tomcat, Jetty or the embedded 
Jetty that comes with Jenkins.

From: 
mailto:jenkinsci-users@googlegroups.com>> on 
behalf of Ashish Yadav 
mailto:ashish.ya...@firemon.com>>
Reply-To: 
"jenkinsci-users@googlegroups.com" 
mailto:jenkinsci-users@googlegroups.com>>
Date: Thursday, March 17, 2016 at 10:21 AM
To: "jenkinsci-users@googlegroups.com" 
mailto:jenkinsci-users@googlegroups.com>>
Subject: Re: Best Practices with LTS Updates

I too am running jenkins v1.609.3.

However, I am concerned about upgrading to v1.642.2 due to the following which 
was 'introduced' in v1.625.3.
https://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2015-12-09

How can I tell if this will impact me? How can I tell if this will be an issue 
if I upgrade to v1.625.3?

I am using the following plugins:

*   Maven Integration Plugin v2.7.1
*   Javadoc Plugin v1.1
*   HTML Publisher Plugin v1.3

Is there a way to upgrade to a specific version? If I do 'yum upgrade jenkins', 
I can only upgrade to v1.625.3


From: Brian Ray mailto:be_...@sbcglobal.net>>
Reply-To: 
"jenkinsci-users@googlegroups.com" 
mailto:jenkinsci-users@googlegroups.com>>
Date: Thursday, March 17, 2016 at 11:01 AM
To: Jenkins Users 
mailto:jenkinsci-users@googlegroups.com>>
Subject: Re: Best Practices with LTS Updates

+1 to what Chris said.

Two more cents worth of advice: When I upgrade one of our Jenkins masters (on 
LTS) I first look at the changelogs to have some idea of the delta-- potential 
gotchas, new features to evangelize, etc. Aside from critical security releases 
I typically wait a day or two after the LTS release is available in the 
unlikely event that the LTS release is not S(table). That's never been the 
case, but my bias is very conservative for this particular Jenkins master.

On Wednesday, March 16, 2016 at 5:51:42 PM UTC-7, Christopher Orr wrote:
On 14/03/16 19:36, Mark Bidewell wrote:
> I am managing the Jenkins Server for my company.  Recently, we moved
> from 1.609.3 to 1.625.3.  I noticed however that the Required Core
> Dependencies for Pipe line skipped 1.625.x and went from 1.609.1 to 1.642.1.
>
> What are the best practices for selecting LTS versions to update?  Would
> an upgrade from say 1.609.3 to 1.642.2 be safe?

You're already on LTS, so there aren't many more "best practices", other
than update regularly :)

But there should generally be no problem with upgrading between releases
that are relatively close like those two are.

Regards,
Chris

--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b62523a0-5e08-477d-baac-498a3722%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/D3104FD1.1DFE1%25ashish.yadav%40firemon.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/D31038A6.4BD60%25ingunawa%40cisco.com.
For more options, 

Windows slave fails to connect via JNLP - can't find remoting.jar

2016-03-19 Thread David Aldrich
Hi

You may have seen my previous questions about trouble connecting a Windows 
slave using JNLP.  I now have a Jenkins test server that is not behind a proxy 
server so there are no tunnelling issues.  When we attempt to connect the slave 
to this test server using JNLP we see this exception:

[cid:image001.png@01D18103.C5824930]

There seems to be a problem finding the expected file. Any ideas how to fix 
this please?

Best regards

David

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/41302A7145AC054FA7A96CFD03835A0A0BAB307D%40EX10MBX02.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.


Re: Request for participation: Jenkins Release Officer candidates

2016-03-19 Thread Oleg Nenashev
Yay, we need a release manager!
On the other may be a work, which requires a significant amount of time (>8 
hours per week I'd guess).

понедельник, 7 марта 2016 г., 20:52:03 UTC+1 пользователь R Tyler Croy 
написал:
>
> Based on the team lead structure 
> (https://wiki.jenkins-ci.org/display/JENKINS/Proposal+-+Project+sub-teams) 
>
> which was previously approved in a project governance meeting, I am asking 
> on 
> behalf of the Jenkins board[0], for candidates who are willing to act as 
> the 
> Jenkins Release Officer[1]. 
>
>
> The Jenkins Release Officer would play a key role in driving release 
> processes 
> and the release tooling. The Release Officer would not play an exclusive 
> role 
> in the Jenkins projects release infrastructure but would be the point 
> person to: 
>
> * Manage keys for signing and producing official Jenkins releases (e.g. 
> GPG 
>   signing keys, Windows and Mac OS X certificates) 
> * Be responsible for release automation to produce LTS and weekly releases 
> * Operate LTS/weekly releases directly, or name specific release managers 
> to be 
>   responsible for those releases (e.g. "this person is responsible for 
> this LTS 
>   series, backporting, etc") 
> * Act as a single point of contact for the Security Officer to incorporate 
>   security fixes/backports into releases (this implies membership to 
> Jenkins CERT 
>   team) 
>
>
> The expected term for the Release Officer would be 12 months. 
>
> Contributors interested in being considered for the Jenkins Release 
> Officer 
> position should email the board: jenkins...@googlegroups.com  
> in the next 
> *seven* days explaining their qualifications for the position. 
>
>
>
> After that seven day period expires, the board will select a candidate to 
> appoint to the position who will be able to act on behalf of the 
> Governance 
> Board on matters pertaining to the position described above. 
>
>
>
> [0] The current board: <
> https://wiki.jenkins-ci.org/display/JENKINS/Governance+Board> 
> [1] 
> https://wiki.jenkins-ci.org/display/JENKINS/Team+Leads#TeamLeads-Release 
>
>
>
> Cheers, 
> - R. Tyler Croy 
>
> -- 
>  Code:  
>   Chatter:  
>
>   % gpg --keyserver keys.gnupg.net --recv-key 3F51E16F 
> -- 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b7fa31a8-9924-4a98-9bb9-807ea44721c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Job is run twice on first slave using label parameter

2016-03-19 Thread Elvis Presley
Jenkins 1.643 on Windows Server 2012R2 x64
Java 1.8.0_20 x86
Node and Label Parameter Plugin 1.7.1 



Hi,

I have multiple slaves that have multiple labels\tags. Four of those slaves 
are online and all 4 
have 'sales' (no quotes) as one of their labels.

I add a label parameter to a job, and I specify 'sales' as the value (no 
quotes).

The job runs fine, and it targets all four slaves. Unfortunately, it runs 
twice on the first slave (5 iterations total).
If I use a NODE parameter instead, and select all 4 slaves, it runs 4 times 
(once on each).

I have checked the box "Run on all nodes matching the label". I have 
selected "Run regardless of result" radio button.
In terms of Node eligibility, I have selected "Ignore offline nodes".

It has nothing to do with that particular slave (slaveA), because when I 
take it offline, and run the job again using the same
same label, the job is run twice on a different slave(slaveB), and only 
once and the other two slaves (slaveC,slaveD).

Any ideas?

Thanks,
pimy

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/cb2b2b1d-013c-45ab-8f2a-90e2e82edb3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Special measures for running Windows 10 slaves via DCOM?

2016-03-19 Thread Slide
Hi David,

I am not behind a proxy, so I don't have to specify that parameter.

Thanks,

Alex

On Thu, Mar 17, 2016 at 5:20 AM David Aldrich 
wrote:

> Hi Slide
>
>
>
> Our Jenkins master is behind a reverse proxy so I think I need to specify
> the “
> Tunnel connection through” parameter of JNLP.  I can’t find a value that
> works.
>
>
>
> Do you have to specify this parameter in your environment?
>
>
>
> Best regards
>
>
>
> David
>
>
>
>
>
> *From:* jenkinsci-users@googlegroups.com [mailto:
> jenkinsci-users@googlegroups.com] *On Behalf Of *Slide
> *Sent:* 15 March 2016 16:24
>
>
> *To:* jenkinsci-users@googlegroups.com
> *Subject:* Re: Special measures for running Windows 10 slaves via DCOM?
>
>
>
> Here you go:
> https://wiki.jenkins-ci.org/display/JENKINS/Distributed+builds#Distributedbuilds-LaunchslaveagentviaJavaWebStart
>
>
>
> On Tue, Mar 15, 2016 at 9:20 AM David Aldrich 
> wrote:
>
> Yes, we have also experienced lots of pain from that route and I would be
> only too pleased to drop it!
>
>
>
> Please can you give me a pointer to the JNLP method?
>
>
>
> David
>
>
>
> *From:* jenkinsci-users@googlegroups.com [mailto:
> jenkinsci-users@googlegroups.com] *On Behalf Of *Slide
> *Sent:* 15 March 2016 16:18
> *To:* jenkinsci-users@googlegroups.com
> *Subject:* Re: Special measures for running Windows 10 slaves via DCOM?
>
>
>
> Just as an FYI, I don't think that the DCOM slaves stuff has received much
> love in recent years. I would recommend using the JNLP method for setting
> up slaves on Windows. The DCOM method provided me with nothing but pain and
> anguish every time I tried to use it.
>
>
>
> On Tue, Mar 15, 2016 at 9:03 AM David Aldrich 
> wrote:
>
> Hi
>
>
>
> Jenkins wiki page:
>
>
>
>
> https://wiki.jenkins-ci.org/display/JENKINS/Windows+slaves+fail+to+start+via+DCOM
>
>
>
> describes how to fix ‘Windows slaves fail to start via DCOM’ and really
> just refers to Windows 7 and Windows 2008 Jenkins slaves.
>
>
>
> Are the same fixes applicable to Windows 10 slaves?
>
>
>
> Best regards
>
>
>
> David
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/41302A7145AC054FA7A96CFD03835A0A0BAAEB99%40EX10MBX02.EU.NEC.COM
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
>
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVc8cWRZ0wONnr553DP3dUa9YRQoMJOcbLQbsue8ddz1Pg%40mail.gmail.com
> 
> .
>
>
> For more options, visit https://groups.google.com/d/optout.
>
> Click here
> 
> to report this email as spam.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/41302A7145AC054FA7A96CFD03835A0A0BAAEBF0%40EX10MBX02.EU.NEC.COM
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
>
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVeEKuSDnKJjn4Y7MPSSfvwePLso%2BoJE58JU6zfhmgufnQ%40mail.gmail.com
> 
> .
>
>
> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discu

Re: [workflow] Git step to check out a commit instead of a branch

2016-03-19 Thread Baptiste Mathus
Did you try using the generic SCM way as proposed by Jesse?
Le 17 mars 2016 4:51 PM, "Simone Vratogna"  a écrit :

> Hello, I'm interested as well. Did you find any solution?
>
> On Wednesday, March 25, 2015 at 3:26:37 PM UTC+1, Lóránt Pintér wrote:
>>
>> Hi,
>>
>> Is it possible to check out a particular commit hash, instead of a branch
>> with the git workflow step?
>>
>> Thanks,
>> Lorant
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/ff3a7df7-73e4-4ad0-923b-67cc53917664%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS5GJLNw5k_G1D1dsRhwgz17msLfJP08tadFfnkGdDV1iQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Pipeline/Workflow node name as variable

2016-03-19 Thread Vincent Latombe
Use double quotes if you want expressions resolved.

Vincent

2016-03-17 13:23 GMT+01:00 Frank Hask :

> Hi all, i am building pipeline on my project that uses 5 DB servers.
>
> So based on build variable i want to set node name. Like this..
>
> env.NODE = 'blabla'
>
>
> node('${NODE}') {
>   //some code
> }
>
> but each time i get error - There are no nodes with the label ‘${NODE}’
>
> Thanks for help in advance...
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/bf6fe502-84b4-401a-ae57-e003e8e37f01%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAH-zGCiDFf4%2B2aGt1NNBKvt%3DtyQiis0tO-78avNcMDAOBU57Bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Best Practices with LTS Updates

2016-03-19 Thread Daniel Beck

On 17.03.2016, at 18:21, Ashish Yadav  wrote:

> I too am running jenkins v1.609.3. 
> 
> However, I am concerned about upgrading to v1.642.2 due to the following 
> which was ‘introduced’ in v1.625.3.
> https://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2015-12-09
> 
> How can I tell if this will impact me? How can I tell if this will be an 
> issue if I upgrade to v1.625.3? 
> 
> I am using the following plugins:
>   • Maven Integration Plugin v2.7.1
>   • Javadoc Plugin v1.1
>   • HTML Publisher Plugin v1.3

This concern doesn't really make sense to me. You're running a version that is 
known vulnerable to a specific issue that may or may not be relevant to you (as 
documented on the wiki).

If you upgrade, some of these reports may no longer display correctly in a web 
browser, but the worst case is, you decide it's preferable to restore the 
functionality at the cost of being vulnerable again.

So other than having to fiddle with the option documented on the wiki for a 
bit, I'm not seeing how this blocks upgrading.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/F2BE34F7-8B34-427B-801A-CE14B1AC6F60%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Polling question

2016-03-19 Thread Victor Martinez
Since you are polling for new changes every 15 minutes, then If there are 
new changes then it will trigger another build

On Friday, 18 March 2016 17:06:26 UTC, Hector Magnanao wrote:
>
> In Jenkins,  if I have a polling schedule every 15 minutes on a job,  does 
> Jenkins know not to run the job again if the same job is still running 
> after 15 minutes ? 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c816b4bb-9c83-4d20-87fb-4c83df712494%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Opening Html files failed

2016-03-19 Thread Daniel Beck

On 18.03.2016, at 15:26, jer...@bodycad.com wrote:

> I guess I have some syntax error or using the wrong format. Anybody have any 
> tips? 

Use the provided script console commands to read what the value you set 
actually is.

Set it using the script console to ensure it's not related to weird command 
line quote parsing. It's effective immediately, no restarts required. Once 
you're done with this, set it in the Jenkins launch scripts/config files to 
persist.

> BTW, the page: 
> https://wiki.jenkins-ci.org/display/JENKINS/Configuring+Content+Security+Policy
>  
> is great to know what the problems is, but it totaly lack clarity to where to 
> set those policy.

The first few sentences of the section "Implementation" in the wiki are about 
how to pass the argument to the Java process. Or are you asking for a link to 
https://wiki.jenkins-ci.org/display/JENKINS/Native+Packages from which the 
platform dependent installer documentation (including where to customize 
parameters) can be accessed?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/87707AFD-8D29-4338-B026-5362A53E77EF%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Opening Html files failed

2016-03-19 Thread jerome
I have try to update to the latest Jenkins version 1.653, I try to run the 
following script console:
System.getProperty("hudson.model.DirectoryBrowserSupport.CSP")

Here's the return value:

Result: sandbox 'allow-scripts'; script-src 'self' 'unsafe-inline' 
'unsafe-eval'; img-src *;


I still cannot access the web content and I get the same error as if 
allow-scripts is not


On Friday, March 18, 2016 at 10:26:17 AM UTC-4, jer...@bodycad.com wrote:
>
> I'm running into the same problem under Windows, I try to add the Prolicy 
> and restart the server, but it seem to be ignored. Here's what I did inside 
> the "jenkins.xml"
>
> -Xrs -Xmx1024m 
> *-Dhudson.model.DirectoryBrowserSupport.CSP="sandbox 
> allow-scripts; script-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src *;"* 
> -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar 
> "%BASE%\jenkins.war" --httpPort=8081 --prefix=/Jenkins
>
> There's no error into the error log but the web still tell me the 
> because the document's frame is sandboxed and the 'allow-scripts' 
> permission is not
>
> I guess I have some syntax error or using the wrong format. Anybody have 
> any tips? 
> BTW, the page: 
>
> https://wiki.jenkins-ci.org/display/JENKINS/Configuring+Content+Security+Policy
>   
> 
> is great to know what the problems is, but it totaly lack clarity to where 
> to set those policy. Why is this not part of the Manage jenkins interfaces? 
> why can't we set this per project?
>
> Thanks,
> Jerome
>
> On Tuesday, January 12, 2016 at 9:17:13 AM UTC-5, Daniel Beck wrote:
>>
>> Does it work when you set it via the script console as described on 
>> https://wiki.jenkins-ci.org/display/JENKINS/Configuring+Content+Security+Policy
>>  
>> ? 
>>
>> Note that setting it in the XML file requires a Jenkins restart via the 
>> Control Panel/services.msc to be effective. 
>>
>> On 11.01.2016, at 19:13, techi...@gmail.com wrote: 
>>
>> > 
>> > Hello all, 
>> > 
>> > 
>> > i am currently using Jenkins ver. 1.643 .  I tried work around of 
>> adding below highlighted to jenkins.xml suggested in the internet but didnt 
>> work for me. Could someone please suggest me on this error. 
>> > 
>> > 
>> > In windows based Jenkins we have service for stop/start . 
>> > 
>> > I assumed below is the place where it is taking the arguments i have 
>> added those to Jenkins.xml.  here is complete xml.  please let me know if i 
>> am adding at wrong place. 
>> > 
>> >  
>> >   jenkins 
>> >   Jenkins 
>> >   This service runs Jenkins continuous integration 
>> system. 
>> >
>> >
>> >   %BASE%\jre\bin\java 
>> >   -Xrs -Xmx256m -Dhudson.model.DirectoryBrowserSupport.CSP= 
>> -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar 
>> "%BASE%\jenkins.war" --httpPort=8080 
>> >
>> >   rotate 
>> > 
>> >
>> >  
>> > 
>> > 
>> > 
>> > Errors: 
>> > 
>> > Opening Robot Framework report failed 
>> > 
>> > • Verify that you have JavaScript enabled in your browser. 
>> > • Make sure you are using a modern enough browser. Firefox 3.5, 
>> IE 8, or equivalent is required, newer browsers are recommended. 
>> > • Check are there messages in your browser's JavaScript error 
>> log. Please report the problem if you suspect you have encountered a bug. 
>> > - show quoted text - 
>> > 
>> > -- 
>> > 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. 
>> > To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/70e74d95-e609-4471-abd4-626e0d76a4a5%40googlegroups.com.
>>  
>>
>> > For more options, visit https://groups.google.com/d/optout. 
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/e51483db-569a-414d-9188-f58de1e5329c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Change GitSCM repository from a plugin

2016-03-19 Thread Mark Waite
Since the job uses the remote repository address which is stored inside the
repository, I suggested that you use JGit to modify the job definition in
the repository, then rely on the plugin to read the definition from the
repository.

Alternately, you could look at the source code of the git plugin and the
git client plugin, to see if there is a convenient programming interface.
Since the repository address can be set from the user interface, there is
likely a DataBoundConstructor and/or DataBoundSetter which can set the
repository address and repository name.

Mark Waite

On Fri, Mar 18, 2016 at 3:06 PM Iñigo Telleria  wrote:

> As far as I've understood JGit is to manage a local or remote repostiry.
> However, what I need is to modify remote repository address of a job.
>
> For example, a job's repository url is http://domain.com/project.git.
> With the plugin I'm implementing I want to replace that address with
> another one, http://newdomain.com/newproject.git.
>
> To get this, I've tried with the snippet I've included above but it
> doesn't work. Any idea?
>
>
> On Friday, 18 March 2016 19:12:32 UTC+1, Mark Waite wrote:
>
>> You might try the instructions at
>> http://stackoverflow.com/questions/12799573/add-remote-via-jgit
>>
>> On Fri, Mar 18, 2016 at 7:14 AM Iñigo Telleria  wrote:
>>
> Hi,
>>>
>>> I'm developing a Jenkins plugin which copies a job (template-job) and
>>> changes some data.
>>>
>>> To do so, I've written this code in a plugin:
>>>
>>> MavenModuleSet template = (MavenModuleSet) jenkins.getItem(
>>> "template-job");
>>> MavenModuleSet newJob = (MavenModuleSet) jenkins.copy((TopLevelItem)
>>> template, "new-job-name");
>>>
>>> GitSCM gitScm = (GitSCM) newJob.getScm();
>>> List repositories = gitScm.getRepositories();
>>>
>>> if (repositories.size() != 1) {
>>>  throw new IllegalStateException("Just one repository was expected and
>>> there are " + repositories.size());
>>> }
>>>
>>> RemoteConfig repository = repositories.get(0);
>>> repository.removeURI(new URIish("${REPOSITORY_URL}"));
>>> String newUrl = "http://domain.com/project.git";
>>> repository.addURI(new URIish(url));
>>>
>>> This code creates a new job based on template-job and it has a new name.
>>> However, I can't change its git's repository url.
>>>
>>> Have I missed something? Can somebody give me a clue?
>>>
>>> Iñigo
>>>
>>>
>>> --
>>> 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.
>>
>>
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/cb67d0da-3d96-478b-a024-d79445f48b7b%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/b42df2ac-e7c6-4c00-825f-491aa6b6ee12%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGJ2zMM4tHLVGLQ97dAVcciSmSgKo_3Yit48JtNkMOi6w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: variables in parallel tasks in pipeline plugin.

2016-03-19 Thread John Thompson
So, just in case anyone else has this problem.  Variable scope is a thing. 
 Adding a 'def' fixes everything.

for (int i = 0; i < list.size(); i++) {
def thing = list.get(i)
print thing
branches[thing] = {
node {
print thing
} 
}
parallel branches



On Thursday, March 17, 2016 at 10:57:01 AM UTC-4, John Thompson wrote:
>
>
> I have code like the following: (obviously more complicated, but this 
> shows the problem)
>
> for (int i = 0; i < list.size(); i++) {
> thing = list.get(i)
> print thing
> branches[thing] = {
> node {
> print thing
> } 
> }
> parallel branches
>
> As it's building the branches, it prints out each thing in the list in 
> order as I would expect.  When it actually *executes* the branches, it 
> prints the last thing in the list for as many items there are in the list. 
>  From what I understand, that's because it's executing the value of the 
> external variable at the time the job is run, rather than what it was at 
> the time the branch was built.  Which I believe is the correct behavior, so 
> I'm probably approaching this the wrong way.
>
> What would be the correct way to run several parallel tasks on different 
> items in a list?  Is there a way to built the code block for each branch so 
> it has the *value* of the variable when I'm building it rather than the 
> *variable itself*?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/be38156c-7a25-470c-ada7-48204b5dc0c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Environment Variable

2016-03-19 Thread Christopher Orr

On 14/03/16 16:44, Jayesh Iyer wrote:

Hi,

I am using jenkins environment variable, i am specifying property
something like

count=1

the same is present in my build file as




I have specified a property file something as

C:\Users\myname.i\workspace\Project\application.properties

When i trigger the build, the property file gets updated as
count=${env.count} and not the value which is 1 ( I am passing this as a
parameter from jenkins)

Can anyone say what wrong i am doing here


Without more details, not really.

You're right that a build parameter should be exported as an environment 
variable.


It sounds possibly like you're using an Ant build file (perhaps?) to 
write a properties file.


If so, have you included  in your Ant build?

Regards,
Chris

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/56E9FEA2.10908%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Scheduling question

2016-03-19 Thread Victor Martinez
You can use the below plugin:
- https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Trigger+Plugin

B polls for any changes, configure a build step to trigger A and wait until 
it finishes then configure what B should do and exactly the same steps for C

Cheers

On Friday, 18 March 2016 17:08:32 UTC, Hector Magnanao wrote:
>
> I have 3 jobs - A, B, and C.  I want to poll B but whenever B needs to 
> run, it has to run A first before it can run itself.  After B finishes, 
> then run C.  How can I setup this type of job schedule ?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/86a120fe-debe-4ab4-9a46-fea1b545bc6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins Pipeline/Workflow node name as variable

2016-03-19 Thread Frank Hask
Hi all, i am building pipeline on my project that uses 5 DB servers.

So based on build variable i want to set node name. Like this..

env.NODE = 'blabla'


node('${NODE}') {
  //some code
}

but each time i get error - There are no nodes with the label ‘${NODE}’

Thanks for help in advance...

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/bf6fe502-84b4-401a-ae57-e003e8e37f01%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: selenium Jenkins integration issues

2016-03-19 Thread Duarte Carreira
well I was wrong... your problem is not in the testing.xml... obviously...

if you run your tests "outside" jenkins you say they don't do what you 
expect. so you have to debug your tests... at the very least use println 
often to get feedback on whats going on. I don't use testng so i am not the 
most qualified person to help you, but it seems to me your tests are not 
working, nothing wrong with jenkins...

On Thursday, March 17, 2016 at 4:18:48 AM UTC, Kancharla Prasad wrote:
>
>
>
> Thank you Duarte.
>
> please find my Testng xml:
>
> 
> http://testng.org/testng-1.0.dtd";>
> 
>   
>   
>name="com.copmanyname.productname.applicationname.testcases.Admin_General"/>
>name="com.copmanyname.productname.applicationname.testcases.EUM_Overview"/>
>name="com.copmanyname.productname.applicationname.testcases.ClenUp"/>
> 
>
>  
>
> On 16 March 2016 at 23:19, Duarte Carreira  > wrote:
>
>> your problem is likely in your xml... can you post just the starting 
>> lines?
>>
>> On Wednesday, March 16, 2016 at 4:00:03 AM UTC, Kancharla Prasad wrote:
>>>
>>> Thank you Eric, please find my bat file data.
>>>
>>> java -cp bin;lib/* org.testng.TestNG testng.xml
>>>
>>> On 16 March 2016 at 01:30, Eric Smalling  wrote:
>>>
 Can you post the contents of your .bat file?  (If it's large, a 
 gist.github.com post would be nice)

 On Tuesday, March 15, 2016 at 5:10:42 AM UTC-5, Kancharla Prasad wrote:
>
> Hi All,
>
> I am new to Jenkins, I configured jenkins with testng (my selenium 
> project).
>
> When i build the project getting this:
>
> ===
> Suite
> Total tests run: 6, Failures: 0, Skips: 6
> Configuration Failures: 1, Skips: 1
> ===
>
> Build step 'Execute Windows batch command' marked build as failure
> Finished: FAILURE
>
> _
>
>
> This means, atleast jenkins is able to get my project details to execute.
>
>
> When i run my bat file manually, it launches the browser but fails to 
> navigate to application URL.
>
>
> any suggestions please, how to fix this issue.
>
>
> Thanks,
>
> L V Prasad. K
>
> -- 
 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/UaGwfNddVKc/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to 
 jenkinsci-use...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/jenkinsci-users/9105f43d-91d8-4d90-8988-411b4c8ca6ec%40googlegroups.com
  
 
 .

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

>>>
>>> -- 
>> 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/UaGwfNddVKc/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> jenkinsci-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/2d2b351f-62ea-4cb9-a75f-fd7982be2b21%40googlegroups.com
>>  
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/5c8a56b0-aa7d-49e1-9aec-e1c5c8281b5b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [workflow] Git step to check out a commit instead of a branch

2016-03-19 Thread Simone Vratogna
Hello, I'm interested as well. Did you find any solution?

On Wednesday, March 25, 2015 at 3:26:37 PM UTC+1, Lóránt Pintér wrote:
>
> Hi,
>
> Is it possible to check out a particular commit hash, instead of a branch 
> with the git workflow step?
>
> Thanks,
> Lorant
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ff3a7df7-73e4-4ad0-923b-67cc53917664%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Running squish test on jenkins slave from jenkins master

2016-03-19 Thread anks113
Hi,

I am trying to run squish test on my Jenkins slave machine (UNIX) from my
Jenkins master machine (windows) using the jenkins master and slave
philosophy.

*While running my build schedule it is giving me following error:-
>>  Exception: com.froglogic.squish.SquishException:
>> com.froglogic.squish.execute.TestCaseNotFoundException: Could not find
>> tst_/home/admin/Desktop/Squish_setup/squish-6.0.1-qt47x-linux64/examples/qt/addressbook/suite_py/tst_general/test.py
>> in suite
>> /home/admin/Desktop/Squish_setup/squish-6.0.1-qt47x-linux64/examples/qt/addressbook/suite_py
>> (tried with and without tst_ prefix)  *

*Also in the same console output under squish configuration :- 
Squish configuration
  (slave=caio-PC/***.***.*.**)*
In slave I am getting the IP address of my master machine instead of slave
machine where I want to run my jenkins job.

Please provide some solution to this problem.



--
View this message in context: 
http://jenkins-ci.361315.n4.nabble.com/Running-squish-test-on-jenkins-slave-from-jenkins-master-tp4799890.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/1458103020203-4799890.post%40n4.nabble.com.
For more options, visit https://groups.google.com/d/optout.


RE: Windows slave fails to connect via JNLP - can't find remoting.jar

2016-03-19 Thread David Aldrich
Fixed, Jenkins URL in Manage Jenkins > Configure System was incorrect.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/41302A7145AC054FA7A96CFD03835A0A0BAB31B2%40EX10MBX02.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.


Re: java.lang.ClassNotFoundException

2016-03-19 Thread cardio palma
Many thanx, 
the Error in the Manage Jenkins > System log 
is gone, log there is clean now, but the error is still raised when i'm in 
the log out page. I guess it is an other problem then, I will open a new 
post, anyway I attach here also, in case it is related: 

Stack trace

java.lang.NullPointerException
at java.util.TreeMap.put(TreeMap.java:556)
at java.util.TreeSet.add(TreeSet.java:255)
at jenkins.model.Jenkins.getUnprotectedRootActions(Jenkins.java:3876)
at jenkins.model.Jenkins.getTarget(Jenkins.java:3852)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:674)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
at 
hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:123)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at 
hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:135)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
at 
hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558)
at 
org.apache.catalina.core.St

[Jenkins Squish Integration ] parse error in test cases string: unexpected escaped character

2016-03-19 Thread Ankit Vashistha
 

I am trying to run my squish test on slave machine (windows) using jenkins 
from master machine (windows).


When i tried to run test case from squish IDE from slave machine it is 
working fine. Same when I am trying to run from remote machine (master 
jenkins machine) I am getting this error :


*>> Exception: parse error in test cases string: unexpected escaped 
character* 



Also in my console output I am *under squish configuration in slave I am 
getting IP address of my master machine rather than slave machine* , where 
i want to run the test case.

Please provide some help.


thanks

Ankit Vashistha

+91-9899727063

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/21348306-d2f3-4bfc-a6b2-bc584c206135%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Removing build associated files on Linux from Windows Jenkins

2016-03-19 Thread Baptiste Mathus
Must be missing something. Why can't you just:
* upload files
* process them
* download resulting files
* clean up everything

In the same go?

Cheers
Le 14 mars 2016 6:09 PM, "Ioannis Moutsatsos"  a
écrit :

> I have a job that uploads user data on a Linux server where it gets
> processed (ssh remote execution build step). Results (artifacts) are
> subsequently downloaded and archived on the windows Jenkins server.
>
> How can I delete the user data on the Linux server when  their associated
> Jenkins build is deleted?
> Jenkins obviously deletes the archived artifacts, but I can't think of a
> good way to also trigger the cleanup of the remote data on Linux.
>
> Any help would be greatly appreciated. thanks
> Ioannis
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/f4dc57e6-6045-4d92-b35c-ecb3ec0a5615%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS7Bef-jJ3mQ3O3r%3D_upoMrOhe6Pau_bNJtX7HD1BVeybw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Fwd: [2.0] pushing out beta, RC, and GA by a week

2016-03-19 Thread Kohsuke Kawaguchi
I've sent this out to the dev list yesterday, but also copying it here.

-- Forwarded message --
From: Kohsuke Kawaguchi 
Date: 2016-03-15 18:36 GMT-07:00
Subject: [2.0] pushing out beta, RC, and GA by a week
To: "jenkinsci-...@googlegroups.com" 


Based on the # of moving stories and all the in-flight tasks which you can
see here ,
Daniel, Patrick, myself and a few others talked offline and decided that we
are not on track to release a beta tomorrow that meets the expectation.

So instead, we'll call tomorrow's release alpha-4, and delay beta, RC and
GA all by one week. Wiki has been already updated
. That means we
are aiming to ship in April 6th now.

I'd like to call for those who are involved to spend the time from here to
beta for nailing in-progress stories, testing, and fixing problems that are
discovered. Feature freeze will happen tomorrow as originally planned. So
no more new features beyond what's already in motion.

-- 
Kohsuke Kawaguchi



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


Re: selenium Jenkins integration issues

2016-03-19 Thread Duarte Carreira
your problem is likely in your xml... can you post just the starting lines?

On Wednesday, March 16, 2016 at 4:00:03 AM UTC, Kancharla Prasad wrote:
>
> Thank you Eric, please find my bat file data.
>
> java -cp bin;lib/* org.testng.TestNG testng.xml
>
> On 16 March 2016 at 01:30, Eric Smalling  > wrote:
>
>> Can you post the contents of your .bat file?  (If it's large, a 
>> gist.github.com post would be nice)
>>
>> On Tuesday, March 15, 2016 at 5:10:42 AM UTC-5, Kancharla Prasad wrote:
>>>
>>> Hi All,
>>>
>>> I am new to Jenkins, I configured jenkins with testng (my selenium 
>>> project).
>>>
>>> When i build the project getting this:
>>>
>>> ===
>>> Suite
>>> Total tests run: 6, Failures: 0, Skips: 6
>>> Configuration Failures: 1, Skips: 1
>>> ===
>>>
>>> Build step 'Execute Windows batch command' marked build as failure
>>> Finished: FAILURE
>>>
>>> _
>>>
>>>
>>> This means, atleast jenkins is able to get my project details to execute.
>>>
>>>
>>> When i run my bat file manually, it launches the browser but fails to 
>>> navigate to application URL.
>>>
>>>
>>> any suggestions please, how to fix this issue.
>>>
>>>
>>> Thanks,
>>>
>>> L V Prasad. K
>>>
>>> -- 
>> 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/UaGwfNddVKc/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> jenkinsci-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/9105f43d-91d8-4d90-8988-411b4c8ca6ec%40googlegroups.com
>>  
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/2d2b351f-62ea-4cb9-a75f-fd7982be2b21%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Polling question

2016-03-19 Thread Hector Magnanao
In Jenkins,  if I have a polling schedule every 15 minutes on a job,  does 
Jenkins know not to run the job again if the same job is still running 
after 15 minutes ? 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ebdfb630-9bad-4fb1-9321-15f5aa35fdbd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


java.lang.ClassNotFoundException

2016-03-19 Thread cardio palma


Dear everybody, 
hoping I'm not asking in the wrong channel, 
I'm facing the following issue and I'm unable to find more information around 
the web. 

This error is raised when I logout from Jenkins, and in general always when the 
login page is loaded: 

Mar 16, 2016 9:47:14 AM WARNING hudson.ExtensionFinder$Sezpoz scout

Failed to scout 
com.cloudbees.hudson.plugins.folder.properties.AuthorizationMatrixProperty$DescriptorImpl
java.lang.InstantiationException: java.lang.NoClassDefFoundError: 
com/cloudbees/hudson/plugins/folder/AbstractFolderPropertyDescriptor
at net.java.sezpoz.IndexItem.element(IndexItem.java:146)
at hudson.ExtensionFinder$Sezpoz.scout(ExtensionFinder.java:667)
at 
hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:382)
at hudson.ExtensionList.load(ExtensionList.java:349)
at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
at hudson.ExtensionList.iterator(ExtensionList.java:156)
at 
hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:381)
at hudson.ExtensionList.load(ExtensionList.java:349)
at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
at hudson.ExtensionList.get(ExtensionList.java:171)
at 
hudson.PluginManager$PluginUpdateMonitor.getInstance(PluginManager.java:1261)
at hudson.maven.PluginImpl.init(PluginImpl.java:58)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:106)
at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:176)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
at jenkins.model.Jenkins$7.runTask(Jenkins.java:905)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoClassDefFoundError: 
com/cloudbees/hudson/plugins/folder/AbstractFolderPropertyDescriptor
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at 
jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1139)
at 
hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:801)
at 
jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1310)
at 
jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1366)
at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
jenkins.ClassLoaderReflectionToolkit.invoke(ClassLoaderReflectionToolkit.java:44)
at 
jenkins.ClassLoaderReflectionToolkit._findClass(ClassLoaderReflectionToolkit.java:86)
at 
hudson.PluginManager$UberClassLoader.findClass(PluginManager.java:1123)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at net.java.sezpoz.IndexItem.element(IndexItem.java:134)
... 24 more
Caused by: java.lang.ClassNotFoundException: 
com.cloudbees.hudson.plugins.folder.AbstractFolderPropertyDescriptor
at 
jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376)
at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 40 more


I've checked and the plugin *cloudbees* is not installed in my Jenkins 
instance, this is confusing me. 

I've updated all the installed plugin and then upgraded Jenkins to the lastest 
version: http://updates.jenkins-ci.org/download/war/*1.642.2*/jenkins.war

Currently I've no Idea on how to proceed

Many thanks for any hint

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/79d8cffb-03d5-43cc-b631-d189d230034d%40googlegroups.com.
For more options, visit https://groups.google.co

variables in parallel tasks in pipeline plugin.

2016-03-19 Thread John Thompson

I have code like the following: (obviously more complicated, but this shows 
the problem)

for (int i = 0; i < list.size(); i++) {
thing = list.get(i)
print thing
branches[thing] = {
node {
print thing
} 
}
parallel branches

As it's building the branches, it prints out each thing in the list in 
order as I would expect.  When it actually *executes* the branches, it 
prints the last thing in the list for as many items there are in the list. 
 From what I understand, that's because it's executing the value of the 
external variable at the time the job is run, rather than what it was at 
the time the branch was built.  Which I believe is the correct behavior, so 
I'm probably approaching this the wrong way.

What would be the correct way to run several parallel tasks on different 
items in a list?  Is there a way to built the code block for each branch so 
it has the *value* of the variable when I'm building it rather than the 
*variable itself*?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/07ff466f-183c-4c16-bdf2-8402e9ecf451%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Jenkins Squish Integration] running squish test on slave (unix) machine using jenkins from master (windows)

2016-03-19 Thread Ankit Vashistha
 

I am trying to run squish test on slave machine using Jenkins from master 
machine. While running build job from my master machine I am getting 
following errors:-


*Exception: com.froglogic.squish.SquishException: 
com.froglogic.squish.execute.TestCaseNotFoundException: Could not find 
tst_/home/admin/Desktop/Squish_setup/squish-6.0.1-qt47x-linux64/examples/qt/addressbook/suite_py/tst_general/test.py
 
in suite 
/home/admin/Desktop/Squish_setup/squish-6.0.1-qt47x-linux64/examples/qt/addressbook/suite_py
 
(tried with and without tst_ prefix) *

Also in the same console output *under squish configuration in slave its 
showing the ip address of my Jenkins master machine*.


Please provide some solution to this problem.



Thanks 

Ankit Vashistha

+91-9899727063

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/94301ab5-e6dd-48cb-af94-06c37fef19b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Best Practices with LTS Updates

2016-03-19 Thread Christopher Orr

On 14/03/16 19:36, Mark Bidewell wrote:

I am managing the Jenkins Server for my company.  Recently, we moved
from 1.609.3 to 1.625.3.  I noticed however that the Required Core
Dependencies for Pipe line skipped 1.625.x and went from 1.609.1 to 1.642.1.

What are the best practices for selecting LTS versions to update?  Would
an upgrade from say 1.609.3 to 1.642.2 be safe?


You're already on LTS, so there aren't many more "best practices", other 
than update regularly :)


But there should generally be no problem with upgrading between releases 
that are relatively close like those two are.


Regards,
Chris

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/56E9FF94.4060700%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Plugin to support Docker swarm as cloud provider?

2016-03-19 Thread Geoffroy Jabouley
Hello

are there any ongoing developments regarding a Jenkins plugins that would
add support for Docker Swarm as cloud provider?

it would basically work the same way as Jenkins Mesos plugin, ie
dynamically provisioning  Jenkins Slaves running in docker container on a
Docker Swarm cluster.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAG_uJ%2BCGG4vNp7rAGmZdP7c0o1cBeOZf3%3D5L3KA9HvOOdzxeoA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.