Re: Parameter definition with cascading selection

2020-01-04 Thread Andrew Sumner
n Thursday, January 2, 2020 at 12:20:31 AM UTC+13, Andrew Sumner wrote: > > A parameter that I am developing for my plugin requires two select fields, > the second one being populated using the value selected from the dropdown > list of the first field. My problem is that I don't

Parameter definition with cascading selection

2020-01-01 Thread Andrew Sumner
A parameter that I am developing for my plugin requires two select fields, the second one being populated using the value selected from the dropdown list of the first field. My problem is that I don't know how to repopulate the list for the second field. I've got as far as detecting the change

Editable jelly select tag / combobox

2019-12-30 Thread Andrew Sumner
I need to allow users to enter a custom value into a field that is currently using a jelly select tag, but I still want to present the list of values as well. I've tried the combobox tag, but that: 1. doesn't allow a default value to be set (show stopper) 2. filters the list so users

Re: Is it possible to log to console for a parameter plugin?

2019-12-15 Thread Andrew Sumner
ng reflection, but I do > not have example for it > > On Saturday, December 14, 2019 at 1:41:17 PM UTC+1, Andrew Sumner wrote: >> >> I am writing a custom parameter using the >> SimpleParameterDefinition/ParameterValue >> classes >> >> Is it possible to log to

Is it possible to log to console for a parameter plugin?

2019-12-14 Thread Andrew Sumner
I am writing a custom parameter using the SimpleParameterDefinition/ParameterValue classes Is it possible to log to the console in buildEnvironment method? @Override public void buildEnvironment(Run build, EnvVars env) { env.put("VAR1", var1Value); env.put("VAR2", var2Value); } For example,

Setting envrioment variables from plugin running in pipeline script

2017-03-05 Thread andrew . sumner
I have a plugin I've been updating to support pipeline script (with some help from this forum - thanks guys!). During testing I discovered that the plugin is not setting environment variables when run from a pipeline script, but works fine in a freestyle job. Can anyone suggest anything I

Re: Jelly/Plugin pipeline script support for optionalBlock

2017-02-17 Thread andrew . sumner
I've finally got it working, one remaining issue: Is there any way to make optionalProperty backwards compatible with optionalBlock? When I publish the update to this plugin I don't want people to have to reconfigure there jobs. If not, is there any way to mark the plugin as not backwards

Re: Jelly/Plugin pipeline script support for optionalBlock

2017-02-17 Thread andrew . sumner
Well how about pointing me at some documentation then since it's pretty obvious by now that the code doesn't make a hell of a lot of sense to me. I wouldn't have though that my requirements for the UI where that unusual that it would be so hard to get it working with pipeline script. On

Re: Jelly/Plugin pipeline script support for optionalBlock

2017-02-16 Thread andrew . sumner
Maybe I'm not looking in the right places or I just don't understand the code but I cannot see how to get an optionalProperty to work. The only example I can find this the ui-samples-plugin which has an overly complicated example that I cannot follow. 1. Do you have any advice on how to

Re: Jelly/Plugin pipeline script support for optionalBlock

2017-02-06 Thread Andrew Sumner
Is there any other options for creating foldable sectionsthat will also work with the pipeline syntax generator? optionalBlock: will not add the fields inside the foldableblock to the generated syntaxoptionalProperty: couldn’t get that to work and I’m notsure that it will indent the child

Jelly/Plugin pipeline script support for optionalBlock

2017-01-17 Thread andrew . sumner
When updating a plugin to support pipeline script, how do I handle an optionalBlock section? I've been using *https://github.com/jenkinsci/pipeline-plugin/blob/master/DEVGUIDE.md#user-content-build-wrappers-1*

Plugin execution on a slave

2016-10-25 Thread andrew . sumner
A user has asked me to support running my plugin on a slave but whatever I try I keep getting an “Unable to serialize” exception. My code is now about as basic as it gets and still failing. Any ideas? I’m running Jenkins 2.19.1 and my plugin has a Jenkins version dependency of

Can a plugin access the workspace from the job configuration page?

2016-09-03 Thread Andrew Sumner
I’d like to place a validation button on the job configuration page to verify that an ant fileset is valid AND finds something in the workspace. Is anyone aware of any plugins that do this? Its always easier to copy someone else’s code when dealing with this stuff  Regards   Andrew --

How do I get the test harness to include the plugin under development?

2016-04-05 Thread andrew . sumner
so it's not been much help. The offending bit of code is in: https://github.com/andrew-sumner/inedo-proget-plugin/blob/master/src/test/java/com/inedo/proget/jenkins/DownloadPluginTests.java @Rule public JenkinsRule j = new JenkinsRule() @Test public void perform

How do I get the test harness to include the plugin I'm developing?

2016-04-05 Thread andrew . sumner
lightly so it's not been much help. My code is in: https://github.com/andrew-sumner/inedo-proget-plugin/blob/master/src/test/java/com/inedo/proget/jenkins/DownloadPluginTests.java @Rule public JenkinsRule j = new JenkinsRule() @Test public void perform() { HtmlPage

How do I get the test harness to include the plugin I'm developing?

2016-04-05 Thread andrew . sumner
so it's not been much help. My code is in: https://github.com/andrew-sumner/inedo-proget-plugin/blob/master/src/test/java/com/inedo/proget/jenkins/DownloadPluginTests.java @Rule public JenkinsRule j = new JenkinsRule() @Test public void perform() { HtmlPage

How does a Jenkins test harness include the plugin it's meant to be testing?

2016-04-05 Thread andrew . sumner
dded the hpi file to the plugins folder but there is no explanation on how to do that... The offending bit of code is in: https://github.com/andrew-sumner/inedo-proget-plugin/blob/master/src/test/java/com/inedo/proget/jenkins/DownloadPluginTests.java Any idea on what I might be missing? -- You received

How do I get the test harness to include the plugin I'm developing?

2016-04-05 Thread andrew . sumner
so it's not been much help. My code is in: https://github.com/andrew-sumner/inedo-proget-plugin/blob/master/src/test/java/com/inedo/proget/jenkins/DownloadPluginTests.java @Rule public JenkinsRule j = new JenkinsRule() @Test public void perform() { HtmlPage

How do I get the test harness to include the plugin I'm developing?

2016-04-04 Thread Andrew Sumner
lightly so it's not been much help. My code is in: https://github.com/andrew-sumner/inedo-proget-plugin/blob/master/src/test/java/com/inedo/proget/jenkins/DownloadPluginTests.java @Rule public JenkinsRule j = new JenkinsRule() @Test public void perform

Re: How queue a single action across multiple Jenkins jobs and not queue the entire job?

2015-05-14 Thread andrew . sumner
Am I being overly ambitious and just need to resign myself to the fact that I need to block the entire Jenkins job when a resource is locked by another job, and not just block the individual build step? I've discovered that ResourceActivity is close to what I require, the problem is that once

'stapler-class' is deprecated

2015-05-03 Thread andrew . sumner
I'm getting this warning when saving job configuration. Is it something I should worry about or can I safely ignore it? May 04, 2015 12:02:21 PM org.kohsuke.stapler.RequestImpl$TypePair convertJSON WARNING: 'stapler-class' is deprecated: com.inedo.buildmaster.TriggerBuildBuilder It seems this

Re: inedo-buildmaster-plugin job config

2015-05-02 Thread andrew . sumner
I'd rather keep inedo-buildmaster-plugin https://github.com/jenkinsci/inedo-buildmaster-plugin as I've committed some additional changes to this and created a wiki page for it. Sorry about that - my bad. When I got an email that I had access to the Jenkins GitHub I assumed that meant I had

inedo-buildmaster-plugin job config

2015-04-30 Thread andrew . sumner
The job for the inedo-buildmaster-plugin is a Maven job, but should be a Gradle job: https://jenkins.ci.cloudbees.com/job/plugins/job/gradle-jpi-plugin/ How can I get the changed over? Thanks Andrew -- You received this message because you are subscribed to the Google Groups Jenkins

Hosting Request for BuildMaster Plugin

2015-04-27 Thread andrew . sumner
Personal GitHub ID: andrew-sumner Existing GitHub repository: https://github.com/andrew-sumner/buildmaster-plugin Regards Andrew Note: this is a duplicate as my last request never got any traction and I thought I'd try again... -- You received this message because you are subscribed to the Google

Unit testing a plugin with global configuration properties

2015-04-21 Thread andrew . sumner
As far as I can tell the following is how I need to set the global configuration properties before I attempt to do anything with my plugin, however I get an exception thrown (stack trace below) on the first line: HtmlPage p = j.createWebClient().goTo(configure); I'm using

Hosting Request for BuildMaster plugin

2015-04-21 Thread andrew . sumner
Could I get this added? - your GitHub plugin name: buildmaster-plugin - your personal GitHub ID : andrew-sumner - The existing GitHub repository: https://github.com/andrew-sumner/buildmaster-plugin/ -- You received this message because you are subscribed to the Google Groups