Re: Fill textbox default with java

2016-08-18 Thread Markus Axelsson
Great! Moving it into the 'DescriptorImp' sure did the trick!


On Thursday, August 18, 2016 at 3:49:19 PM UTC+2, Jesse Glick wrote:
>
> On Thu, Aug 18, 2016 at 9:14 AM, Robert Sandell  > wrote: 
> > add your helper method to the descriptor instead. 
>
> Thus `default="${descriptor.defaultCsvFileName}"` where 
> `DescriptorImpl` contains `public String getDefaultCsvFileName()`. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/83e23758-09ea-4b5e-b4a7-9014557f4d66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


new contributors to windows-azure-storage-plugin and azure-slave-plugin

2016-08-18 Thread 'Martin Sawicki' via Jenkins Developers
Hello
Could we please have the following two GitHub IDs added to the contributors 
list for the 
windows-azure-storage-plugin
 and azure-slave-plugin?
They will be working on enhancements for these two plugins.
- HuanhuanSunMSFT
- arroyc
- rca...@live.com

Thank you



-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CY4PR03MB2679930C16BEE918C0AB434DA8150%40CY4PR03MB2679.namprd03.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.


RE: new contributors to windows-azure-storage-plugin and azure-slave-plugin

2016-08-18 Thread 'Martin Sawicki' via Jenkins Developers
Thank you.

From: jenkinsci-dev@googlegroups.com [mailto:jenkinsci-dev@googlegroups.com] On 
Behalf Of Slide
Sent: Thursday, August 18, 2016 4:18 PM
To: jenkinsci-dev@googlegroups.com
Cc: Arun Chandrasekhar ; Huanhuan Sun 
; Arjun Roy Chaudhuri 
Subject: Re: new contributors to windows-azure-storage-plugin and 
azure-slave-plugin

Done, they may need to accept the invitation on Github to be able to push, etc.

On Thu, Aug 18, 2016 at 4:05 PM 'Martin Sawicki' via Jenkins Developers 
> wrote:
Hello
Could we please have the following two GitHub IDs added to the contributors 
list for the 
windows-azure-storage-plugin
 and azure-slave-plugin?
They will be working on enhancements for these two plugins.
- HuanhuanSunMSFT
- arroyc
- rca...@live.com

Thank you



--
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CY4PR03MB2679930C16BEE918C0AB434DA8150%40CY4PR03MB2679.namprd03.prod.outlook.com.
For more options, visit 
https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAPiUgVf47iG_3FBZfYCAFeBkGh2uad11Sic5GKnsFLv0VSh5Kw%40mail.gmail.com.
For more options, visit 
https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CY4PR03MB2679316D5027E63A91D75BB6A8150%40CY4PR03MB2679.namprd03.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.


Re: new contributors to windows-azure-storage-plugin and azure-slave-plugin

2016-08-18 Thread Slide
Done, they may need to accept the invitation on Github to be able to push,
etc.

On Thu, Aug 18, 2016 at 4:05 PM 'Martin Sawicki' via Jenkins Developers <
jenkinsci-dev@googlegroups.com> wrote:

> Hello
>
> Could we please have the following two GitHub IDs added to the
> contributors list for the windows-azure-storage-plugin
>  and
> azure-slave-plugin ?
>
> They will be working on enhancements for these two plugins.
>
> - HuanhuanSunMSFT
>
> - arroyc
>
> - rca...@live.com
>
>
>
> Thank you
>
>
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/CY4PR03MB2679930C16BEE918C0AB434DA8150%40CY4PR03MB2679.namprd03.prod.outlook.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAPiUgVf47iG_3FBZfYCAFeBkGh2uad11Sic5GKnsFLv0VSh5Kw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: unable to use javascript ScriptEngine in pipeline step implementation

2016-08-18 Thread Jesse Glick
On Thu, Aug 18, 2016 at 12:55 PM, Chris Price  wrote:
> ScriptEngineManager manager = new ScriptEngineManager();

Probably your `Thread.currentThread().getContextClassLoader()` is not
able to “see” the JRE’s engines for some reason a debugger might
illuminate. Try using the constructor taking an explicit
`ClassLoader`.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr1g501yGfAKNZzsNdZ4K8-MEU4Q6ykAt%3DPMnhsnY2i0ww%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: unable to use javascript ScriptEngine in pipeline step implementation

2016-08-18 Thread Chris Price


On Thursday, August 18, 2016 at 10:54:41 AM UTC-7, Jesse Glick wrote:
>
> On Thu, Aug 18, 2016 at 12:55 PM, Chris Price  > wrote: 
> > ScriptEngineManager manager = new ScriptEngineManager(); 
>
> Probably your `Thread.currentThread().getContextClassLoader()` is not 
> able to “see” the JRE’s engines for some reason a debugger might 
> illuminate. Try using the constructor taking an explicit 
> `ClassLoader`. 
>

Is there any specific classloader you'd recommend for use in a plugin 
context?  Also, any idea why it would work OK in the tests?  Seems like 
there is an implication that the classloader will be swapped out by Jenkins 
when running inside the live server, so I'm not quite sure how to get a 
reference to a better classloader in that context?
 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/ea077b20-4aca-4bd5-889b-4f03473da6e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Documentation to understand Jenkins' jelly-isms

2016-08-18 Thread James Withers
Thanks, It does look a lot cleaner.

However, groovy or jelly still leaves me in the same place.

I've found that I can review lib/form, lib/layout etc inside of the 
jenkins-core jar and read what would be the documentation. I guess that'll 
have to do.

Cheers

On Wednesday, 17 August 2016 17:23:55 UTC+1, slide wrote:
>
> I would highly recommend not using jelly at all. You can use Groovy to 
> create your views and it is MUCH less painful and MUCH less error prone. 
> You can look for Groovy views in the Jenkins source by looking on Github, 
> typing t and then typing .groovy (some other groovy files are there, but 
> many groovy view examples can be found there). 
>
> On Wed, Aug 17, 2016 at 9:19 AM James Withers  > wrote:
>
>> Hi,
>>
>> I am beginning to develop a plugin for Jenkins and am struggling with 
>> Jelly - I would like to review the documentation described here 
>> https://wiki.jenkins-ci.org/display/JENKINS/Jelly+form+controls but when 
>> I run "mvn site" it does not produce the 
>> "hudson/main/core/target/site/jelly-taglib-ref.html" page however the 
>> command completes succesfully.
>>
>> Can anyone provide this to me or link me to another place online where it 
>> is stored? Or if you could help me generate it myself?
>>
>> Maybe I'm just doing something wrong.
>>
>> A search through google also finds that previous version of this page 
>> that have been uploaded to the web are now defunct.
>>
>> Thanks in advance for any help,
>>
>> Cheers,
>> James
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to jenkinsci-de...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-dev/a8ba2538-6cdb-4cd3-914c-e77d796de1dc%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/72709936-5123-4ea6-84bb-30f299b97733%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Plugin] Exception while saving configuration for custom plugin

2016-08-18 Thread Rupp, Moritz (Software Services)
Hello Jenkins developers,

 

I’m currently developing a Jenkins plugin for deploying artifacts to a
proprietary software by Hewlett Packard Enterprise. Therefore, I’m using the
software’s Java API.

The initial configuration of the job and the post-build step are working
fine. The deployment works as well.

 

But when I open the job’s configuration again, I’m receiving an exception
once I click on apply or save. I’m receiving a NoClassDefFoundError for a
proprietary class of the API.

 

My question is: why is it even using the API on saving the configuration?
What exactly happens when I click save? I only use the API in my perform
method.

 

Here is the exception:

javax.servlet.ServletException: java.lang.NoClassDefFoundError:
com/hp/ucmdb/protocol/schema/Protocol

at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796)

at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)

at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:249)

at
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53
)

at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)

at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)

at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)

at org.kohsuke.stapler.Stapler.service(Stapler.java:238)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

at
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)

at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler
.java:1669)

at
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)

at
hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:123)

   at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler
.java:1652)

at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)

at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler
.java:1652)

at
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84
)

at
hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)

at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)

at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler
.java:1652)

at
org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter
.java:49)

at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler
.java:1652)

at
hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81
)

at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler
.java:1652)

at
org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadName
Filter.java:30)

at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler
.java:1652)

at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)

at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143
)

at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:553)

at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java
:223)

at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java
:1127)

at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)

at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:
185)

at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:
1061)

at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141
)

at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHand
lerCollection.java:215)

at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.
java:110)

at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:9
7)

at org.eclipse.jetty.server.Server.handle(Server.java:499)

at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)

at
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)

at
org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)

at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:
635)

at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:5
55)

at java.lang.Thread.run(Thread.java:745)

Caused by: java.lang.NoClassDefFoundError:
com/hp/ucmdb/protocol/schema/Protocol

at java.lang.Class.getDeclaredMethods0(Native Method)

at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)

at java.lang.Class.getDeclaredMethod(Class.java:2128)

at
com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.ge
tMethod(SerializationMethodInvoker.java:165)

at
com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.ge

Re: Can't upload the hpi at end of build because repository is down

2016-08-18 Thread Tal Yanai
Effective POMs, after inheritance, interpolation, and profiles are applied:















http://maven.apache.org/POM/4.0.0; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/mav
  4.0.0
  
org.jenkins-ci.plugins
plugin
2.6
  
  org.jenkins-ci.plugins
  vmanager-plugin
  2.2-SNAPSHOT
  hpi
  Cadence vManager Plugin for Jenkins
  Integrates Jenkins to Cadence vManager
  
http://wiki.jenkins-ci.org/display/JENKINS/Cadence+vManager+Plugin
  2016
  
Cadence
www.cadence.com
  
  

  MIT License
  http://opensource.org/licenses/MIT

  
  

  tyanai
  Tal Yanai
  tya...@cadence.com

  
  

scm:git:git://github.com/jenkinsci/vmanager-plugin.git

scm:git:g...@github.com:jenkinsci/vmanager-plugin.git
http://github.com/jenkinsci/vmanager-plugin
  
  

  maven.jenkins-ci.org
  https://repo.jenkins-ci.org/releases/


  maven.jenkins-ci.org
  https://repo.jenkins-ci.org/snapshots/

  
  

1C
true
1.117
7
7
2.6
1.625.3

true
/x64
win-x64/node.exe
4.0.0

2.13.1
UTF-8
UTF-8

UTF-8
true



