[JIRA] [port-allocator-plugin] (JENKINS-31449) Port Allocator Pipeline support

11 views
Skip to first unread message

pwolf@cloudbees.com (JIRA)

unread,
May 6, 2016, 5:14:02 PM5/6/16
to jenkinsc...@googlegroups.com
Patrick Wolf updated an issue
 
Jenkins / Improvement JENKINS-31449
Port Allocator Pipeline support
Change By: Patrick Wolf
Summary: workflow Port Allocator Pipeline  support
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

andresrc@cloudbees.com (JIRA)

unread,
May 9, 2016, 10:55:03 AM5/9/16
to jenkinsc...@googlegroups.com
Andres Rodriguez stopped work on Improvement JENKINS-31449
 
Change By: Andres Rodriguez
Status: In Progress Open

andresrc@cloudbees.com (JIRA)

unread,
May 9, 2016, 10:55:04 AM5/9/16
to jenkinsc...@googlegroups.com
Andres Rodriguez assigned an issue to Unassigned
Change By: Andres Rodriguez
Assignee: Andres Rodriguez

jens.mittag@gmail.com (JIRA)

unread,
Jul 22, 2016, 3:47:02 AM7/22/16
to jenkinsc...@googlegroups.com
Jens Mittag commented on Improvement JENKINS-31449
 
Re: Port Allocator Pipeline support

Hi together. I have worked on this issue and now you can use it inside of a pipeline. Have a look at my fork at https://github.com/m00re/port-allocator-plugin

So far, I only added support for Pooled Ports (from within the pipeline), but the required changes to support other port types should be marginal. The changes also make sure that you can mix between classic job descriptions and pipeline projects.

What is not yet working: surviving Jenkins restarts. For us/me, this is not a requirement, but I am willing to add support for this too if someone provides me the necessary pointers (I already tried, but as this was my first Jenkins plugin work, my knowledge of Jenkins plugin interna is very limited).

This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

jens.mittag@gmail.com (JIRA)

unread,
Jul 22, 2016, 4:21:03 AM7/22/16
to jenkinsc...@googlegroups.com
Jens Mittag edited a comment on Improvement JENKINS-31449
Hi together. I have worked on this issue and now you can use it inside of a pipeline. Have a look at my fork at https://github.com/m00re/port-allocator-plugin

Pipeline usage:
{{wrap([$class: 'PortAllocator', pool: 'POOLNAME']) {
}}}

So far, I only added support for Pooled Ports (from within the pipeline), but the required changes to support other port types should be marginal. The changes also make sure that you can mix between classic job descriptions and pipeline projects.

What is not yet working: surviving Jenkins restarts. For us/me, this is not a requirement, but I am willing to add support for this too if someone provides me the necessary pointers (I already tried, but as this was my first Jenkins plugin work, my knowledge of Jenkins plugin interna is very limited).

jens.mittag@gmail.com (JIRA)

unread,
Jul 22, 2016, 4:22:04 AM7/22/16
to jenkinsc...@googlegroups.com
Jens Mittag edited a comment on Improvement JENKINS-31449
Hi together. I have worked on this issue and now you can use it inside of a pipeline. Have a look at my fork at https://github.com/m00re/port-allocator-plugin

Usage:

wrap([$class: 'PortAllocator', pool: 'POOLNAME']) {
  // ... your steps here
}

So far, I only added support for Pooled Ports (from within the pipeline), but the required changes to support other port types should be marginal. The changes also make sure that you can mix between classic job descriptions and pipeline projects.

What is not yet working: surviving Jenkins restarts. For us/me, this is not a requirement, but I am willing to add support for this too if someone provides me the necessary pointers (I already tried, but as this was my first Jenkins plugin work, my knowledge of Jenkins plugin interna is very limited).

jens.mittag@gmail.com (JIRA)

unread,
Jul 22, 2016, 4:22:04 AM7/22/16
to jenkinsc...@googlegroups.com
Jens Mittag edited a comment on Improvement JENKINS-31449
Hi together. I have worked on this issue and now you can use it inside of a pipeline. Have a look at my fork at https://github.com/m00re/port-allocator-plugin

Pipeline usage Usage :
{{ wrap([$class: 'PortAllocator', pool: 'POOLNAME']) {
  // ... your steps here
} }}

So far, I only added support for Pooled Ports (from within the pipeline), but the required changes to support other port types should be marginal. The changes also make sure that you can mix between classic job descriptions and pipeline projects.

What is not yet working: surviving Jenkins restarts. For us/me, this is not a requirement, but I am willing to add support for this too if someone provides me the necessary pointers (I already tried, but as this was my first Jenkins plugin work, my knowledge of Jenkins plugin interna is very limited).

lebreton.gabriel@gmail.com (JIRA)

unread,
Nov 3, 2016, 10:19:02 AM11/3/16
to jenkinsc...@googlegroups.com

Eh, I'm trying to figure out how to use this too right now. I'm not even able to install your fork by myself. I've found this http://stackoverflow.com/questions/14950408/how-to-install-a-plugin-in-jenkins-manually but I couldn't manage to get an hpi out of your fork. (I should probably put more time at trying to setup mvn correctly.

And what do you mean by "What is not yet working: surviving Jenkins restarts."?

Any plans to merge this upstream?

jglick@cloudbees.com (JIRA)

unread,
Nov 8, 2016, 1:05:02 PM11/8/16
to jenkinsc...@googlegroups.com

if someone provides me the necessary pointers

As in my original comment, anything referred to by the Disposer needs to be Serializable. Otherwise in

wrap([$class: 'PortAllocator', pool: 'POOLNAME']) {
  sh 'make world' // runs five hours, restart Jenkins after two
}

the build will explode after the restart.

jbq@caraldi.com (JIRA)

unread,
Feb 20, 2017, 10:49:01 AM2/20/17
to jenkinsc...@googlegroups.com
jbq commented on Improvement JENKINS-31449

FYI implementation has been submitted as part of https://github.com/jenkinsci/port-allocator-plugin/pull/10

I just used it successfully in my project, any active maintainer could review it and integrate the changes?

james@howeswho.co.uk (JIRA)

unread,
Feb 28, 2019, 10:35:19 AM2/28/19
to jenkinsc...@googlegroups.com

Oliver Gondža Richard Mortimer

Are either of you able to sort this out?
I'm not sure if the PR needs updating e.g. for declarative support.

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

ogondza@gmail.com (JIRA)

unread,
Mar 4, 2019, 2:51:03 AM3/4/19
to jenkinsc...@googlegroups.com

There is a pull request proposed that needs more work. As the plugin appears generally unmaintained, it takes a volunteer to have a look at that..

aknight1969@gmail.com (JIRA)

unread,
Apr 2, 2020, 7:29:05 AM4/2/20
to jenkinsc...@googlegroups.com

Hello, has there been any more progress on this item?

This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages