[JIRA] (JENKINS-53332) Allow picking a lockable resource from a node label

97 views
Skip to first unread message

Daniel.Pasto@gmail.com (JIRA)

unread,
Aug 29, 2018, 3:27:02 PM8/29/18
to jenkinsc...@googlegroups.com
D Pasto created an issue
 
Jenkins / Improvement JENKINS-53332
Allow picking a lockable resource from a node label
Issue Type: Improvement Improvement
Assignee: Unassigned
Components: lockable-resources-plugin
Created: 2018-08-29 19:26
Priority: Minor Minor
Reporter: D Pasto

This plugin has really helped in the scenario of testing client-server, or cloud applications where we want to lock a deployment across multiple test jobs, however we end up duplicating configuration between lockable resources and node.  A really useful improvement to lockable resources would be to choose the resource from online nodes in a pool represented by a node label.

 

For example, I currently configure:

  • node label "BACKEND_POOL" representing a pool of Jenkins nodes where I can deploy my applcation back end/services
  • lockable resources "SERVICE_POOL" with the identical list

Now I have a pipeline like pseudocode: 

 

stage("Build") {
    build()
}
RESOURCE = get lockable resource from SERVICE_POOL
stage ("Deploy") {
    node (RESOURCE) {
          deploy()
   }
stage ("Test1") {
   node ("Test") {
      Test1(server=RESOURCE)
   }
}
stage ("Test2") {
   node ("Test") {
       Test2 (server=RESOURCE)
   }
}

However, now I am maintaining the same list of resources in both the node label/pool and the lockable resource pool.  This leads to issues like nodes being locked for deployment even though they are offline, someone adding or deleting a resource from one pool but not the other, or someone taking a node offline in one place but not the other.

 

Lockable resources should be able to lock a resource from online nodes in a node pool, and keep it locked across multiple stages that require using that resource but not as a node.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

Aaron.Marasco@BIA-Boeing.com (JIRA)

unread,
Oct 26, 2018, 7:58:02 AM10/26/18
to jenkinsc...@googlegroups.com
Aaron Marasco assigned an issue to Unassigned
Change By: Aaron Marasco
Assignee: Aaron Marasco

Aaron.Marasco@BIA-Boeing.com (JIRA)

unread,
Oct 26, 2018, 7:58:02 AM10/26/18
to jenkinsc...@googlegroups.com
Aaron Marasco assigned an issue to Aaron Marasco

Aaron.Marasco@BIA-Boeing.com (JIRA)

unread,
Oct 26, 2018, 7:59:02 AM10/26/18
to jenkinsc...@googlegroups.com

Daniel.Pasto@gmail.com (JIRA)

unread,
Aug 5, 2019, 1:06:02 PM8/5/19
to jenkinsc...@googlegroups.com
D Pasto commented on Improvement JENKINS-53332

JENKINS-44141  is talking about more complex data than the simple one to many relationship whereas this is integration with node labels/resources.  There is nothing in that ticket that covers this, and they are not necessarily related but certainly could be implemented together.

Reply all
Reply to author
Forward
0 new messages