true
1.7.7
1.17
4
  
  

  
com.google.code.findbugs
annotations
3.0.0
  
  
net.jcip
jcip-annotations
1.0
  
  
org.jenkins-ci.main
jenkins-core
1.625.3
  
  
org.jenkins-ci.main
jenkins-war
1.625.3
war-for-test
  
  
org.jenkins-ci.main
jenkins-war
1.625.3
war
test
  
  
org.jenkins-ci.main
jenkins-test-harness
2.6
  
  
org.jenkins-ci
test-annotations
1.2
  
  
junit
junit
4.12
  
  
javax.servlet
javax.servlet-api
3.1.0
  
  
javax.servlet
servlet-api
2.4
  
  
org.codehaus.mojo
animal-sniffer-annotations
1.14
  
  
org.codehaus.mojo.signature
java15
1.0
signature
  
  
org.codehaus.mojo.signature
java16
1.1
signature
  
  
org.codehaus.mojo.signature
java17
1.0
signature
  
  
commons-logging
commons-logging
1.1.3
provided
  
  
log4j
log4j
1.2.17
provided
  

  
  

  org.jenkins-ci.plugins
  dashboard-view
  2.9.10
  compile


  com.google.code.findbugs
  annotations
  3.0.0
  provided
  true


  net.jcip
  jcip-annotations
  1.0
  provided
  true


  org.codehaus.mojo
  animal-sniffer-annotations
  1.14
  provided
  true


  javax.servlet
  javax.servlet-api
  3.1.0
  test


  javax.servlet
  servlet-api
  2.4
  provided


  org.jenkins-ci.main
  jenkins-core
  1.625.3
  provided


  org.jenkins-ci.main
  jenkins-war
  1.625.3
  war-for-test
  test


  org.jenkins-ci.main
  jenkins-war
  1.625.3
  war
  test


  org.jenkins-ci.main
  jenkins-test-harness
  2.6
  test
  

  junit-dep
  junit

  


  org.jenkins-ci
  test-annotations
  1.2
  test


  junit
  junit
  4.12
  test


  org.slf4j
  slf4j-api
  1.7.7
  compile
  true


  org.slf4j
  log4j-over-slf4j
  1.7.7
  test


  org.slf4j
  jcl-over-slf4j
  1.7.7
  test


  org.slf4j
  slf4j-jdk14
  1.7.7
  test

  
  

  repo.jenkins-ci.org
  http://repo.jenkins-ci.org/public/


  
false
  
  central
  Central Repository
  http://repo.maven.apache.org/maven2

  
  

  repo.jenkins-ci.org
  http://repo.jenkins-ci.org/public/


  
never
  
  
false
  
  central
  Central Repository
  http://repo.maven.apache.org/maven2

  
  

d:\work\dev\vmanager-plugin\src\main\java

d:\work\dev\vmanager-plugin\src\main\scripts

d:\work\dev\vmanager-plugin\src\test\java

d:\work\dev\vmanager-plugin\target\classes

d:\work\dev\vmanager-plugin\target\test-classes

  

d:\work\dev\vmanager-plugin\src\main\resources
  


  

d:\work\dev\vmanager-plugin\src\test\resources
  

d:\work\dev\vmanager-plugin\target
vmanager-plugin

  

  maven-antrun-plugin
  1.3


   

Re: Wiki's Plugin Information section not showing new release of plugin

2016-08-18 Thread Lakshmi Narasimhan Vaikuntam
Thanks. That works and I see the new version in the plugin wiki page.

On Thursday, August 18, 2016 at 1:57:03 PM UTC+5:30, Daniel Beck wrote:
>
> We aggressively cache wiki pages, otherwise Confluence would be too slow. 
> If you add a query parameter, you circumvent the cache, and there it shows 
> the correct version: 
>
> https://wiki.jenkins-ci.org/display/JENKINS/Team+Concert+Plugin?nocache 
>
> > On 18.08.2016, at 09:48, Lakshmi Narasimhan Vaikuntam <
> vaikuntam@gmail.com > wrote: 
> > 
> > 
> > I released a new version of Team Concert Plugin (v 1.2.0.1) on 16/08. 
> The update has started showing up in Jenkins' update center. 
> > But the wiki's Plugin Information section still shows 1.2.0.0. 
> > Is there anything additional that needs to done to get the version 
> updated? Usually it gets updated within a day. 
> > 
> > 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "Jenkins Developers" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to jenkinsci-de...@googlegroups.com . 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-dev/86bf9861-65a1-4182-b770-1c7fa3cc020f%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/22c33db5-1dda-43aa-8af0-a06ae716d44d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: getTarget() in Pipeline

2016-08-18 Thread Markus Axelsson
Sorry for the lousy context. But you where right, implementing 
'StaplerProxy' did the trick!


On Wednesday, August 17, 2016 at 4:45:48 PM UTC+2, Jesse Glick wrote:
>
> On Wed, Aug 17, 2016 at 1:58 AM, Markus Axelsson 
>  wrote: 
> > public Object getTarget() { 
>
> Is this in fact implementing `StaplerProxy`? (An `@Override` is wise.) 
>
> > In a freestyle project in the original plot (my plugin at the moment 
> only 
> > supports Pipeline) this works as expected but not in my pipeline 
> projects. 
> > 
> > Is the getTarget() somehow Freestyle-only 
>
> No. Without some more context it is hard to help. What kind of view 
> are you quoting above? Is it being displayed somehow? Is the `Action` 
> even attached to something? Like a `Run`, or a `Job`? 
>
> If you have a minimal test case to reproduce it would be helpful. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/ada4d38b-15fb-4e80-874d-164c3aa01438%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Wiki's Plugin Information section not showing new release of plugin

2016-08-18 Thread Lakshmi Narasimhan Vaikuntam

I released a new version of Team Concert Plugin (v 1.2.0.1) on 16/08. The 
update has started showing up in Jenkins' update center. 
But the wiki's Plugin Information section still shows 1.2.0.0.
Is there anything additional that needs to done to get the version updated? 
Usually it gets updated within a day.


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/86bf9861-65a1-4182-b770-1c7fa3cc020f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Wiki's Plugin Information section not showing new release of plugin

2016-08-18 Thread Daniel Beck
We aggressively cache wiki pages, otherwise Confluence would be too slow. If 
you add a query parameter, you circumvent the cache, and there it shows the 
correct version:

https://wiki.jenkins-ci.org/display/JENKINS/Team+Concert+Plugin?nocache

> On 18.08.2016, at 09:48, Lakshmi Narasimhan Vaikuntam 
>  wrote:
> 
> 
> I released a new version of Team Concert Plugin (v 1.2.0.1) on 16/08. The 
> update has started showing up in Jenkins' update center. 
> But the wiki's Plugin Information section still shows 1.2.0.0.
> Is there anything additional that needs to done to get the version updated? 
> Usually it gets updated within a day.
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-dev/86bf9861-65a1-4182-b770-1c7fa3cc020f%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/AA0A3428-E8DE-4E75-8DB9-DAB4FBACBEF4%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Interested in building your plugin on ci.jenkins.io?

2016-08-18 Thread Robert Sandell
Well, the default setting in the new plugin parent pom is a
test-parallelisation of 1C and IIRC the default max heap the the JVM runs
on is 512MB. My tests are a bit more hungry for heap than that so I've set
the max heap to 1GB per fork (I used to have it on 2GB but our current
build slaves couldn't manage that so I needed to tweak my tests a bit) Far
from all my tests needs that much but I don't have more fine grained
control than that that I know of :)

So a Standard_D3 is well covered for the tests with 4 cores and 14GB of RAM
But you wouldn't be able to run more than three docker containers per VM
before there is a slight risk that some of my tests will fail in a perfect
storm, since the JVM doesn't care about what resource restrictions you put
on the containers, it only reads the host values unfortunately.
But you should be able to have 6 or 7 containers per VM for those plugins
that have the default settings. And I could set my fork count to 0.5C but
then, I guess, my tests would take over an hour to run :O

And I doubt that I care about the CPU and disk performance at all (within
reason), it could be spinning rust and I don't think I would complain :)
But I don't see any alternatives for slower CPU without SSD but lots of RAM
on the page you provided.

/B

On Wed, Aug 17, 2016 at 9:47 PM, R. Tyler Croy  wrote:

> (replies inline)
>
> On Wed, 17 Aug 2016, Robert Sandell wrote:
>
> > What are the specs for the slaves that the plugin builds will be running
> > on? I'm asking because I had to do some tweaking of my surefire
> parameters
> > to make them fit into the slaves (sorry agents) the community plugins are
> > currently building on. So an increase in available cores for example
> might
> > make my build take all available memory ;)
>
>
> The VM sizes that we have access to, generally, are listed here:
>  virtual-machines-windows-sizes/>
>
> I have also done some cost-analysis and summarized some machine sizes that
> we
> will likely be using in this document:
> 
>
> I have priced out running a Docker Swarm cluster for full-time rapid use
> builds, and those would be Standard D3 machines.
>
> My /hope/ is that not every single job in ci.jenkins.io attempts to use
> the
> most expensive VM sizes, but I'm interested in what you all think would be
> the
> ideal sizing to meet the plugin build/test use-cases.
>
>
> Th time-to-bootstrap comparision between Docker Swarm agents and Azure VMs
> for
> testing is about 30s vs. 2-5minutes respectively, so consider that for what
> plugin builds would need too.
>
>
> I would appreciate any thoughts/suggestions :)
>
>
> Cheers
> - R. Tyler Croy
>
> --
>  Code: 
>   Chatter: 
>
>   % gpg --keyserver keys.gnupg.net --recv-key 1426C7DC3F51E16F
> --
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-dev/20160817194739.GK22427%40blackberry.coupleofllamas.com
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Robert Sandell
*Software Engineer*
*CloudBees Inc.*

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CALzHZS3vVi%3D-UgVXAXBNG9HBoApO_Ebh_rbuoqm8bX-F9XphGw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Documentation to understand Jenkins' jelly-isms

2016-08-18 Thread Robert Sandell
The generated documentation is linked to in the "Additional references"
section on the wiki
https://wiki.jenkins-ci.org/display/JENKINS/Extend+Jenkins but the "taglibs
defined in Jenkins core" link is broken, maybe something got lost when we
migrated to jenkins.io ?

/B

On Thu, Aug 18, 2016 at 10:12 AM, James Withers 
wrote:

> Thanks, It does look a lot cleaner.
>
> However, groovy or jelly still leaves me in the same place.
>
> I've found that I can review lib/form, lib/layout etc inside of the
> jenkins-core jar and read what would be the documentation. I guess that'll
> have to do.
>
> Cheers
>
> On Wednesday, 17 August 2016 17:23:55 UTC+1, slide wrote:
>>
>> I would highly recommend not using jelly at all. You can use Groovy to
>> create your views and it is MUCH less painful and MUCH less error prone.
>> You can look for Groovy views in the Jenkins source by looking on Github,
>> typing t and then typing .groovy (some other groovy files are there, but
>> many groovy view examples can be found there).
>>
>> On Wed, Aug 17, 2016 at 9:19 AM James Withers 
>> wrote:
>>
>>> Hi,
>>>
>>> I am beginning to develop a plugin for Jenkins and am struggling with
>>> Jelly - I would like to review the documentation described here
>>> https://wiki.jenkins-ci.org/display/JENKINS/Jelly+form+controls but
>>> when I run "mvn site" it does not produce the 
>>> "hudson/main/core/target/site/jelly-taglib-ref.html"
>>> page however the command completes succesfully.
>>>
>>> Can anyone provide this to me or link me to another place online where
>>> it is stored? Or if you could help me generate it myself?
>>>
>>> Maybe I'm just doing something wrong.
>>>
>>> A search through google also finds that previous version of this page
>>> that have been uploaded to the web are now defunct.
>>>
>>> Thanks in advance for any help,
>>>
>>> Cheers,
>>> James
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Jenkins Developers" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to jenkinsci-de...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/jenkinsci-dev/a8ba2538-6cdb-4cd3-914c-e77d796de1dc%40goo
>>> glegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-dev/72709936-5123-4ea6-84bb-30f299b97733%
> 40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Robert Sandell
*Software Engineer*
*CloudBees Inc.*

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CALzHZS2D66Xyk0XhHF6-7aCeNyOGQwhVi_-sbTd-B%3DfKsahbQA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Documentation to understand Jenkins' jelly-isms

2016-08-18 Thread Stephen Connolly
Actually I favour jelly over groovy because it is much closer to the
html... However I am an old hand and had experience with eg cocoon as a
html rendering framework before I started with jelly back in 2006

I am not sure what the recommendations are going to be as we tradition to
the blue ocean framework for UI though, so perhaps it is not something to
stress too much over as you will likely have to adapt for blue ocean in the
next 12 months or so anyway... Pick up whatever view rendering technology
is easiest for you to learn and go with that!

On Wednesday 17 August 2016, Slide  wrote:

> I would highly recommend not using jelly at all. You can use Groovy to
> create your views and it is MUCH less painful and MUCH less error prone.
> You can look for Groovy views in the Jenkins source by looking on Github,
> typing t and then typing .groovy (some other groovy files are there, but
> many groovy view examples can be found there).
>
> On Wed, Aug 17, 2016 at 9:19 AM James Withers  > wrote:
>
>> Hi,
>>
>> I am beginning to develop a plugin for Jenkins and am struggling with
>> Jelly - I would like to review the documentation described here
>> https://wiki.jenkins-ci.org/display/JENKINS/Jelly+form+controls but when
>> I run "mvn site" it does not produce the 
>> "hudson/main/core/target/site/jelly-taglib-ref.html"
>> page however the command completes succesfully.
>>
>> Can anyone provide this to me or link me to another place online where it
>> is stored? Or if you could help me generate it myself?
>>
>> Maybe I'm just doing something wrong.
>>
>> A search through google also finds that previous version of this page
>> that have been uploaded to the web are now defunct.
>>
>> Thanks in advance for any help,
>>
>> Cheers,
>> James
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Jenkins Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to jenkinsci-dev+unsubscr...@googlegroups.com
>> 
>> .
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/jenkinsci-dev/a8ba2538-6cdb-4cd3-914c-e77d796de1dc%
>> 40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-dev+unsubscr...@googlegroups.com
> 
> .
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-dev/CAPiUgVeTjyG%2B1mKjW5-6HMtMoyURZ21h%
> 2BewYeyeG5JUh88eUbw%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Sent from my phone

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CA%2BnPnMwyFOWCC%2BSHsnRKQqENBGsrOby8YA%3DQHLTTieVgqJbG2w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Backporting for 2.7.2 started

