[JIRA] (JENKINS-61807) "restrict where this project can be run" setting missing from job configuration

8 views
Skip to first unread message

Stephen.Smith@bsci.com (JIRA)

unread,
Apr 3, 2020, 5:19:04 PM4/3/20
to jenkinsc...@googlegroups.com
Stephen Smith created an issue
 
Jenkins / Bug JENKINS-61807
"restrict where this project can be run" setting missing from job configuration
Issue Type: Bug Bug
Assignee: Unassigned
Components: core
Created: 2020-04-03 21:18
Environment: Jenkins version: 2.222.1
OS: Windows Server 2016
Browser: Google Chrome Version 80.0.3987.149
Plugs: a large list, not sure which are relevant
Labels: jenkins slave configuration windows
Priority: Blocker Blocker
Reporter: Stephen Smith

I have a master node, and I just added a slave node running as a service. A single machine runs jenkins, the master node, and the slave node. Both master and slave nodes have labels, and they are both connected and running. However, in attempting to set up a project to build on this slave node as per https://scmquest.com/jenkins-master-slave-setup-and-configuration-with-screenshots/ the "Restrict where this project can be run" option is missing from the "general" section. On a single branch project, I see the options "Discard old builds," "Do not allow concurrent builds ," and "Do not allow the pipeline to resume if the master restarts." But not the actual option i need: "Restrict where this project can be run." In a multibranch project, I don't see any additional options at all.

I'm at a loss of how to proceed from here. I can try using another plugin to restrict which nodes build which project as a workaround to this broken feature, but it would be nice if the feature just worked. Is there further troubleshooting I can perform at my end?

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

Stephen.Smith@bsci.com (JIRA)

unread,
Apr 3, 2020, 5:20:03 PM4/3/20
to jenkinsc...@googlegroups.com
Stephen Smith updated an issue
Change By: Stephen Smith
Environment:
Jenkins version: 2.222.1
OS: Windows Server 2016
Browser: Google Chrome Version 80.0.3987.149
Plugs Plugins : a large list, not sure which are relevant

o.v.nenashev@gmail.com (JIRA)

unread,
Apr 7, 2020, 6:58:03 PM4/7/20
to jenkinsc...@googlegroups.com
Oleg Nenashev commented on Bug JENKINS-61807
 
Re: "restrict where this project can be run" setting missing from job configuration

Stephen Smith I assume you are trying to set this option for Pipeline jobs.  "Restrict where this project can be run" exists only for Freestyle and other classic project types, for Pipeline you should use node(label) steps within your Pipeline definition. For Declarative Pipeline there is a similar "agent()" definition

https://jenkins.io/doc/book/pipeline/#scripted-pipeline-fundamentals

Stephen.Smith@bsci.com (JIRA)

unread,
Apr 7, 2020, 7:03:02 PM4/7/20
to jenkinsc...@googlegroups.com

Thank you, this is the route I ended up taking, and it works like a charm. This ended up being a problem of not being able to resolve old documentation from new functionality.

I'll close the issue.

Stephen.Smith@bsci.com (JIRA)

unread,
Apr 7, 2020, 7:04:04 PM4/7/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages