Re: New Plugin

2012-08-15 Thread nicolas de loof
repo created : https://github.com/jenkinsci/template-workflows-plugin CI job https://jenkins.ci.cloudbees.com/job/plugins/job/template-workflows 2012/8/15 shai bhur shai.b...@gmail.com Hi, Created the plugin repo: https://github.com/shaibe/template-workflows-jenkins-plugin Guess I can't

Re: New Plugin

2012-08-15 Thread shai bhur
Thanks for that Nicolas. When I'm trying to release my plugin in hangs on the maven release with this line: [INFO] Executing: cmd.exe /X /C git push ssh://shaib:@ github.com/jenkinsci/template-workflows-plugin.git master:master [INFO] Working directory:

Re: New Plugin

2012-08-15 Thread nicolas de loof
the command you pass is wrong. git remote add jenkins g...@github.com:jenkinsci/template-workflows-plugin.githttp://g...@github.com/jenkinsci/template-workflows-plugin.git then git push jenkins master or, if you don't care to keep your own repository, just git remote set-url origin

Re: moved to github the redmine plugin

2012-08-15 Thread nicolas de loof
https://github.com/jenkinsci/redmine-plugin 2012/8/15 gaooh silver.vine.ebi...@gmail.com Hi. I moved to github repository for redmine plugin https://github.com/gaooh/redmine-plugin Could you please fork it in the jenkinsci organization. My github Id is gaooh Thank you

Re: mailer split out

2012-08-15 Thread Jesse Glick
On 08/15/2012 09:31 AM, Slide wrote: I was thinking of making core have an interface that would be implemented by a plugin Probably not helpful, since then core still needs to provide _some_ implementation. The actual mail task can be moved wholesale to a plugin, but for historical reasons

Re: New Plugin

2012-08-15 Thread nicolas de loof
do you have credentials configured in your settings.xml for the distributionManagement server ? 2012/8/15 shai bhur shai.b...@gmail.com ok... now it worked and i was able to connect to github - thanks!!! BUT - the maven release failed with: [INFO]

Jelly views: Avoid displaying config section depending on user permissions

2012-08-15 Thread Nicky Ramone
Hi In a plugin I'm writing, I need to hide a textbox in the project configuration depending on the user permission. My @DataBoundConstructor is in a Notifier class. How can I retrieve the user permissions? Thanks. Cheers.

Re: rename permission ?

2012-08-15 Thread domi
actually I was thinking about the same a couple days ago to …I would go for the CONFIGURE and CREATE only, because the job already exists, and the user only wants to rename it - which at the end will create a new workspace directory on the slave. Domi On 13.08.2012, at 01:39, nicolas de loof

Re: Making new plugin - question

2012-08-15 Thread Slide
+1 On Wed, Aug 15, 2012 at 9:36 AM, domi d...@fortysix.ch wrote: why not integrating it into the plugin you already mentioned? The Exclusion Plugin even uses the same terminology already. …sorry, but I really think we should take more care on improving existing plugins then just adding new

Re: rename permission ?

2012-08-15 Thread nicolas de loof
done as https://github.com/jenkinsci/jenkins/commit/c14c7619c6157f7bb1006635483e44fe0964852b feel free to amend to only require CREATE, not DELETE 2012/8/15 domi d...@fortysix.ch actually I was thinking about the same a couple days ago to …I would go for the CONFIGURE and CREATE only, because

Re: New Plugin

2012-08-15 Thread shai bhur
Hey Nicolas, Finally... I was able to successfully run the maven release - THANKS a lot for your help! Few questions: 1) during the attempt to release the plugin i had to increase the plugin version and its currently at v:1.2, is there a way to delete tags 1.0, 1.1, 1.2 so i can re-release it

Re: Jelly views: Avoid displaying config section depending on user permissions

2012-08-15 Thread Jesse Glick
On 08/15/2012 11:53 AM, Nicky Ramone wrote: In a plugin I'm writing, I need to hide a textbox in the project configuration depending on the user permission. My @DataBoundConstructor is in a Notifier class. How can I retrieve the user permissions? Making your plugin behave in secured Jenkins

Re: Jelly views: Avoid displaying config section depending on user permissions

2012-08-15 Thread Nicky Ramone
Thanks , it's what I was looking for. However, I still don't understand the following snippet in the example found in your link: j:if test=${h.hasPermission(app.ADMINISTER)} ... /j:if I'm not clear on what 'app' is, although it looks like the Jenkins object. I've tried doing this: j:if

Re: Jelly views: Avoid displaying config section depending on user permissions

2012-08-15 Thread Jesse Glick
On 08/15/2012 03:25 PM, Nicky Ramone wrote: I'm not clear on what 'app' is, although it looks like the Jenkins object. Right. I have defined the getMyCustomPermission() method, but it doesn't work. Maybe the 'it' variable is not correctly parsed when being inside ${h...}? It ought to

Re: New Plugin

2012-08-15 Thread nicolas de loof
2012/8/15 shai bhur shai.b...@gmail.com Hey Nicolas, Finally... I was able to successfully run the maven release - THANKS a lot for your help! Few questions: 1) during the attempt to release the plugin i had to increase the plugin version and its currently at v:1.2, is there a way to

Re: Jelly views: Avoid displaying config section depending on user permissions

2012-08-15 Thread Nicky Ramone
This is the result of the output with the debugging lines: This is the result of the output with the debugging lines: it=hudson.model.FreeStyleProject@3d2a58[dummy2] it.myCustomPermission= I'm kinda lost. I thought 'it' was supposed to be an instance of MyCustomNotifier. So that's why it can't

Re: Jelly views: Avoid displaying config section depending on user permissions

2012-08-15 Thread Jesse Glick
On 08/15/2012 03:52 PM, Nicky Ramone wrote: it=hudson.model.FreeStyleProject@3d2a58[dummy2] I'm kinda lost. I thought 'it' was supposed to be an instance of MyCustomNotifier. If you are on the configure screen for a project, then 'it' would be the project. In general there _is_ no

Re: Jelly views: Avoid displaying config section depending on user permissions

2012-08-15 Thread Nicky Ramone
Cool. I'll try to do it with invokeStatic until I can find a neater way. Thanks very much for your help! Regards. On Wed, Aug 15, 2012 at 5:05 PM, Jesse Glick jgl...@cloudbees.com wrote: On 08/15/2012 03:52 PM, Nicky Ramone wrote: it=hudson.model.**FreeStyleProject@3d2a58[**dummy2] I'm

Re: Jelly views: Avoid displaying config section depending on user permissions

2012-08-15 Thread Stephen Connolly
On 15 August 2012 21:05, Jesse Glick jgl...@cloudbees.com wrote: On 08/15/2012 03:52 PM, Nicky Ramone wrote: it=hudson.model.**FreeStyleProject@3d2a58[**dummy2] I'm kinda lost. I thought 'it' was supposed to be an instance of MyCustomNotifier. If you are on the configure screen for a

Re: Jelly views: Avoid displaying config section depending on user permissions

2012-08-15 Thread Jesse Glick
On 08/15/2012 05:51 PM, Stephen Connolly wrote: ${instance} should be the instance of your notifier or null if not reconfiguring ${descriptor} should be the descriptor of your notifier, so just stick the getter in the DescriptorImpl and you should be fine, no need for j:invokeStatic Thanks