How to load config from disc and POST to config.xml

2012-07-30 Thread altamash
How to load config from disc and POST to config.xml so that fields values 
in job config are updated


Re: Is there a way to update select in config.jelly from validation method

2012-07-30 Thread altamash
@Kohsuke Kawaguchi 

On Monday, July 30, 2012 9:23:48 AM UTC+5, altamash wrote:

 A validation method called from a validateButton should be able to update 
 a select in config.jelly. Does anyone have some idea?



Request for push rights for xfpanel-plugin

2012-07-30 Thread Joel Huttunen
Hi!

I have created several new options to Jenkins xfpanel-plugin, but I haven't 
get any answer from the plugin's current maintainer. Is there any active 
maintainer on this project?

I hope that I could get push access to xfpanel-plugin, so I could continue 
developing this plugin.

https://github.com/jenkinsci/xfpanel-plugin/pull/3


Best regards,
Joel Huttunen



Re: New CAS single sign-on plugin

2012-07-30 Thread Fabien Crespel
Hello,

It has been a bit more than a couple weeks now and I'd like to move forward 
with this. Considering this plugin is separate from the CAS1 plugin, I 
don't see an issue with releasing it now even if the CAS1 plugin isn't 
immediately marked as deprecated; for the moment a simple notice on its 
wiki page could invite users to try the new plugin.

Jenkins admins, are you fine with this and if so, could you please proceed 
with forking the code repo at 
https://github.com/fcrespel/jenkins-cas-plugin, giving me access to the 
forked one as well as setting up the CI job?

Thank you in advance,
Fabien.


Le jeudi 12 juillet 2012 22:49:48 UTC+2, Fabien Crespel a écrit :

 Thanks for your feedback :-)

 I merged your pull request and added 2 commits, to fix an extraneous / 
 character in the logout URL and a problem with SAML 1.1 when running under 
 the embedded Jetty from the HPI plugin. So you should be able to test the 
 plugin simply by running mvn hpi:run from the command line, and 
 configuring the CAS Security Realm at localhost:8080/configure. As a side 
 note for anyone else interested in testing, you can get a CAS server 
 working in no time by dropping the 
 cas-server-webapphttp://repo1.maven.org/maven2/org/jasig/cas/cas-server-webapp/3.4.12/cas-server-webapp-3.4.12.warinto
  a servlet container (e.g. Tomcat); the default config allows you to 
 login with matching pairs of username/password (e.g. test/test).

 Regarding the Jetty jsessionid hack, I haven't seen a need for it during 
 testing... it may no longer be an issue, or the way the new plugin works 
 simply doesn't trigger the problem..?
 As for the migration path from the CAS1 plugin, I would agree that simple 
 deprecation and prominent notices on the wiki are enough; there aren't many 
 options to configure so users could simply copy them.

 So if you think that this new plugin is ready for publication, could you 
 please give your green light here so that Jenkins admins can fork the repo, 
 create the CI job, etc. ?

 Thanks in advance,
 - Fabien.


 Le jeudi 12 juillet 2012 06:10:19 UTC+2, J. David Beutel a écrit :

 This looks like a big improvement!  The code looks clean and nicely 
 factored.

 I haven't worked on the old one for a couple years, and it's the only 
 Jenkins plugin I've done, so I don't know just by looking at the new one 
 whether there are any problems.  A code review by an experienced Jenkins 
 developer would still be good to get.  But, I'll try out the new one, when 
 I finally get time to update the Jenkins instance I'm using now.

 I didn't see the jsessionid hack for Jetty; is it not needed anymore?  It 
 might only be an issue with the CAS 1 client library, or some old version 
 of one of the other components.

 I don't know if there are any potential issues with using Spring Security 
 together with Acegi.  I guess it's OK, if it works, and they're in separate 
 packages.

 If it's accepted as an official plugin, I guess we'd just deprecate the 
 existing CAS1 plugin, with a link on the wiki to the new one.  I don't 
 think that an automatic migration of the configuration is necessary.  To 
 upgrade, can users just install the new one, manually configure it like the 
 old one, and uninstall the old one?  The users of the old one will dwindle 
 naturally.  You're welcome to look into automating the migration, but I 
 don't think it's worth the effort.

 The one change I'd make is to an example in a help text, to make the 
 usernames anonymous.  I'll send you a pull request with that.

 Cheers,
 11011011

 On Wednesday, July 11, 2012 10:03:16 AM UTC-10, Fabien Crespel wrote:

 Hello,

 I would like to contribute a new *CAS SecurityRealm plugin* to Jenkins. 
 Jasig 
 CAS http://www.jasig.org/cas (Central Authentication Service) is a 
 single sign-on (SSO) service implemented as a web application, and is 
 commonly used in universities and enterprises to secure applications 
 without having to login again and again.

 While looking for a way to login with CAS from Jenkins, I found the CAS1 
 plugin https://wiki.jenkins-ci.org/display/JENKINS/CAS1+Plugin by J. 
 David Beutel, but as the plugin name implies it only supports the legacy 
 CAS 1.0 protocol with custom extensions for role parsing.

 The plugin I have developped currently supports the following features:

