Re: Help Files - Custom Action

2012-08-17 Thread Michaël Pailloncy
Hi,

You must add your help files to src/main/webapps/ (directly in this
directory) instead of  src/main/resources/your/package/..

Michaël

2012/8/16 jwa jamie.as...@gmail.com

 Hi Folks,

 I'm writing a custom action, and I can't get help files to work! I've
 tried using the help attribute on the f:entry. It shows the help icon, but
 when clicked it doesn't show the details:

 f:entry title=Comments
 help=/plugin/PluginName/help-comments.html
 f:textarea id=idComments
 name=comments /
 /f:entry

 And then I have the following resource:

src/main/resources/com/me/myproject/plugin/ActionName/help-comments.html

 There doesn't seem to be a lot of documentation on this.

 Any help would be greatly appreciated.

 Regards,

 Jamie



Re: Help Files - Custom Action

2012-08-17 Thread jwa
Hi Michael,

Thanks for your help, just a note for future readers - the directory should 
not have a trailing s, i.e.  src/main/webapp.

I can see that this is uploaded to the server, and looks a lot better, from 
the root of Jenkins I now have:

   ./plugins/PluginName/help-comments.html

However, it's still not working, my help attribute URL looks like this:

/plugins/PluginName/help-comments.html

Also, I've tried to retrieve it via URL, and it's giving me a 404 (not sure 
if it's meant to retrieve the file):

   http://jenkins:8080/plugins/PluginName/help-comments.html

Any ideas?

Thanks again for your help.

Regards,

jwa

On Friday, 17 August 2012 08:29:47 UTC+1, mpapo - Michaël Pailloncy wrote:

 Hi,

 You must add your help files to src/main/webapps/ (directly in this 
 directory) instead of  src/main/resources/your/package/..

 Michaël

 2012/8/16 jwa jamie...@gmail.com javascript:

 Hi Folks,

 I'm writing a custom action, and I can't get help files to work! I've 
 tried using the help attribute on the f:entry. It shows the help icon, but 
 when clicked it doesn't show the details:

 f:entry title=Comments 
 help=/plugin/PluginName/help-comments.html
 f:textarea id=idComments 
 name=comments /
 /f:entry

 And then I have the following resource:


 src/main/resources/com/me/myproject/plugin/ActionName/help-comments.html

 There doesn't seem to be a lot of documentation on this.

 Any help would be greatly appreciated.

 Regards,

 Jamie




Re: Help Files - Custom Action

2012-08-17 Thread Stephen Connolly
On 16 August 2012 21:54, jwa jamie.as...@gmail.com wrote:

 Hi Folks,

 I'm writing a custom action, and I can't get help files to work! I've
 tried using the help attribute on the f:entry. It shows the help icon, but
 when clicked it doesn't show the details:

 f:entry title=Comments
 help=/plugin/PluginName/help-comments.html
 f:textarea id=idComments
 name=comments /
 /f:entry


change this to

  f:entry title=Comments field=comments
/f:textarea
  /f:entry

and it will auto-wire up and pull the help
from src/main/resources/com/me/myproject/plugin/ActionName/help-comments.html


 And then I have the following resource:

src/main/resources/com/me/myproject/plugin/ActionName/help-comments.html

 There doesn't seem to be a lot of documentation on this.

 Any help would be greatly appreciated.

 Regards,

 Jamie



Re: Alternate Update Center?

2012-08-17 Thread Hui Shen
Hi Guys, I meet the same issue.

Then how can I generate an update-center.json JSON file that can be 
interpreded by Jenkins.

We do have several plugins which will be used only inner our group, we do 
not like to deliver them to jenkins group.
As a solution, I think we should put the plugins somewhere, and update the 
update-center.json to point out these plugin, but jenkins always report 
a signature or digest error.
So my question is can any people head me how to write an update-center.json 
file that can be interpeded by jenkins.
Thanks very much.



在 2011年10月13日星期四UTC+8上午1时52分40秒,grayaii写道:

 We have a few Jenkins masters behind a firewall that I need to manage, and 
 I
 would like to know if it's possible to create our own Update Center within
 our firewall.  This will allow us to regulate all the plugins and Jenkins
 updates for all our Jenkin masters.

 Is there a way to do this?  I took a look at simpleupdatesite plugin, but
 the instructions are extremely vague.  Is there a way to create a custom
 Jenkins Update Center, and if so, how?

 Thanks!

 --
 View this message in context: 
 http://jenkins.361315.n4.nabble.com/Alternate-Update-Center-tp3898939p3898939.html
 Sent from the Jenkins users mailing list archive at Nabble.com.



Re: Confusion over build triggers

2012-08-17 Thread David Weintraub
I believe it's not even a plugin. One of the post build actions is to trigger 
another build when the other completes.

In other words, you take off the SCM trigger off of B and tell A to fire off B 
when it completes. You can also do this the other way around too. One of the 
build triggers is to start a build when another one completes. So, B to be 
triggered when A completes.

Another thing you can do is locks and latches (which is a plugin). Locks and 
Latches prevents one project from building when another one is running. For 
example, A uses a database for testing, and B uses the same database. If they 
both hit the database at the same time, the tests will fail. You can put A and 
B on the same Lock, so B won't start until A is finished and visa versa.

Will either of those work for you?

You can also try the Promotion plugin. This can promote a build when it passes 
certain tests. One of the things a promoted build can do is trigger another 
job. So, A could be promoted when it passes certain tests, and trigger B to 
start building.

On Aug 17, 2012, at 6:00 AM, mwpowellhtx mwpowell...@gmail.com wrote:

 Hello,
 
 In test and measurement verbiage, I think of a trigger as just that: see an 
 event, respond to that event.
 
 Say we have two jobs: A and B.
 
 A runs when it sees SCM change and builds that environment.
 
 I'd like to schedule B when A has successfully completed a build and build 
 the same environment but in a different configuration, possibly run some 
 tests, etc.
 
 I don't want to look for the most recent build as it could be stale: hours, 
 even days or weeks old. Only when A is actually running, and runs to 
 completion.
 
 How to explain exactly? Hard to do so unless you're familiar with the 
 pattern: trigger, particularly as I am accustomed to talking about it, i.e. 
 TM.
 
 Is there anything in the Jenkins plugin world that can do this? Or are we 
 stuck with a chained build setup in A?
 
 Thanks in advance.



Re: Alternate Update Center?

2012-08-17 Thread Stephen Connolly
[shameless plug]
http://docs.apps.cloudbees.com/docs/user-guide-bundle/ch14.html

note that link will be changing to

http://docs.apps.cloudbees.com/docs/user-guide-bundle/uc.html

CloudBees have an UpdateCenter plugin that allows Jenkins to serve it's own
UpdateCenter and allows easy configuring of that update center from other
Jenkins instances (i.e. it provides a plugin that you can download and
install into the jenkins instances that installs the required trust certs
for signed update center metadata)
[/shameless plug]

On 17 August 2012 12:02, Hui Shen hihuis...@gmail.com wrote:

 Hi Guys, I meet the same issue.

 Then how can I generate an update-center.json JSON file that can be
 interpreded by Jenkins.

 We do have several plugins which will be used only inner our group, we do
 not like to deliver them to jenkins group.
 As a solution, I think we should put the plugins somewhere, and update the
 update-center.json to point out these plugin, but jenkins always report
 a signature or digest error.
 So my question is can any people head me how to write an
 update-center.json file that can be interpeded by jenkins.
 Thanks very much.



 在 2011年10月13日星期四UTC+8上午1时52分40秒,grayaii写道:

 We have a few Jenkins masters behind a firewall that I need to manage,
 and I
 would like to know if it's possible to create our own Update Center within
 our firewall.  This will allow us to regulate all the plugins and Jenkins
 updates for all our Jenkin masters.

 Is there a way to do this?  I took a look at simpleupdatesite plugin,
 but
 the instructions are extremely vague.  Is there a way to create a custom
 Jenkins Update Center, and if so, how?

 Thanks!

 --
 View this message in context: http://jenkins.361315.n4.**
 nabble.com/Alternate-Update-**Center-tp3898939p3898939.htmlhttp://jenkins.361315.n4.nabble.com/Alternate-Update-Center-tp3898939p3898939.html
 Sent from the Jenkins users mailing list archive at Nabble.com.




Active Directory authentication error with 1.466.1 LTS

2012-08-17 Thread David Aldrich
Hi

I am running Jenkins 1.466.1 LTS with Active Directory authentication.  The 
authentication has been working correctly, but today I noticed the following 
type of error in:

Manage Jenkins  Configure System  Authorization  Project-based Matrix 
Authorization Strategy:

Failed to test the validity of the user name myname (show 
details)http://hudsonmaster.uktm.eu.nec.com:8080/configure
org.acegisecurity.BadCredentialsException: Failed to retrieve user information 
for myname; nested exception is javax.naming.NamingException: [LDAP: error 
code 1 - : LdapErr: DSID-0C090627, comment: In order to perform this 
operation a successful bind must be completed on the connection., data 0, vece

I clicked 'Test' underneath 'Active Directory' and it gave an error.  I then 
downgraded the Active Directory plugin from 1.29 to 1.19.  'Test' now succeeds 
but the 'Project-based Matrix Authorization Strategy' area still shows the 
above error against each user.

Any ideas how to fix this please?

Best regards

David



'This node is offline because it uses old slave.jar'

2012-08-17 Thread Lata Kopalle
I just updated Jenkins Master to 1.447.
All the nodes went offline.
Jenkins is installed as a windows service on these nodes.
I've stopped the service, and gave the jnlp command as follows:
javaws http://localhost:8080/computer/slavename/slave-agent.jnlp
Restarted the service.
But nothing happens.

found this but no resolution to it:
https://issues.jenkins-ci.org/browse/JENKINS-10985

does anyone know how to fix this? (ofcourse it's really urgent, :-) )


Re: Help Files - Custom Action

2012-08-17 Thread jwa
Thanks for the suggestion Stephen - but that doesn't seem to have done the 
trick. The help question mark logo has now disappeared.

Any other ideas?

Jamie.

On Thursday, 16 August 2012 21:54:55 UTC+1, jwa wrote:

 Hi Folks,

 I'm writing a custom action, and I can't get help files to work! I've 
 tried using the help attribute on the f:entry. It shows the help icon, but 
 when clicked it doesn't show the details:

 f:entry title=Comments 
 help=/plugin/PluginName/help-comments.html
 f:textarea id=idComments 
 name=comments /
 /f:entry

 And then I have the following resource:

src/main/resources/com/me/myproject/plugin/ActionName/help-comments.html

 There doesn't seem to be a lot of documentation on this.

 Any help would be greatly appreciated.

 Regards,

 Jamie



Re: Confusion over build triggers

2012-08-17 Thread Sami Tikka
As far as I understand, the standard triggering of other projects from 
post-build actions does what you want. 

Go into A's configuration: Add post-build action - Build other projects. Enter 
project name B, choose Trigger only if build succeeds.

If it doesn't, maybe you could be even more specific with your description?

-- Sami

mwpowellhtx mwpowell...@gmail.com kirjoitti 17.8.2012 kello 13.00:

 Hello,
 
 In test and measurement verbiage, I think of a trigger as just that: see an 
 event, respond to that event.
 
 Say we have two jobs: A and B.
 
 A runs when it sees SCM change and builds that environment.
 
 I'd like to schedule B when A has successfully completed a build and build 
 the same environment but in a different configuration, possibly run some 
 tests, etc.
 
 I don't want to look for the most recent build as it could be stale: hours, 
 even days or weeks old. Only when A is actually running, and runs to 
 completion.
 
 How to explain exactly? Hard to do so unless you're familiar with the 
 pattern: trigger, particularly as I am accustomed to talking about it, i.e. 
 TM.
 
 Is there anything in the Jenkins plugin world that can do this? Or are we 
 stuck with a chained build setup in A?
 
 Thanks in advance.



RE: Security Realm by Custom Script Plugin: Group Command Script

2012-08-17 Thread Bowling, Brad
Domi,

In your example below, do you need to create the admin and  superuser 
groups within Jenkins assigning various privileges to each?

-Brad

-Original Message-
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Bowling, Brad
Sent: Wednesday, August 15, 2012 1:22 PM
To: jenkinsci-users@googlegroups.com
Subject: RE: Security Realm by Custom Script Plugin: Group Command Script

Thanks Domi.

-Original Message-
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of domi
Sent: Wednesday, August 15, 2012 1:13 PM
To: jenkinsci-users@googlegroups.com
Subject: Re: Security Realm by Custom Script Plugin: Group Command Script

I also updated the documentation: 
https://wiki.jenkins-ci.org/display/JENKINS/Script+Security+Realm
Domi

On 15.08.2012, at 19:05, domi d...@fortysix.ch wrote:

 Hi Brad,
 you'r right with the purpose of the group command script, thats exactly what 
 it is for.
 The script can be any kind of shell script and should return 0 for any 
 successful execution.
 a simple script would be like this:
 
 #!/bin/sh
 if [ $U == domi ]; then
 echo admin,superuser
 fi
 
 Domi
 
 On 14.08.2012, at 18:47, Bowling, Brad brad.bowl...@bankofamerica.com 
 wrote:
 
 I am a system admin setting up Jenkins 1.477.  I have Security Realm by 
 custom script plugin installed so I can customize my user authentication.  
 My question concerns the Group Command script.  I am thinking that this 
 functionality provides a custom way to determine the group that a certain 
 user belongs to (I could be wrong).  I am wanting assign privileges based on 
 the group that the custom script determines they are in, i.e. admin, user or 
 Anonymous (guest).  Am I getting the purpose of the custom group command 
 script?  Would anyone happen to have such a script that they have 
 successfully implemented.  Any help will be greatly appreciated.
 
 Thanks,
 Brad
 
 --
 This message w/attachments (message) is intended solely for the use of the 
 intended recipient(s) and may contain information that is privileged, 
 confidential or proprietary. If you are not an intended recipient, please 
 notify the sender, and then please delete and destroy all copies and 
 attachments, and be advised that any review or dissemination of, or the 
 taking of any action in reliance on, the information contained in or 
 attached to this message is prohibited. 
 Unless specifically indicated, this message is not an offer to sell or a 
 solicitation of any investment products or other financial product or 
 service, an official confirmation of any transaction, or an official 
 statement of Sender. Subject to applicable law, Sender may intercept, 
 monitor, review and retain e-communications (EC) traveling through its 
 networks/systems and may produce any such EC to regulators, law enforcement, 
 in litigation and as required by law. 
 The laws of the country of each sender/recipient may impact the handling of 
 EC, and EC may be archived, supervised and produced in countries other than 
 the country in which you are located. This message cannot be guaranteed to 
 be secure or free of errors or viruses. 
 
 References to Sender are references to any subsidiary of Bank of America 
 Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
 Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
 Condition to Any Banking Service or Activity * Are Not Insured by Any 
 Federal Government Agency. Attachments that are part of this EC may have 
 additional important disclosures and disclaimers, which you should read. 
 This message is subject to terms available at the following link: 


 http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
 consent to the foregoing.
 

--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the 

Re: Build Promotion and Copy Artifact: current build is overwritten

2012-08-17 Thread bl0ck3r



  Another possibility is to copy the artifacts not to the build 
 directory itself, but to a directory outside of Jenkins (which is 
 pretty much what the Maven repository does for us). 


Well, I think what I am trying to achieve is simple: promote a build while 
another build is running on the same project. The artifact names are the 
same at each run, so the file names collide on the file system in the 
workspace during the promotion. Note that I clean up the workspace at the 
beginning of each new run of the job with rm -rf * because I want a clean 
slate when the job begins. Like you said, to solve the problem, I cannot 
copy the promoted build artifact into the current workspace, I need to copy 
it to an absolute path elsewhere. This is what I have done. It is an 
annoying workaround, I wish Jenkins promoted builds had their own workspace.

BTW I am not using Jenkins for a Java flow, so Maven does not apply to my 
case (and nor does any open source flow for that matter). I am happy that 
bare bones Jenkins is development flow agnostic and I hope it stays this 
way.

Cheers,
Martin



Re: Build Promotion and Copy Artifact: current build is overwritten

2012-08-17 Thread Sami Tikka
Some things you need to understand about the promoted builds:

The promotions are kind of like 2nd class citizens in the Jenkins job 
population: They are subservient to their parent job and they do not have their 
own workspace.

This means that you should not do anything in the promotion actions that uses 
the workspace. Or if you do, you have the responsibility of synchronizing the 
workspace access with the promotion and the parent job.

If your promotion actions need to use a workspace, it is often easier to just 
trigger a build of another job. This other job would be a normal job, which 
means it would have its own workspace and it would be safe to use it.

-- Sami

Martin d'Anjou martin.danjo...@gmail.com kirjoitti 16.8.2012 kello 17.45:

 Hi,
 
 When I promote an archived build while a build is running, the Copy
 Artifact plugin overwrites the running build artifacts with the
 archived ones. How should I configure the Build Promotion and the Copy
 Artifact to avoid this problem?
 
 Thanks,
 Martin



Re: Need help getting a sample scriptler groovy script to run on a slave.

2012-08-17 Thread Sami Tikka
You're not being too forthcoming with what you want to accomplish, so this may 
not help you much:

Like it says in the System Groovy Script build step, system Groovy script 
always executes on the master. The system Groovy actually executes inside of 
Jenkins, in the same vm, so system Groovy can do many of the same things as a 
plugin can.

If you want to run a Groovy script on the slave, you need to use the Execute 
Groovy Script build step and then, if the job is set to execute on a slave, 
Jenkins will really spawn the Groovy process in the slave.

-- Sami

Damon G damon.gabrie...@gmail.com kirjoitti 16.8.2012 kello 15.22:

 Hi There,
I've been playing with the groovy plugin and I'm able to run a few sample 
 groovy scripts on the master using the system groovy script option in the 
 job. However I can't seem to get the same code to execute on the slave by 
 executing a groovy script or by using the scriptler plugin. Even a simple 
 println statement doesn't work. For instance:
 
 import hudson.model.*
 prinln(hello!!!)
 
 results in:
 
 Execution of script [test.groovy] failed - Unable to serialize 
 org.jenkinsci.plugins.scriptler.util.GroovyScript@75f0ab39Build step 
 'Scriptler script' marked build as failure
 
 I get the same thing if I just do prinln(hello!!!) and leave out the import 
 statement.
 
 I have groovy installed on the slave but I must be missing something. When I 
 execute on the slave do I need something additional in my classpath? I didn't 
 seem to need anything explicit in my classspath to run this as a system 
 groovy script on the master.
 
 Does anyone have simple example config to share? I think I must be missing 
 something fairly basic here.
 
 Thanks!
 
 
 



Re: Building C# project with msbuild

2012-08-17 Thread Slide
Check out the msbuild plugin [1], it does a nice job of wrapping
things up for you.  There is also an NUnit plugin [2]

slide

1 - https://wiki.jenkins-ci.org/display/JENKINS/MSBuild+Plugin
2 - https://wiki.jenkins-ci.org/display/JENKINS/NUnit+Plugin

On Fri, Aug 17, 2012 at 3:42 PM, Kenneth kenneth.f.niel...@gmail.com wrote:
 Hi all,
 I am quete new to Jenkins.

 I have a simple C# solution with visual studio 2005, i.e. .NET 2.0
 a) project executable
 b) a library used
 c) a unit test of the library.

 1) My question is how do I setup Jenkins up to build the binary files?
 2) How can I run the unit tests from Jenkins, they are nuit based.

 Thanks for any help
 Kenneth





