Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311441 - Install Promoted Builds Simple and Copy Artifact Plugins
Summary: Install Promoted Builds Simple and Copy Artifact Plugins
Status: RESOLVED WONTFIX
Alias: None
Product: Community
Classification: Eclipse Foundation
Component: CI-Jenkins (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: CI Admin Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-03 17:21 EDT by Kenn Hussey CLA
Modified: 2013-09-26 09:24 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kenn Hussey CLA 2010-05-03 17:21:52 EDT
Would it be possible to install these plugins?

http://wiki.hudson-ci.org//display/HUDSON/Promoted+Builds+Simple+Plugin
http://wiki.hudson-ci.org//display/HUDSON/Copy+Artifact+Plugin

We're looking to simplify/automate "promotion" of builds from Hudson to download.eclipse.org.
Comment 1 David Carver CLA 2010-05-03 20:16:00 EDT
(In reply to comment #0)
> Would it be possible to install these plugins?
> 
> http://wiki.hudson-ci.org//display/HUDSON/Promoted+Builds+Simple+Plugin
> http://wiki.hudson-ci.org//display/HUDSON/Copy+Artifact+Plugin
> 
> We're looking to simplify/automate "promotion" of builds from Hudson to
> download.eclipse.org.

Copy Artifact Plugin needs at least Hudson 1.355, and we are on Hudson 1.354 which we just upgraded too.  The next scheduled upgrade is probably going to be after the RC candidates are done...So we are looking at the end of June or beginning of July.

We already have the more advanced Hudson Promoted Builds plugin installed, but it was currently disabled.  I've temporarily re-enabled it, and it should be available after the next restart.
Comment 2 Kenn Hussey CLA 2010-05-04 16:03:18 EDT
(In reply to comment #1)
> Copy Artifact Plugin needs at least Hudson 1.355, and we are on Hudson 1.354
> which we just upgraded too.  The next scheduled upgrade is probably going to be
> after the RC candidates are done...So we are looking at the end of June or
> beginning of July.

OK, I guess we'll have to come up with an alternative in the meantime (perhaps invoking a custom script or ant task).

> We already have the more advanced Hudson Promoted Builds plugin installed, but
> it was currently disabled.  I've temporarily re-enabled it, and it should be
> available after the next restart.

Thanks, I've taken a look and it seems like it will meet our needs. Does it support the notion of promotion "levels" (like the other one) or is it essentially binary? Can you comment on how it's more advanced, or tell me where I can find documentation on it?
Comment 3 David Carver CLA 2010-05-04 17:08:12 EDT
(In reply to comment #2)
> (In reply to comment #1)
> Thanks, I've taken a look and it seems like it will meet our needs. Does it
> support the notion of promotion "levels" (like the other one) or is it
> essentially binary? Can you comment on how it's more advanced, or tell me where
> I can find documentation on it?

The simple one was just a strict manual promotion process.  The full version allows you to set conditions automatically for different promotion levels.
Comment 4 Kenn Hussey CLA 2010-05-05 16:53:44 EDT
Dave, we can't see the "force promotion" button in the Hudson web UI. Do users of our job (buckminster-emf-core-2.6-nightly) need to be explicitly authorized to do this? If so, could you help make that happen?
Comment 5 David Carver CLA 2010-05-05 17:07:43 EDT
(In reply to comment #4)
> Dave, we can't see the "force promotion" button in the Hudson web UI. Do users
> of our job (buckminster-emf-core-2.6-nightly) need to be explicitly authorized
> to do this? If so, could you help make that happen?

To get to the Force Promotion button, go to the build number you want to promote, then click on the Promotion Status.  It will say the build has not been promoted.  Over on the right hand side of the screen will be a "Force Promotion" button.
Comment 6 Kenn Hussey CLA 2010-05-05 17:18:30 EDT
(In reply to comment #5)
> To get to the Force Promotion button, go to the build number you want to
> promote, then click on the Promotion Status.  It will say the build has not
> been promoted.  Over on the right hand side of the screen will be a "Force
> Promotion" button.

Yeah, I know that's where it's supposed to show up, but it doesn't appear for me. Do I need to be an administrator to see it? This makes me wonder: http://issues.hudson-ci.org/browse/HUDSON-3369 ...
Comment 7 David Carver CLA 2010-05-05 19:36:24 EDT
(In reply to comment #6)
> (In reply to comment #5)
> > To get to the Force Promotion button, go to the build number you want to
> > promote, then click on the Promotion Status.  It will say the build has not
> > been promoted.  Over on the right hand side of the screen will be a "Force
> > Promotion" button.
> 
> Yeah, I know that's where it's supposed to show up, but it doesn't appear for
> me. Do I need to be an administrator to see it? This makes me wonder:
> http://issues.hudson-ci.org/browse/HUDSON-3369 ...

Yes, unfortunately it looks like you do need to be adminstrator.  With that said, if you build and fix the plugin so that it doesn't require that, but looks at Job adminstrators instead, then you should be fine.   You might also be interested in bug 306854 which asks for a eclipse specific plugin for Hudson to promote builds to download.eclipse.org.
Comment 8 Michal Ruzicka CLA 2010-05-05 20:29:16 EDT
(In reply to comment #7)
...
> Yes, unfortunately it looks like you do need to be adminstrator.

I've tested it on our local instance of Hudson and found out that there is a new global privilege named "Promote" on the Hudson global configuration page in the "Project-based Matrix Authorization Strategy" table.
Granting this privilege to a user gives him the "Force Promotion" button.

Note that we run the latest version (1.7) of the plug-in on our local Hudson.

Could you please set the privilege for us and/or if needed upgrade the plug-in in case the feature is not present in the version installed at build.eclipse.org?
Comment 9 David Carver CLA 2010-05-06 09:06:02 EDT
Where in the configuration is this option?   I checked the Manage->System Configuration option and didn't see a global configuration for the Promoted Builds plugin.   We are using 1.7.
Comment 10 Antoine Toulmé CLA 2010-07-20 17:28:17 EDT
I also am hitting this problem. I want an automated way to go from a build to testing, with no scripts in the middle.
Comment 11 David Carver CLA 2010-07-20 17:47:47 EDT
(In reply to comment #10)
> I also am hitting this problem. I want an automated way to go from a build to
> testing, with no scripts in the middle.

If you are talking about committer level testing, you can always have Hudson Archive your generated update site.   The use the LastSuccessful or LastStable RESTful urls to get to it and use it.

You may also be interested in:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=306854

Which asks for an Eclipse specific plugin to allow publishing on eclipse.org infrastructure.
Comment 12 David Carver CLA 2010-07-21 08:54:10 EDT
Another option for copying artifacts to download.eclipse.org automatically after a build is the SCP Plugin.

http://wiki.hudson-ci.org//display/HUDSON/SCP+plugin

This only uses a global configuration, so the plugin for Hudson would need to be enhanced so that it would allow for per job configuration of the userid and signon.
Comment 13 Bouchet Stéphane CLA 2010-09-16 11:30:39 EDT
Hi,

there is no promote builds on the new hudson instance, but it was installed on the old hudson.

could it be possible to install it or we should wait for another system to promote builds ?
Comment 14 Denis Roy CLA 2013-09-26 09:24:20 EDT
HIPP allows the project-owned Hudson user to be part of the project group, thus allowing direct write into the project download space (and Git repos).  With HIPP these plugins are not needed.

http://wiki.eclipse.org/Hudson#HIPP