Quantcast

[JIRA] (JENKINS-14104) Use same node which has been specified in the "Restrict where this project can be run" field

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14104) Use same node which has been specified in the "Restrict where this project can be run" field

JIRA noreply@jenkins-ci.org
Issue Type: Bug Bug
Affects Versions: current
Assignee: Gregory Boissinot
Components: scripttrigger
Created: 14/Jun/12 1:47 PM
Description:

Hello All,

Execute ScriptTrigger using the same slave as was specified in the "Restrict where this project can be run" field

For instance:

Restrict where this project can be run: Label Expression: UBUNTU

[ScriptTrigger] - Poll with a shell or batch script

Polling started on 14-Jun-2012 07:00:59
Polling for the job XXX_2.5
Looking nodes where the poll can be run.
Looking for a candidate node to run the poll.
Looking for a polling node with the assigned project label ubuntu.
Trying to poll on master node.

Polling on master.
The expected script execution code is 0
Evaluating the script:

Thanks

Environment: rhel 5.5
64 bits
Jenkins 1.464
Project: Jenkins
Priority: Major Major
Reporter: Victor Martinez
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14104) Use same node which has been specified in the "Restrict where this project can be run" field

JIRA noreply@jenkins-ci.org

Code changed in jenkins
User: Gregory Boissinot
Path:
src/main/java/org/jenkinsci/plugins/scripttrigger/AbstractTrigger.java
src/main/java/org/jenkinsci/plugins/scripttrigger/LabelRestrictionClass.java
src/main/java/org/jenkinsci/plugins/scripttrigger/ScriptTrigger.java
src/main/java/org/jenkinsci/plugins/scripttrigger/groovy/GroovyScriptTrigger.java
src/main/resources/org/jenkinsci/plugins/scripttrigger/ScriptTrigger/config.jelly
src/main/resources/org/jenkinsci/plugins/scripttrigger/groovy/GroovyScriptTrigger/config.jelly
http://jenkins-ci.org/commit/scripttrigger-plugin/01fdc98e0d06c9349d016bc64b0b5f25e77eb1fc
Log:
Fix JENKINS-14104

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14104) Use same node which has been specified in the "Restrict where this project can be run" field

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Check version 0.20 with New Node restriction feature.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14104) Use same node which has been specified in the "Restrict where this project can be run" field

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Gregory Boissinot resolved Bug JENKINS-14104 as Fixed
Change By: Gregory Boissinot (16/Jun/12 9:07 AM)
Status: Open Resolved
Resolution: Fixed
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14104) Use same node which has been specified in the "Restrict where this project can be run" field

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Hello again,

It seems the issues is still alive.

Plugin Version: 0.20
Jenkins Version: 1.464
Java Version: jdk_1.6.25 64 bits
OS Server side: RHEL 5.5 (Tikanga)

Pull output:
ScriptTrigger Log

Polling started on 19-Jun-2012 07:00:33
Polling for the job XX_2.5
Looking nodes where the poll can be run.
Looking for a node to the restricted label ubuntu.
Can't find any eligible nodes.
Trying to poll on master node.

Polling on master.
The expected script execution code is 0
Evaluating the script:

Console output (JOB):

[ScriptTrigger] The execution script returns the expected exit code (log)
Building remotely on rbm-83 in workspace /storage/jenkins/XX_2.5
Checking out a fresh workspace because /storage/jenkins/XX_2.5/scripts doesn't exist
Cleaning local Directory scripts

There were three slaves using the label "ubuntu" but the plugin didn't pick it up.

Let me know if you need further info

Thanks.

Change By: Victor Martinez (19/Jun/12 8:45 AM)
Resolution: Fixed
Status: Resolved Reopened
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14104) Use same node which has been specified in the "Restrict where this project can be run" field

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Does the slave is offline at the poll occurs?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14104) Use same node which has been specified in the "Restrict where this project can be run" field

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Victor,
Please could you help me to fix it by trying to give me more information?
Thanks in advance.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14104) Use same node which has been specified in the "Restrict where this project can be run" field

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Victor Martinez resolved Bug JENKINS-14104 as Cannot Reproduce
Change By: Victor Martinez (25/Jun/12 8:54 AM)
Status: Reopened Resolved
Resolution: Cannot Reproduce
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14104) Use same node which has been specified in the "Restrict where this project can be run" field

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Hello Gregory,

I've tried to see the same error using the same environment, but it seems I cannot produce it again, I was confused why it took the master instead a slave. So please, close this ticket, let you know if I see it again

Thanks

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14104) Use same node which has been specified in the "Restrict where this project can be run" field

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

I can still see this issue with 0.21:
------------------------
Polling started on Aug 15, 2012 1:55:30 PM
Polling for the job X
Looking nodes where the poll can be run.
Looking for a node to the restricted label generic.
Can't find any eligible nodes.
Trying to poll on master node.

Polling on master.
The expected script
[...]
------------------------

Plugin Version: 0.21
Jenkins Version: 1.424.6
Java Version: 1.6.0_24 (OpenJDK Runtime Environment (IcedTea6 1.11.1) (6b24-1.11.1-4ubuntu3))
OS Server side: Ubuntu 12.04 LTS

The node with "generic" label is a libvirt managed VM and it is online when the polling is happening (its online all the time). Regular jobs are properly executed on it when I restrict them so. Just polling seems to be always executing on master.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14104) Use same node which has been specified in the "Restrict where this project can be run" field

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Reopening as per previous comment

Change By: Martin Mrazik (15/Aug/12 2:03 PM)
Resolution: Cannot Reproduce
Status: Resolved Reopened
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14104) Use same node which has been specified in the "Restrict where this project can be run" field

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Strangely enough I can not reproduce on my "staging" jenkins (the previous one is production jenkins) which is the same version of OS/Plugin/Jenkins/Java. The difference is just set of installed plugins. I'm trying to debug a bit more.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14104) Use same node which has been specified in the "Restrict where this project can be run" field

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Gregory Boissinot resolved Bug JENKINS-14104 as Fixed

Ok thanks for your last comment.
I set to Fixed for now. And reopen it you reproduce it.

Change By: Gregory Boissinot (12/Jan/13 8:10 PM)
Status: Reopened Resolved
Resolution: Fixed
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Loading...