-- 
Website: http://earl-of-code.com


Jenkins CLI and HTTPS

2012-08-17 Thread Mani
Hi All,

I'm running Jenkins instance under https but I'm unable to connect to it 
with CLI.  I have two questions on this. I would appreciate if you could 
give me some pointers on this.

1. If Jenkins CLI has the support to connect to https?
2. If yes, please find the command I'm trying :  
http://pastebin.com/gDwjVypi 
Is that right?

Please let me know if you need more information.

Thanks in advance,
Mani


Re: Jenkins CLI and HTTPS

2012-08-17 Thread Richard Mortimer



On 18/08/2012 00:46, Mani wrote:

Hi All,

I'm running Jenkins instance under https but I'm unable to connect to it
with CLI.  I have two questions on this. I would appreciate if you could
give me some pointers on this.

1. If Jenkins CLI has the support to connect to https?

yes


2. If yes, please find the command I'm trying :
http://pastebin.com/gDwjVypi
Is that right?

It looks ok.


I think the clue to what is wrong comes from the first line of the error 
in your pastebin entry.


Caused by: java.io.IOException: HTTPS hostname wrong:  should be abc.com

It looks like the hostname that you are using does not match the https 
certificate that you are using.


Try the following google search
https://www.google.co.uk/?q=https+hostname+wrong+should+be

or this question in stackoverflow.
http://stackoverflow.com/questions/1802051/https-hostname-wrong-should-be-sub-domain-com-what-causes-this

Regards

Richard



Please let me know if you need more information.

Thanks in advance,
Mani


Re: Jenkins CLI and HTTPS

2012-08-17 Thread Mani
Thanks Richard for your reply. I created a certificate myself(self signed) 
to test this scenario. May be I did something wrong while creating the 
certificate. I will check this and get back to you if I have any questions.

Thanks,
Mani

On Friday, August 17, 2012 4:46:29 PM UTC-7, Mani wrote:

 Hi All,

 I'm running Jenkins instance under https but I'm unable to connect to it 
 with CLI.  I have two questions on this. I would appreciate if you could 
 give me some pointers on this.

 1. If Jenkins CLI has the support to connect to https?
 2. If yes, please find the command I'm trying :  
 http://pastebin.com/gDwjVypi 
 Is that right?

 Please let me know if you need more information.

 Thanks in advance,
 Mani