2016-08-18 Thread James Nord
Must drink more coffee - this was meant to go to the 2.7.3 thread :-(

On Thursday, August 18, 2016 at 11:23:48 AM UTC+1, James Nord wrote:
>
> Any chance of getting JENKINS-34668 included?
> It was missing the candidate flag, and makes Jenkins (and derivatives) 
> looks really bad with browser width < 940 px which is not uncommon on 
> windows when using side-by-side viewing.
>
> /James
>
> On Tuesday, July 19, 2016 at 12:53:45 PM UTC+1, ogondza wrote:
>>
>> Backporting has started. For now, all issues ware included: 
>>
>> Candidates: https://issues.jenkins-ci.org/issues/?filter=12146 
>> Fixed: 
>> https://issues.jenkins-ci.org/issues/?jql=labels%20%3D%202.7.2-fixed 
>> -- 
>> oliver 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/a6e9405a-1acd-417c-9af9-0332a351048e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Backporting for LTS 2.7.3 started

2016-08-18 Thread Daniel Beck

> On 18.08.2016, at 12:28, James Nord  wrote:
> 
> Any chance of getting JENKINS-34668 included?

Correct link (HTML email is evil):

https://issues.jenkins-ci.org/browse/JENKINS-34668

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/10A5053E-73CC-4442-90C8-796A66FAF017%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Documentation to understand Jenkins' jelly-isms

2016-08-18 Thread Robert Sandell
https://issues.jenkins-ci.org/browse/INFRA-897

/B

On Thu, Aug 18, 2016 at 12:50 PM, Robert Sandell 
wrote:

> The generated documentation is linked to in the "Additional references"
> section on the wiki https://wiki.jenkins-ci.org/
> display/JENKINS/Extend+Jenkins but the "taglibs defined in Jenkins core"
> link is broken, maybe something got lost when we migrated to jenkins.io ?
>
> /B
>
> On Thu, Aug 18, 2016 at 10:12 AM, James Withers 
> wrote:
>
>> Thanks, It does look a lot cleaner.
>>
>> However, groovy or jelly still leaves me in the same place.
>>
>> I've found that I can review lib/form, lib/layout etc inside of the
>> jenkins-core jar and read what would be the documentation. I guess that'll
>> have to do.
>>
>> Cheers
>>
>> On Wednesday, 17 August 2016 17:23:55 UTC+1, slide wrote:
>>>
>>> I would highly recommend not using jelly at all. You can use Groovy to
>>> create your views and it is MUCH less painful and MUCH less error prone.
>>> You can look for Groovy views in the Jenkins source by looking on Github,
>>> typing t and then typing .groovy (some other groovy files are there, but
>>> many groovy view examples can be found there).
>>>
>>> On Wed, Aug 17, 2016 at 9:19 AM James Withers 
>>> wrote:
>>>
 Hi,

 I am beginning to develop a plugin for Jenkins and am struggling with
 Jelly - I would like to review the documentation described here
 https://wiki.jenkins-ci.org/display/JENKINS/Jelly+form+controls but
 when I run "mvn site" it does not produce the 
 "hudson/main/core/target/site/jelly-taglib-ref.html"
 page however the command completes succesfully.

 Can anyone provide this to me or link me to another place online where
 it is stored? Or if you could help me generate it myself?

 Maybe I'm just doing something wrong.

 A search through google also finds that previous version of this page
 that have been uploaded to the web are now defunct.

 Thanks in advance for any help,

 Cheers,
 James

 --
 You received this message because you are subscribed to the Google
 Groups "Jenkins Developers" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to jenkinsci-de...@googlegroups.com.
 To view this discussion on the web visit https://groups.google.com/d/ms
 gid/jenkinsci-dev/a8ba2538-6cdb-4cd3-914c-e77d796de1dc%40goo
 glegroups.com
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>> --
>> You received this message because you are subscribed to the Google Groups
>> "Jenkins Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to jenkinsci-dev+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/jenkinsci-dev/72709936-5123-4ea6-84bb-30f299b97733%40googlegroups.com
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Robert Sandell
> *Software Engineer*
> *CloudBees Inc.*
>



-- 
Robert Sandell
*Software Engineer*
*CloudBees Inc.*

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CALzHZS0kvSPVGxtgtJs6JkCrd9wN8FB8oYTEo630N9jNsRv3mw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Release Plugin-Errors

2016-08-18 Thread lakshmi . p
Hi,

I have developed one plugin and submitted in the github repository,the 
plugin was already forked , while trying to release the plugin i am getting 
the following error,any one help me to resolve this issue.

Thanks for helping.

[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-javadoc-plugin
:2.10.1:javadoc (default) on project WorksoftCertifyDashBoardSummary: An 
error h
as occurred in JavaDocs report generation:
[ERROR] Exit code: 1 - javadoc: warning - No source files for package 
org.je
nkinsci.plugins.WorksoftCertifyDashboardSummary
[ERROR] javadoc: error - No public or protected classes found to 
document.
[ERROR]
[ERROR] Command line was: "C:\Program 
Files\Java\jdk1.8.0_91\jre\..\bin\java
doc.exe" @options @packages
[ERROR]
[ERROR] Refer to the generated Javadoc files in 
'C:\Users\Susmitha007\Deskto
p\imp 
Plugins\release_1.0\WorksoftCertifyDashBoardSummary\target\site\apidocs' d
ir.
[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/MojoExecut
ionException
[INFO] 

[INFO] BUILD FAILURE
[INFO] 

[INFO] Total time: 05:07 min
[INFO] Finished at: 2016-08-18T16:00:59+05:30
[INFO] Final Memory: 22M/248M
[INFO] 

[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-release-plugin:2.5
.3:prepare (default-cli) on project WorksoftCertifyDashBoardSummary: Maven 
execu
tion failed, exit code: '1' -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception

C:\Users\Susmitha007\Desktop\imp 
Plugins\release_1.0\WorksoftCertifyDashBoardSum
mary>cd C:\Users\Susmitha007\Desktop\imp 
Plugins\release_1.0\WorksoftCertifyDash
BoardSummay

Thanks,
Lakshmi

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/daa2e751-dad7-49f8-8de0-c15977e00e75%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


pom.xml
Description: XML document


Re: Backporting for LTS 2.7.3 started

2016-08-18 Thread James Nord
Any chance of getting JENKINS-34668 
 included?
It was missing the candidate flag, and makes Jenkins (and derivatives) 
looks really bad with browser width < 940 px which is not uncommon on 
windows 10 when using side-by-side viewing.

/James

On Wednesday, August 17, 2016 at 4:22:51 PM UTC+1, Oleg Nenashev wrote:
>
> My wishlist:
>
>- Critical: JENKINS-37315 
> (2.18)
>- Important: JENKINS-31791 
>(2.17) 
>- Nice-2-have: Remoting upgrade to 2.61 or 2.62
>   - Changes - bugfixes and performance improvements: 
>   https://github.com/jenkinsci/remoting/blob/stable-2.x/CHANGELOG.md 
>   - 2.61 and 2.62 have been integrated into 2.18 (2.61 has been 
>   delayed due to the early release of 2.17)
>   - Maybe the changes are not soaked enough, but JENKINS-22853 
>   has 60 votes
>- Nice-2-have: User-visible fixes in FindBugs (JENKINS-36717 
>)
>- Incorrect logging: 
>   
> https://github.com/jenkinsci/jenkins/pull/2459/commits/5a9376230b814d9f3b59ef6260a870bb0c0d0c4b
>   - Incorrect logging: 
>   
> https://github.com/jenkinsci/jenkins/pull/2459/commits/e5a728b394f29c69795f2336edf4c4868de3a980
>   - Method contract violation in ListViewColumn: 
>   
> https://github.com/jenkinsci/jenkins/pull/2459/commits/8c7355042e98a0366d454fc244c53c913f369a1c
>
> Currently there is a high-priority regression caused by changes in 2.16 (
> JENKINS-21486 , 
> JENKINS-37041  or 
> something else). If we picke these important fixes into .3, we should 
> likely be able to deliver a fix and spin RC-2
>
> среда, 10 августа 2016 г., 18:42:32 UTC+2 пользователь Stephen Connolly 
> написал:
>>
>> https://github.com/jenkinsci/jenkins/pull/2502
>>
>> On 10 August 2016 at 17:37, Stephen Connolly  
>> wrote:
>>
>>> CRITICAL... https://issues.jenkins-ci.org/browse/JENKINS-37315
>>>
>>> I'm preparing the PR now
>>>
>>> On 9 August 2016 at 16:47, Stephen Connolly  
>>> wrote:
>>>
 Thanks

 On 9 August 2016 at 15:26, Oliver Gondža  wrote:

> On 2016-08-09 14:37, Stephen Connolly wrote:
>
>> So can we get JENKINS-37189 backported?
>>
>
> It is there, together with JENKINS-35493.
>
> -- 
> oliver
>
> -- 
> You received this message because you are subscribed to the Google 
> Groups "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send 
> an email to jenkinsci-de...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-dev/83f89252-0195-901c-2901-17427daaa6ea%40gmail.com
> .
>
> For more options, visit https://groups.google.com/d/optout.
>


>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/5d479fa2-51c8-4a66-92df-19ae959b9990%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Fill textbox default with java

2016-08-18 Thread Markus Axelsson
This will probably my last question about this plugin.

I have what seems as a simple issue. I want to give a default value to a 
textbox in my PlotBuilder\config.jelly:




  


...

  

  

...


  


See complete file here 

.

My PlotBuilder.java contains the following method:

public String getCsvFileName() {
return "plot-" + String.valueOf( (int)Math.round( Math.random() * 1 
) ) + ".csv";
}



See complete file here 

.

This resulted in nothing, the textbox in completely empty. 

I was able to do this in different jelly with a different java but not 
here. The other java implemented Action and StaplerProxy, and for the sake 
of it I tried to implement those in my PlotBuilder.java as well but without 
success.


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/4242a0aa-dfa2-4501-a0ef-fdabfb3d82bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Documentation to understand Jenkins' jelly-isms

2016-08-18 Thread Jesse Glick
I always open the tag source file, since the documentation is not
necessarily sufficient to understand how to use it. I also frequently
search GitHub to find usages of the tag in code that I trust to have been
written by someone knowledgeable.

Generally the tag usage is underdocumented. In particular, some tags expect
to be inside `table` vs. inside block content, and may invoke nested bodies
in one of those contexts, but the distinction is never noted. There are
other undocumented constraints and considerations as well.

I think Groovy vs. Jelly is a red herring. Groovy makes it easier to
include complex logic in your view, which I find to be a dubious benefit:
better to keep logic in Java sources (and write tests for it when in
doubt), then just call the helper method from your view.

For configuration form fragments, you should always prefer controls that
are designed specifically for databinding. These will typically take a
`field` attribute. `ui-samples-plugin` shows them being used in context.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr3_RHbqjwS-%3DN_Vcn3qaOjBsktNCOdEQquAZOeFdoyW-w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Backporting for 2.7.2 started

2016-08-18 Thread James Nord
Any chance of getting JENKINS-34668 included?
It was missing the candidate flag, and makes Jenkins (and derivatives) 
looks really bad with browser width < 940 px which is not uncommon on 
windows when using side-by-side viewing.

/James

On Tuesday, July 19, 2016 at 12:53:45 PM UTC+1, ogondza wrote:
>
> Backporting has started. For now, all issues ware included: 
>
> Candidates: https://issues.jenkins-ci.org/issues/?filter=12146 
> Fixed: 
> https://issues.jenkins-ci.org/issues/?jql=labels%20%3D%202.7.2-fixed 
> -- 
> oliver 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/8da62a4e-5ddf-42bc-a0c1-2ca09c5c591b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Fill textbox default with java

2016-08-18 Thread Jesse Glick
On Thu, Aug 18, 2016 at 9:14 AM, Robert Sandell  wrote:
> add your helper method to the descriptor instead.

Thus `default="${descriptor.defaultCsvFileName}"` where
`DescriptorImpl` contains `public String getDefaultCsvFileName()`.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr2X5tk41bM%2BkuUM5VC59p5AA2DdcXmEaXq66uC-3trcpw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Fill textbox default with java

2016-08-18 Thread Robert Sandell
The it reference is probably not referring to what you think it is, or
probably null in case you are adding a new step (there is no instance of
the step yet). So you probably need to add your helper method to the
descriptor instead.

/B

On Thu, Aug 18, 2016 at 2:11 PM, Markus Axelsson <
markus.l.axels...@gmail.com> wrote:

> This will probably my last question about this plugin.
>
> I have what seems as a simple issue. I want to give a default value to a
> textbox in my PlotBuilder\config.jelly:
>
>
> 
>  xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
>   
> 
>
> ...
>
>help="/plugin/plot-pipeline/help-csvfile.html">
>  clazz="required" default="${it.csvFileName}"/>
>   
>
> ...
>
> 
>   
> 
>
> See complete file here
> 
> .
>
> My PlotBuilder.java contains the following method:
>
> public String getCsvFileName() {
> return "plot-" + String.valueOf( (int)Math.round( Math.random() * 
> 1 ) ) + ".csv";
> }
>
>
>
> See complete file here
> 
> .
>
> This resulted in nothing, the textbox in completely empty.
>
> I was able to do this in different jelly with a different java but not
> here. The other java implemented Action and StaplerProxy, and for the sake
> of it I tried to implement those in my PlotBuilder.java as well but without
> success.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-dev/4242a0aa-dfa2-4501-a0ef-fdabfb3d82bf%
> 40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Robert Sandell
*Software Engineer*
*CloudBees Inc.*

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CALzHZS1J0LGkBWFDVP7%2BPCxrW8NonEdgZ9a%3DYn7y4guMKydXMw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Parameterized plugin with pipeline plugin - BuildInfoExporterAction

2016-08-18 Thread Jesse Glick
On Wed, Aug 17, 2016 at 4:43 PM, Quang Truong
 wrote:
> in those methods,
> they return the list of AbstractBuild which can't be cast to WorkflowRun, so
> the return list is not empty but those items which are WorkflowRun items are
> Null objects.

Then fix that plugin to return a `List`.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr3zeK%3DXEuaj%2BW75FgBeuv_KrbTVB6jUwf%2BXFafOcp91iA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


unable to use javascript ScriptEngine in pipeline step implementation

2016-08-18 Thread Chris Price
Hi,

I have a custom pipeline step I'm writing (in Java, implementing workflow
Step/StepExecution).  Inside of my step's implementation I need to load
some JavaScript code.  I started off with this approach:

ScriptEngineManager manager = new ScriptEngineManager();
ScriptEngine engine = manager.getEngineByName("javascript");

I have some tests that I've written that use the
JenkinsRule/CpsFlowDefinition pattern (basically used
workflow-basic-steps-plugin as the example).  In these tests, the lines of
code above work just fine.  (They seem to work fine in either JDK7, where I
get an instance of a Rhino javascript engine, or in JDK8 where I get a
Nashorn one.)

However, after I got those working, I ran `mvn hpi:run` to spin up the GUI,
and went in and created a pipeline job that called the same custom step,
and in this context, the ScriptEngine ends up being `null`.  Stepping with
a debugger and looking into the ScriptEngineManager, I can see that it
contains a ScriptEngine for groovy, but nothing else.  This happens in both
JDK7 and JDK8, even if I've explicitly added a maven dependency on Rhino.
So it seems like Jenkins is manipulating the ScriptEngineManager before
calling plugins somehow... perhaps?

I modified my code to call into the Rhino API explicitly; this, coupled
with the explicit maven dep on Rhino, seems to work fine in both test and
hpi:run context.  This workaround is probably sufficient for my needs for
now, but I wanted to at least share the issue that I ran into in case it is
not intended / expected behavior, and should perhaps be filed as a bug?

Thanks
Chris

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAMx1QfL22RWt8HUsb6AXFhCVLOoB7aLsJJBEzK5G1sFSeMjtYA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: unable to use javascript ScriptEngine in pipeline step implementation

2016-08-18 Thread Jesse Glick
On Thu, Aug 18, 2016 at 2:30 PM, Chris Price  wrote:
> Is there any specific classloader you'd recommend for use in a plugin
> context?

Not really. That of some class in your plugin? Of some class in
Jenkins core? The parent of that of some class in Jenkins core? You
really need to poke in a debugger and see *why* it is not loading the
standard implementations.

> any idea why it would work OK in the tests?

The context loader is probably different, and anyway your plugin
classes are being loaded in a different loader.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr2j4RXRVgfRzqTwkAizpxeoeYjhmFm2iJoac%3DdbWEcv8A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.