- *CAS protocol version 1.0*, preserving role parsing features from 
the existing CAS1 plugin.
- *CAS protocol version 2.0*, with limited attribute support (custom 
protocol extensions need to be added to the CAS webapp).
- *SAML protocol version 1.1*, with full attribute support 
(groups/authorities, mail and full name sync).
- *Authentication renewal* (if enabled, user will have to input 
credentials even if a session already exists at CAS side).
- *Single sign-out* (if enabled, user will be logged out of Jenkins 
if he logs out of CAS or from other CAS-enabled applications).
- Fully *configurable*, 

RE: Verify downloaded jpi-files

2012-07-30 Thread Nord, James

 -Original Message-
 From: jenkinsci-dev@googlegroups.com [mailto:jenkinsci-
 d...@googlegroups.com] On Behalf Of Jesse Glick
 Sent: 27 July 2012 21:34
 To: jenkinsci-dev@googlegroups.com
 Subject: Re: Verify downloaded jpi-files

 On 07/27/2012 08:58 AM, Fredrik Orderud wrote:
  a simpler check against the in-built JAR/ZIP-file CRC-32 checksum
  would probably be good enough in most situations

 Even simpler: check if the file starts with 0x50 0x4b 0x03 0x04, the ZIP 
 magic. If
 not, it is some junk like an error page which should be treated like a 404 or
 other connection error.

 File a bug or open a pull request;
 hudson.model.UpdateCenter.UpdateCenterConfiguration.postValidate could
 easily do this, I think.

Isn’t this a security issue - I thought the update.json was signed to make it 
hard to prevent installing malicious components (but this just prevents the 
main Jenkins site update from being forged - which is no protection at all)
As it stands you don’t need to do anything complex just some dns hijacking of a 
mirror (or attack a mirror, or be an evil mirror) and then you can just replace 
whatever hpi you want (pick a popular one like git or svn) then you can serve 
up any arbitrary code that gets executed?

I guess the update.json needs to include the signatures of components as well 
for this to work (with 3rd party update sites).

To be honest I thought I recalled a discussion that this was already done :-(

/James




**
This message is confidential and intended only for the addressee. If you have 
received this message in error, please immediately notify the 
postmas...@nds.com and delete it from your system as well as any copies. The 
content of e-mails as well as traffic data may be monitored by NDS for 
employment and security purposes. To protect the environment please do not 
print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, 
United Kingdom. A company registered in England and Wales. Registered no. 
3080780. VAT no. GB 603 8808 40-00
**


RE: Verify downloaded jpi-files

2012-07-30 Thread Nord, James
the json that I retrieved from my commercially supported version contained zero 
hashes, the JSON I have just pulled from retrieved from the default update site 
(http://updates.jenkins-ci.org/update-center.json) did contain hashes.

So not a Jenkins issue (sorry for causing any confusion on the list)

Regards,

/James




From: jenkinsci-dev@googlegroups.com [mailto:jenkinsci-dev@googlegroups.com] On 
Behalf Of Stephen Connolly
Sent: 30 July 2012 10:06
To: jenkinsci-dev@googlegroups.com
Subject: Re: Verify downloaded jpi-files

The update metadata includes the signature of the metadata as well as the sha1 
sums of all the downloads, so that gives plenty of security though I agree 
somebody could use that injection trick to create a plugin with a matching sha1 
to the sha1 in the metadata... but I suspect that it would be a lot of 
effort... and keep in mind that if it is a popular plugin that will get updated 
more frequently so the effort will be wasted... and the non-popular plugins 
will be less likely to get uptake
On 30 July 2012 09:50, Nord, James jn...@nds.commailto:jn...@nds.com wrote:

 -Original Message-
 From: jenkinsci-dev@googlegroups.commailto:jenkinsci-dev@googlegroups.com 
 [mailto:jenkinsci-mailto:jenkinsci-
 d...@googlegroups.commailto:d...@googlegroups.com] On Behalf Of Jesse Glick
 Sent: 27 July 2012 21:34
 To: jenkinsci-dev@googlegroups.commailto:jenkinsci-dev@googlegroups.com
 Subject: Re: Verify downloaded jpi-files

 On 07/27/2012 08:58 AM, Fredrik Orderud wrote:
  a simpler check against the in-built JAR/ZIP-file CRC-32 checksum
  would probably be good enough in most situations

 Even simpler: check if the file starts with 0x50 0x4b 0x03 0x04, the ZIP 
 magic. If
 not, it is some junk like an error page which should be treated like a 404 or
 other connection error.

 File a bug or open a pull request;
 hudson.model.UpdateCenter.UpdateCenterConfiguration.postValidate could
 easily do this, I think.
Isn't this a security issue - I thought the update.json was signed to make it 
hard to prevent installing malicious components (but this just prevents the 
main Jenkins site update from being forged - which is no protection at all)
As it stands you don't need to do anything complex just some dns hijacking of a 
mirror (or attack a mirror, or be an evil mirror) and then you can just replace 
whatever hpi you want (pick a popular one like git or svn) then you can serve 
up any arbitrary code that gets executed?

I guess the update.json needs to include the signatures of components as well 
for this to work (with 3rd party update sites).

To be honest I thought I recalled a discussion that this was already done :-(

/James




**
This message is confidential and intended only for the addressee. If you have 
received this message in error, please immediately notify the 
postmas...@nds.commailto:postmas...@nds.com and delete it from your system as 
well as any copies. The content of e-mails as well as traffic data may be 
monitored by NDS for employment and security purposes. To protect the 
environment please do not print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, 
United Kingdom. A company registered in England and Wales. Registered no. 
3080780. VAT no. GB 603 8808 40-00
**



Pull Request Action

2012-07-30 Thread Richard Bywater
Hi

I've created a pull request against the Gradle plugin
(https://github.com/jenkinsci/gradle-plugin/pull/7) which allows one
to use the Gradle wrapper in a mixed Windows/Linux Master/Slave
set-up.

Just wondering what the best process is for getting a pull request
accepted? I have commit rights for plug-ins but don't think I should
be accepting my own pull requests :)

Thanks
Richard.


Re: plugin development - f:repeatable with specific action button

2012-07-30 Thread Michaël Pailloncy
I didn't found any solution.
Anyone have any idea?

2012/7/27 mpapo - Michaël Pailloncy mpapo@gmail.com


  Hi,
 I've a problematic concerning f:repeatable. I would like to add specifics
 action button on each element
 I've tried :

 f:repeatable name=items items=${it.items}
 var=item noAddButton=true minimum=0
 table
 f:entry title=title1
 f:textbox field=text1 /
 /f:entry
 f:entry title=title2
 f:textbox field=text2/
 /f:entry
 f:entry
 div align=left
 f:submit name=myButtonAction1
 value=myButtonAction1/
 f:submit name=myButtonAction2
 value=myButtonAction2/
/div
 div align=right
 input type=button
 value=${%Delete} class=repeatable-delete show-if-only
 style=margin-left: 1em; /
/div
 /f:entry
 f:entry
 div align=left
 input type=button
 value=${%Add} class=repeatable-add repeated-chunk repeated-chunk.last
 show-if-last /
/div
 /f:entry
 /table
 /f:repeatable

 Unfortunatly, it doen't work because I'm not able to associate the pressed
 button (myButtonAction1 or myButtonAction2) with the Item object on server
 side.

 I've tried to add a specific id per item like this :
  f:repeatable name=items items=${it.items}
 var=item noAddButton=true minimum=0
 table
 f:entry title=title1
 f:textbox field=text1 /
 /f:entry
 f:entry title=title2
 f:textbox field=text2/
 /f:entry
 f:invisibleEntry
 f:textbox field=item.id value=${
 item.id} /
 /f:invisibleEntry
 f:entry
 div align=left
 f:submit name=myButtonAction1_${
 item.id} value=myButtonAction1_${item.id}/
 f:submit name=myButtonAction2_${
 item.id} value=myButtonAction2_${item.id}/
/div
 div align=right
 input type=button
 value=${%Delete} class=repeatable-delete show-if-only
 style=margin-left: 1em; /
/div
 /f:entry
 f:entry
 div align=left
 input type=button
 value=${%Add} class=repeatable-add repeated-chunk repeated-chunk.last
 show-if-last /
/div
 /f:entry
 /table
 /f:repeatable

 But it doesn't work if you add 3 items for example, the part of HTML
 inserted is just copied from the second item. So, the second and the third
 element have the same id.
 I've tried to search for information and I found
 https://wiki.jenkins-ci.org/display/JENKINS/Unique+IDs+for+Repeatable+Contentbut
  it's not longer supported.
 I've also tried to search in a ten of plugins and does'nt find this kind
 of use of f:repeatable.

 Does anybody have any idea ?



Cannot commit to my forked plugin repo

2012-07-30 Thread Jiří Sviták
Hello all,
my plugin repository [1] was forked few weeks ago, but I am still unable to 
push changes to it due to this message:
ERROR: Permission to jenkinsci/jbpm-workflow-plugin.git denied to jsvitak.
fatal: The remote end hung up unexpectedly
IRC bot was broken that time as far as I know. Can somebody grant me push 
access? Thanks.

Best regards
Jiri Svitak

[1] https://github.com/jenkinsci/jbpm-workflow-plugin
 


Re: How to load config from disc and POST to config.xml

2012-07-30 Thread Linards Liepiņš
Maybe this one helps:  https://mail.google.com/mail/#inbox/138c34879d164772

2012/7/30 altamash altam...@veriqual.com

 How to load config from disc and POST to config.xml so that fields values
 in job config are updated




-- 
A.C. Linards L.


Re: How to load config from disc and POST to config.xml

2012-07-30 Thread Linards Liepiņš
Search for discussin with the title Reload Job config.xml programmatically
;) Imho it is somewhat to your direction...

2012/7/30 altamash altam...@veriqual.com

 How to load config from disc and POST to config.xml so that fields values
 in job config are updated




-- 
A.C. Linards L.


Re: Request for push rights for xfpanel-plugin

2012-07-30 Thread Joel Huttunen

Jonux

maanantai, 30. heinäkuuta 2012 11.01.35 UTC+3 nicolas de loof kirjoitti:

 what's your github ID ?

 2012/7/30 Joel Huttunen 

 Hi!

 I have created several new options to Jenkins xfpanel-plugin, but I 
 haven't get any answer from the plugin's current maintainer. Is there any 
 active maintainer on this project?

 I hope that I could get push access to xfpanel-plugin, so I could 
 continue developing this plugin.

 https://github.com/jenkinsci/xfpanel-plugin/pull/3


 Best regards,
 Joel Huttunen




Re: Request for push rights for xfpanel-plugin

2012-07-30 Thread Jonux

My github ID is Jonux

maanantai, 30. heinäkuuta 2012 11.01.35 UTC+3 nicolas de loof kirjoitti:

 what's your github ID ?

 2012/7/30 Joel Huttunen 

 Hi!

 I have created several new options to Jenkins xfpanel-plugin, but I 
 haven't get any answer from the plugin's current maintainer. Is there any 
 active maintainer on this project?

 I hope that I could get push access to xfpanel-plugin, so I could 
 continue developing this plugin.

 https://github.com/jenkinsci/xfpanel-plugin/pull/3


 Best regards,
 Joel Huttunen




Re: Request for push rights for xfpanel-plugin

2012-07-30 Thread nicolas de loof
done

2012/7/30 Jonux jonh...@gmail.com


 My github ID is Jonux


 maanantai, 30. heinäkuuta 2012 11.01.35 UTC+3 nicolas de loof kirjoitti:

 what's your github ID ?

 2012/7/30 Joel Huttunen

 Hi!


 I have created several new options to Jenkins xfpanel-plugin, but I
 haven't get any answer from the plugin's current maintainer. Is there any
 active maintainer on this project?

 I hope that I could get push access to xfpanel-plugin, so I could
 continue developing this plugin.

 https://github.com/jenkinsci/**xfpanel-plugin/pull/3https://github.com/jenkinsci/xfpanel-plugin/pull/3


 Best regards,
 Joel Huttunen





Re: Cannot commit to my forked plugin repo

2012-07-30 Thread nicolas de loof
committer team failed to get created as the repo has been cloned.

see https://github.com/jenkinsci/backend-ircbot/pull/4

2012/7/30 Jesse Farinacci jie...@gmail.com

 Greetings,

 On Mon, Jul 30, 2012 at 8:29 AM, Jiří Sviták svitak.j...@gmail.com
 wrote:
  my plugin repository [1] was forked few weeks ago, but I am still unable
 to
  push changes to it due to this message:
  ERROR: Permission to jenkinsci/jbpm-workflow-plugin.git denied to
 jsvitak.
  fatal: The remote end hung up unexpectedly
  IRC bot was broken that time as far as I know. Can somebody grant me push
  access? Thanks.
  [1] https://github.com/jenkinsci/jbpm-workflow-plugin

 Someone with internal access to the jenkins-admin bot will need to
 step up and do some maintenance (or verify GitHub API is bugged):

 09:05:44 +jieryn : jenkins-admin: make jsvitak a committer
 09:05:45 @ jenkins-a : Failed to create a repository: {message:Server
 Error}
 09:06:46 +jieryn : jenkins-admin: make jsvitak a committer to
 jbpm-workflow-plugin
 09:06:48 @ jenkins-a : Failed to create a repository: {message:Server
 Error}

 -Jesse

 --
 There are 10 types of people in this world, those
 that can read binary and those that can not.



Re: Cannot commit to my forked plugin repo

2012-07-30 Thread Jesse Farinacci
Greetings,

On Mon, Jul 30, 2012 at 9:30 AM, nicolas de loof
nicolas.del...@gmail.com wrote:
 committer team failed to get created as the repo has been cloned.
 see https://github.com/jenkinsci/backend-ircbot/pull/4

Thanks for that information! I did make jsvitak part of Everyone via
jenkins-admin, so jsvitak should have the ability to push changes now,
not needing to wait for ircbot merge  redeploy.

-Jesse

-- 
There are 10 types of people in this world, those
that can read binary and those that can not.


First Attempt to Build Jenkins Fails

2012-07-30 Thread Reginaldo Santos
My first attempt to build jenkins code has been failed.

I'm using maven 3.0.4 and jdk 1.6.0_32 on Windows XP and some tests of 
jenkins core are failling as you can notice below:

Results :

Failed tests:   
testRotation(hudson.util.io.ReopenableRotatingFileOutputStreamTest): 
expected:Content[4] but was:Content[2]
  testMarshal(jenkins.util.xstream.XStreamDOMTest): expected:foo[
  testWriteToDOM(jenkins.util.xstream.XStreamDOMTest): expected:foo[

Tests in error:
  testRemoting(hudson.util.ProcessTreeTest): Failed to open process 
error=87 at .\envvar-cmdline.cpp:53
  testIsSymlink(hudson.UtilTest): got: false, expected: is true

Tests run: 3061, Failures: 3, Errors: 2, Skipped: 0

[INFO] 

[INFO] Reactor Summary:
[INFO]
[INFO] Jenkins main module ... SUCCESS [1.094s]
[INFO] Jenkins CLI ... SUCCESS [2.109s]
[INFO] Jenkins core .. FAILURE [32.063s]
[INFO] Maven Integration plugin .. SKIPPED
[INFO] Jenkins war ... SKIPPED
[INFO] Test harness for Jenkins and plugins .. SKIPPED
[INFO] Jenkins UI sample plugin .. SKIPPED
[INFO] 

[INFO] BUILD FAILURE
[INFO] 

[INFO] Total time: 36.266s
[INFO] Finished at: Fri Jul 27 18:11:49 GMT-03:00 2012
[INFO] Final Memory: 31M/75M
[INFO] 

[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on 
project jenkins-core: There are te
st failures.
[ERROR]
[ERROR] Please refer to D:\WORK\jenkins\core\target\surefire-reports for 
the individual test results.
[ERROR] - [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, 
please read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the 
command

Does anyone know the reason of this problem and how can I solved?

Thanks in advance.


RE: First Attempt to Build Jenkins Fails

2012-07-30 Thread Alex Earl
It has been this way for some time..

Sent from my Windows Phone
--
From: Reginaldo Santos
Sent: 7/30/2012 7:37 AM
To: jenkinsci-dev@googlegroups.com
Subject: First Attempt to Build Jenkins Fails

My first attempt to build jenkins code has been failed.

I'm using maven 3.0.4 and jdk 1.6.0_32 on Windows XP and some tests of
jenkins core are failling as you can notice below:

Results :

Failed tests:
testRotation(hudson.util.io.ReopenableRotatingFileOutputStreamTest):
expected:Content[4] but was:Content[2]
  testMarshal(jenkins.util.xstream.XStreamDOMTest): expected:foo[
  testWriteToDOM(jenkins.util.xstream.XStreamDOMTest): expected:foo[

Tests in error:
  testRemoting(hudson.util.ProcessTreeTest): Failed to open process
error=87 at .\envvar-cmdline.cpp:53
  testIsSymlink(hudson.UtilTest): got: false, expected: is true

Tests run: 3061, Failures: 3, Errors: 2, Skipped: 0

[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] Jenkins main module ... SUCCESS [1.094s]
[INFO] Jenkins CLI ... SUCCESS [2.109s]
[INFO] Jenkins core .. FAILURE [32.063s]
[INFO] Maven Integration plugin .. SKIPPED
[INFO] Jenkins war ... SKIPPED
[INFO] Test harness for Jenkins and plugins .. SKIPPED
[INFO] Jenkins UI sample plugin .. SKIPPED
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 36.266s
[INFO] Finished at: Fri Jul 27 18:11:49 GMT-03:00 2012
[INFO] Final Memory: 31M/75M
[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on
project jenkins-core: There are te
st failures.
[ERROR]
[ERROR] Please refer to D:\WORK\jenkins\core\target\surefire-reports for
the individual test results.
[ERROR] - [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command

Does anyone know the reason of this problem and how can I solved?

Thanks in advance.


Re: Email ext

2012-07-30 Thread aviad lich
Ok, since I got no response I have found it on my own :)

using the 'it' variable it has a 'getAction' method which accepts a string
So if ones action fully qualified name is org.myplugin.HelloWorldAction
he can use the following in the .jelly file
it.getAction('org.myplugin.HelloWorldAction')


On Friday, July 27, 2012 1:00:56 AM UTC+3, aviad lich wrote:

 Hi All
 I have written a HelloWorld extension
 And i want to use the email-ext action to send me data from this 
 HelloWorld action

 I would like to understand better the entrance point of the jelly script
 And how can i use it to get my specific action

 Thanks 



Buildhive not doing a clean?

2012-07-30 Thread cjo
Hi all,

I have been correcting a few issues in the parameterized-trigger-plugin, 
and in one of these pull request I add a reference to the Envinject lib 
plugin.
when the build hive builds this there are no issues, 
https://buildhive.cloudbees.com/job/jenkinsci/job/parameterized-trigger-plugin/15/

However builds after this that do not have this reference in the pom fail, 
due to the class being left in the target directory.
https://buildhive.cloudbees.com/job/jenkinsci/job/parameterized-trigger-plugin/16/

Errors are: 
[ERROR] Undefined reference: 
org/jenkinsci/lib/envinject/service/EnvInjectActionRetriever in 
/scratch/hudson/workspace/jenkinsci/parameterized-trigger-plugin/target/classes/hudson/plugins/parameterizedtrigger/EnvInjectParameters.class
[ERROR] Undefined reference: 
org/jenkinsci/lib/envinject/service/EnvInjectActionRetriever.init()V in 
/scratch/hudson/workspace/jenkinsci/parameterized-trigger-plugin/target/classes/hudson/plugins/parameterizedtrigger/EnvInjectParameters.class
[ERROR] Undefined reference: 
org/jenkinsci/lib/envinject/service/EnvInjectActionRetriever.getEnvInjectAction(Lhudson/model/AbstractBuild;)Lhudson/model/Action;
 
in 
/scratch/hudson/workspace/jenkinsci/parameterized-trigger-plugin/target/classes/hudson/plugins/parameterizedtrigger/EnvInjectParameters.class

Same occured beweeen builds 13 and 14 where build 14 was a commit to the 
master.
https://buildhive.cloudbees.com/job/jenkinsci/job/parameterized-trigger-plugin/13/
https://buildhive.cloudbees.com/job/jenkinsci/job/parameterized-trigger-plugin/14/

From the log it does not look as if the clean stage is called at all, which 
in the case of building different pull requests I think should occur as 
each pull request should be merged with master only, not with other pull 
requests.


As the Buildhive is connected to github to provide feedback on pull 
requests, having these failures causes a lot of false results and comments 
added to pull/commits suggesting that things are broken when they are not.

Can someone have a look and set the correct maven goals.

Thanks
Chris


Re: Buildhive not doing a clean?

2012-07-30 Thread Jesse Glick

On 07/30/2012 01:24 PM, cjo wrote:

Can someone have a look and set the correct maven goals.


The admin for a BH job can override the default goal list ('install') to include 'clean'. But better (I think) is to do the clean as part of the Git update step, as it is 
more foolproof and potentially more efficient. I have started the process of updating BH Maven jobs to use the Clean workspace option of the Git plugin, and 
https://buildhive.cloudbees.com/job/jenkinsci/job/parameterized-trigger-plugin/18/ seems to have done better with that.


Can't download LTS release

2012-07-30 Thread Jos Backus
Forbidden 

You don't have permission to access /war-stable/latest/jenkins.war on this 
server.
--
Apache/2.2.14 (Ubuntu) Server at mirrors.jenkins-ci.org Port 80

(buggy Google Groups won't let me turn off italic) Maybe put the previous 
version back until the new version is ready? Just a thought.

Jos


Re: Buildhive not doing a clean?

2012-07-30 Thread cjo
Thanks, 


On Monday, July 30, 2012 7:23:09 PM UTC+1, Jesse Glick wrote:

 On 07/30/2012 01:24 PM, cjo wrote: 
  Can someone have a look and set the correct maven goals. 

 The admin for a BH job can override the default goal list ('install') to 
 include 'clean'. But better (I think) is to do the clean as part of the Git 
 update step, as it is 
 more foolproof and potentially more efficient. I have started the process 
 of updating BH Maven jobs to use the Clean workspace option of the Git 
 plugin, and 

 https://buildhive.cloudbees.com/job/jenkinsci/job/parameterized-trigger-plugin/18/seems
  to have done better with that. 



Re: Can't download LTS release

2012-07-30 Thread Vojtech Juranek
Looks like sym-link latest to 1.466.1 is missing. Until it's fixed, you can 
download it directly from
http://mirrors.jenkins-ci.org/war-stable/1.466.1/jenkins.war

On Monday 30 July 2012 11:51:15 Jos Backus wrote:
 Forbidden
 
 You don't have permission to access /war-stable/latest/jenkins.war on this
 server.
 --
 Apache/2.2.14 (Ubuntu) Server at mirrors.jenkins-ci.org Port 80
 
 (buggy Google Groups won't let me turn off italic) Maybe put the previous
 version back until the new version is ready? Just a thought.
 
 Jos


Re: How to load config from disc and POST to config.xml

2012-07-30 Thread altamash
Thanks HX_unbanned
*
*
*Actually what I want is to update a drop-down defined in config.jelly from 
descriptor of plugin. Is it possible.*

On Monday, July 30, 2012 11:46:03 AM UTC+5, altamash wrote:

 How to load config from disc and POST to config.xml so that fields values 
 in job config are updated



Making doFillXXXItems call programmatically

2012-07-30 Thread altamash
How could a select in config.jelly be updated programmatically by reusing 
doFillXXXItems method.
Thanks


Re: Can't download LTS release

2012-07-30 Thread R. Tyler Croy

On Tue, 31 Jul 2012, Vojtech Juranek wrote:

 Looks like sym-link latest to 1.466.1 is missing. Until it's fixed, you can 
 download it directly from
 http://mirrors.jenkins-ci.org/war-stable/1.466.1/jenkins.war
 

I believe KK fixed this yesterday (japan-time), the LTS release process still
has some manual parts that need to get automated ;)

- R. Tyler Croy
--
Code: http://github.com/rtyler
 Chatter: http://twitter.com/agentdero
  rty...@jabber.org


signature.asc
Description: Digital signature