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 compatible?


For anyone else struggling with this the answer is that an optionalProperty 
needs to have it's own class and config.jelly.

For me that meant:
1. the original optional block became 
2. a new class:

public class WaitTillCompleted extends 
AbstractDescribableImpl {
 private final boolean printLogOnFailure;
 public boolean isPrintLogOnFailure() {
  return printLogOnFailure;
 }
 @DataBoundConstructor 
 public WaitTillCompleted(boolean printLogOnFailure) {
this.printLogOnFailure = printLogOnFailure;
}

@Extension
public static class DescriptorImpl extends 
Descriptor {
@Override
public String getDisplayName() {
return "";
}
}
}

3. A new config.jelly for the above class




  

 

Cheers
  Andrew

On Friday, February 17, 2017 at 6:17:25 AM UTC+13, Jesse Glick wrote:

> On Thu, Feb 16, 2017 at 4:30 AM,  
> wrote: 
> >The only example I can find this the ui-samples-plugin which has an 
> overly complicated example that I cannot follow. 
>
> That is the cleanest example I know of. You can use GitHub search to 
> look for others but I cannot say whether they will be good examples or 
> bad examples, unless I wrote them myself. 
>

-- 
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/86581742-e4dd-4e26-943b-62ba8bd4b7dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 Friday, February 17, 2017 at 6:17:25 AM UTC+13, Jesse Glick wrote:

> On Thu, Feb 16, 2017 at 4:30 AM,  
> wrote: 
> >The only example I can find this the ui-samples-plugin which has an 
> overly complicated example that I cannot follow. 
>
> That is the cleanest example I know of. You can use GitHub search to 
> look for others but I cannot say whether they will be good examples or 
> bad examples, unless I wrote them myself. 
>

-- 
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/9360f0f3-7b02-4ba5-a4e4-bf7c4cbd8d76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Way to use api rest call with Test-Harness

2017-02-17 Thread Jesse Glick
Hold on, you are writing a *Gradle* plugin? Then do not use
`jenkins-test-harness`, this is only for tests of Jenkins plugins.

-- 
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/CANfRfr0yg5vwgVhD85hSGT1QcV%3DLqDHD2n-5HoJNdjWyNGGZ-A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: plugin data migration - potential incompatibility

2017-02-17 Thread Jesse Glick
On Fri, Feb 17, 2017 at 3:55 PM, Robert St. John  wrote:
> What would be the advantage of renaming the builder class?

Then you can just start over and be sure that any deserialized
instances will be sane.

-- 
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/CANfRfr1GseF5fZ%3DRKAOiG1u3Z_vj37oiOcoystDoJw1UpX0Ljw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: plugin data migration - potential incompatibility

2017-02-17 Thread Robert St. John
What would be the advantage of renaming the builder class?

On Friday, February 17, 2017 at 1:41:41 PM UTC-7, Daniel Beck wrote:
>
>
> > On 17.02.2017, at 21:38, Jesse Glick  
> wrote: 
> > 
> > In that case maybe just rename the `Builder` class rather than even 
> > wasting time on migration. 
>
> + 
> https://wiki.jenkins-ci.org/display/JENKINS/Marking+a+new+plugin+version+as+incompatible+with+older+versions
>  
>
>

-- 
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/a96b4a59-9549-4f31-a7b8-9bc1bf817fb0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Way to use api rest call with Test-Harness

2017-02-17 Thread Maxim Chouinard
The plugin add jobs via the rest api, so in my integration test i want to
use the same behaviour but against a jenkins instance, maybe i should use a
dockerized jenkins instead




> Why is your test asking for the crumb? See the utilities in
> `JenkinsRule.WebClient` to add a crumb to a request for 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/CAE1CGz9Wv27RraqSHiz-52zJdSEuG-Rnnembrfkxn07Rcci6pA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: plugin data migration - potential incompatibility

2017-02-17 Thread Daniel Beck

> On 17.02.2017, at 21:38, Jesse Glick  wrote:
> 
> In that case maybe just rename the `Builder` class rather than even
> wasting time on migration.

+ 
https://wiki.jenkins-ci.org/display/JENKINS/Marking+a+new+plugin+version+as+incompatible+with+older+versions

-- 
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/BDBE03AB-F459-4AB9-85AF-8D4734EEFDB8%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: plugin data migration - potential incompatibility

2017-02-17 Thread Jesse Glick
On Fri, Feb 17, 2017 at 1:55 PM, Robert St. John  wrote:
> only 61 installs according to its jenkins.io page

In that case maybe just rename the `Builder` class rather than even
wasting time on migration.

-- 
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/CANfRfr2_1KA50YNBn-BO4kuG-ZKWk_Pe8RJy0QW13r1v7QObsA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to terminate Jenkins build in Pipeline Global Library code

2017-02-17 Thread Daniel Beck

> On 17.02.2017, at 21:20, Peter Zhao  wrote:
> 
> Hi Jenkins gurus,

Please ask questions like this on the jenkinsci-users mailing 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/BAC664D2-3654-43BE-9BB9-BB01F9B345E4%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


How to terminate Jenkins build in Pipeline Global Library code

2017-02-17 Thread Peter Zhao
Hi Jenkins gurus,

I am working on creating a Pipeline Global Library to extract some common 
code from different teams's Jenkins files to this library.

In my Library, when some condition is true, I want to terminate the current 
Jenkins build without executing the rest of the build (build succeed). I 
know in Jenkins file, a 'return' is good enough. But now I always check the 
condition in a method of the library, how can I terminate the build there?

Thanks a lot!

-- 
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/f29d02e9-8ed2-4116-81a8-e29df74d73b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Jenkins World 2017]: CFP deadline approaching

2017-02-17 Thread Alyssa Tong
Hello,

The CFP for Jenkins World 2017 
will be closing in two (2) weeks - March 5.  If you are planning to make a
proposal pls get your submission in soon.

Jenkins World 2017 link is here
.

Have a great weekend,
alyssa

-- 
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/CAC9wNazDE6kP%3DUcCpD9yCQGrpamM2psTFkXyUQ4X%3Dus-9-XmoQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Discontinuing Office Hours

2017-02-17 Thread Baptiste Mathus
Thanks Daniel

2017-02-17 19:01 GMT+01:00 Daniel Beck :

>
> > On 15.02.2017, at 18:21, Daniel Beck  wrote:
> >
> > Anyone opposed? If not, I'll implement this.
>
> I removed it from the event calendar, and updated the wiki page. If I see
> more references, I'll clean those up as well.
>
> --
> 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/7D3ADE3A-D248-4E67-888C-DBDC020A19F2%40beckweb.net.
> 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/CANWgJS6_-xoqW427KJnHUUABwD90D0zSnCfT_W4nxD1cXWxiRg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: plugin data migration - potential incompatibility

2017-02-17 Thread Robert St. John
I could go on living without this change, but the change would cleaner and 
easier to maintain and test.  At this point, the plugin has relatively low 
usage, only 61 installs according to its jenkins.io 
 page , so I figure better to 
do this now than later.  I also highly doubt the multiplicity offered by 
the current data model is actually used, as it really doesn't make much 
sense.  Unfortunately, I neglected to change it from the older version of 
this plugin from which I started before the first re-release.  The Pipeline 
support I'm adding now will actually hide this aspect of the model, but I'd 
still prefer to change the model for Freestyle Jobs as well.  What are your 
thoughts?

On Friday, February 17, 2017 at 11:32:02 AM UTC-7, Jesse Glick wrote:
>
> On Fri, Feb 17, 2017 at 1:05 PM, Robert St. John  > wrote: 
> > When I implement the 
> > migration in the ItemListener.onLoaded() method, do I need to worry 
> about a 
> > scenario in which the Builder will could run using the old data model 
>
> Yes, potentially. 
>
> Do you *really* need to do this? 
>

-- 
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/2e6c93b0-dd47-4454-ba57-d2a829f79967%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[GSoC2017] Hello Dev's, My First Email

2017-02-17 Thread Lakshmanan Meiyappan
Hello Jenkins Dev's,

I'm Lakshmanan, pursuing my 3rd year computer science and engineering 
course in BITSathy , India.

My area's of interests are Software development, Automation, Big Data and 
Cloud. 
I think i have a sufficiently good knowledge on C, C++, Java and Python. 
I'm new to Jenkins and I am just curious to know more about Jenkins and 
what amazing things it could do!  

-- 
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/3862d212-917a-45c1-877b-b79d6c7472a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: plugin data migration - potential incompatibility

2017-02-17 Thread Jesse Glick
On Fri, Feb 17, 2017 at 1:05 PM, Robert St. John  wrote:
> When I implement the
> migration in the ItemListener.onLoaded() method, do I need to worry about a
> scenario in which the Builder will could run using the old data model

Yes, potentially.

Do you *really* need to do this?

-- 
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/CANfRfr0vvLWMkuRmCTRK5pjQr%2B_Y7xS%3D1Wo7YOgOu5%3D%3DYFJoLg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: plugin data migration - potential incompatibility

2017-02-17 Thread Robert St. John
Thanks for your help.  I have one final question.  When I implement the 
migration in the ItemListener.onLoaded() method, do I need to worry about a 
scenario in which the Builder will could run using the old data model, or 
can I safely change the perform() method to disregard the old data model?


On Friday, February 17, 2017 at 10:34:30 AM UTC-7, Jesse Glick wrote:
>
> On Fri, Feb 17, 2017 at 11:35 AM, Robert St. John  > wrote: 
> > Does this approach warrant any special consideration 
> > in the case of updating the plugin from a previously installed version? 
> > Does Jenkins always need to restart 
>
> Yes, plugin updates require restart. 
>

-- 
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/9eff0d25-764c-43f5-8198-9baae04e5629%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Discontinuing Office Hours

2017-02-17 Thread Daniel Beck

> On 15.02.2017, at 18:21, Daniel Beck  wrote:
> 
> Anyone opposed? If not, I'll implement this.

I removed it from the event calendar, and updated the wiki page. If I see more 
references, I'll clean those up as well.

-- 
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/7D3ADE3A-D248-4E67-888C-DBDC020A19F2%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: EnvironmentContributingAction.buildEnvVars doesn't work

2017-02-17 Thread Jesse Glick
On Fri, Feb 17, 2017 at 11:53 AM, sohl  wrote:
> Could you please elaborate on implementing 'Step'?

https://github.com/jenkinsci/workflow-step-api-plugin/#writing-pipeline-steps

-- 
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/CANfRfr3NVLuV5wzG0RJm-y9aGLzUuEgO0qh898gqNNLWDFy%3Drg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: plugin data migration - potential incompatibility

2017-02-17 Thread Jesse Glick
On Fri, Feb 17, 2017 at 11:35 AM, Robert St. John  wrote:
> Does this approach warrant any special consideration
> in the case of updating the plugin from a previously installed version?
> Does Jenkins always need to restart

Yes, plugin updates require restart.

-- 
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/CANfRfr1oTCioLdf-anQ7%2BRnOW3mR0EdsRHtnN%3D%2BR%2BjNHkQx45Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Way to use api rest call with Test-Harness

2017-02-17 Thread Jesse Glick
On Fri, Feb 17, 2017 at 10:35 AM, Maxim Chouinard
 wrote:
> output from my test:
> GET : http://localhost:60768/jenkins/crumbIssuer/api/json 404

Why is your test asking for the crumb? See the utilities in
`JenkinsRule.WebClient` to add a crumb to a request for 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/CANfRfr0zMnzWwMF3Y68RbFXD9C7mSx%2BByAFJy7n3nD2LaDWqhg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: EnvironmentContributingAction.buildEnvVars doesn't work

2017-02-17 Thread sohl
Appreciate the quick reply.
Could you please elaborate on implementing 'Step'? SimpleBuildStep extends 
hudson.tasks.BuildStep. 
Do I need to implement BuildStep? What exactly should return the Non-null 
value.
Gleaning information from existing documentation is nearly hopeless, and 
randomly poking around core and plugins' code even with debugger takes 
forever.

On Thursday, February 16, 2017 at 5:07:58 PM UTC-5, Jesse Glick wrote:
>
> On Thu, Feb 16, 2017 at 2:53 PM, sohl  
> wrote: 
> > The plugin uses a standard method to set the variable by implementing 
> > "EnvironmentContributingAction.buildEnvVars" 
>
> This interface is not currently compatible with Pipeline I am afraid. 
>
> Anyway where steps should provide information to other steps in the 
> build, it is better to implement `Step` directly (rather than 
> `SimpleBuildStep`), and have a non-void return value. 
>

-- 
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/e7dbe8bb-df69-4f43-9db3-917d4264caa1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: plugin data migration - potential incompatibility

2017-02-17 Thread Robert St. John
Ah, perfect, thanks.  Does this approach warrant any special consideration 
in the case of updating the plugin from a previously installed version? 
 Does Jenkins always need to restart and reload configurations in that 
scenario, thus guaranteeing ItemListener.onLoad() is called?

On Friday, February 17, 2017 at 7:48:00 AM UTC-7, Jesse Glick wrote:
>
> On Fri, Feb 17, 2017 at 9:30 AM, Robert St. John  > wrote: 
> > Are there any other concerns 
>
> The normal way to migrate a `buildersList` would be to use 
> `ItemListener.onLoaded`. Example: 
>
>
> https://github.com/jenkinsci/jenkins/blob/6342a9b06b713e33bf642eb36c3a7b463fdbb38e/core/src/main/java/hudson/tasks/ArtifactArchiver.java#L348-L389
>  
>
> I have discussed the need for a better API for this that would allow 
> lazier class loading. 
>

-- 
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/c35dd513-50c6-4cc9-83e9-f63a0ca29f59%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Way to use api rest call with Test-Harness

2017-02-17 Thread Maxim Chouinard
I will dig in there a bit. I was wondering , if someone had perform that
kind of test before.

output from my test:
GET : http://localhost:60768/jenkins/crumbIssuer/api/json 404
[Authorization:Basic YWRtaW46ZDk3MTYwOTZkMzY3YTA3MzI4OWVmNGM4MTFiYjY2MmI=]

manual curl in the console:
curl -XGET 'http://localhost:60768/jenkins/crumbIssuer/api/json' --user
admin:password

   
09:06:10
{"_class":"org.jvnet.hudson.test.TestCrumbIssuer","crumb":"test","crumbRequestField":"Jenkins-Crumb"}

On Fri, Feb 17, 2017 at 10:30 AM, Jesse Glick  wrote:

> On Fri, Feb 17, 2017 at 10:17 AM,   wrote:
> > somehow the response from the
> > jenkins jetty instance always give 404.
>
> Well track down why. Plenty of tests using
> `JenkinsRule.createWebClient` successfully.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Developers" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/jenkinsci-dev/1z0SDAP4U1M/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CANfRfr3m7aeBP7dvLXj36mgxoYjSv
> Xksdh3pZ4d30O6FvgRz7g%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Maxim Chouinard
*Java Developer / Ingeno*
*c: 1 (418) 456-6706*
*skype: maxim.chouinard*

-- 
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/CAE1CGz9aVFb%2BxdsCeevEOOyXh6dtOJc%3DRsq%2BeGgJCfZrzx743Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Way to use api rest call with Test-Harness

2017-02-17 Thread Jesse Glick
On Fri, Feb 17, 2017 at 10:17 AM,   wrote:
> somehow the response from the
> jenkins jetty instance always give 404.

Well track down why. Plenty of tests using
`JenkinsRule.createWebClient` successfully.

-- 
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/CANfRfr3m7aeBP7dvLXj36mgxoYjSvXksdh3pZ4d30O6FvgRz7g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Way to use api rest call with Test-Harness

2017-02-17 Thread maxim . chouinard
Hey guys, 

   I'm currently writing a gradle plugin that import 
job/view/folder/pipeline from a job directory to a jenkins instance.

In the plugin i use httpClient, to post/get request that validate if the 
job exist or create it. I tried my plugin with a local and a cloud instance 
and it work great, But with the test harness, it looks like the JenkinsRule 
instance use the same thread than my test and somehow the response from the 
jenkins jetty instance always give 404.

Do you guys know a way to test restApi based functionality without having 
to spawn a jenkins docker instance?
Otherwise, a way to have a JenkinsRule Async?

Thanks

-- 
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/bef0129d-732c-44d2-bcf5-6e9673bab5d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: plugin data migration - potential incompatibility

2017-02-17 Thread Jesse Glick
On Fri, Feb 17, 2017 at 9:30 AM, Robert St. John  wrote:
> Are there any other concerns

The normal way to migrate a `buildersList` would be to use
`ItemListener.onLoaded`. Example:

https://github.com/jenkinsci/jenkins/blob/6342a9b06b713e33bf642eb36c3a7b463fdbb38e/core/src/main/java/hudson/tasks/ArtifactArchiver.java#L348-L389

I have discussed the need for a better API for this that would allow
lazier class loading.

-- 
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/CANfRfr36oK%3DXbFjmMOhCGFCiUogBj_9cQYs2XbfXmPHFXvDiCw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: plugin data migration - potential incompatibility

2017-02-17 Thread Robert St. John
I get that, but I'm not worried about it given that the current version of 
the plugin relies on environment variables to work and could not possibly 
function in a pipeline script, as I understand, because of JENKINS-29144 
.  I'm working on a 
remedy for that now.  Are there any other concerns like concurrency or 
security?

Thanks.

Robert


On Friday, February 17, 2017 at 5:45:09 AM UTC-7, Jesse Glick wrote:
>
> Will not work for Pipeline builds.
>

-- 
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/780c19cf-305b-4d6b-8aa4-c519ea3aba4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Project ideas for student projects in the area of testing

2017-02-17 Thread Jesse Glick
I would also much rather see a genuine regression test. If some aspect of
ATH is too weak to reproduce the bug properly, then that is what needs
fixing.

-- 
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/CANfRfr2eGwB-hbFXtJa%2BJE72HbTqE6t8iTqYQO_iRL-SBarbBw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: plugin data migration - potential incompatibility

2017-02-17 Thread Jesse Glick
Will not work for Pipeline builds.

-- 
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/CANfRfr1Th-uH5tQ92heuqSXCFS0NNq1eVHJzqjS7siPVqvT3Qg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Discontinuing Office Hours

2017-02-17 Thread Robert Sandell
+1

On Wed, Feb 15, 2017 at 6:21 PM, Daniel Beck  wrote:

> Hi everyone,
>
> Remember Office Hours?
>
> Yeah, me neither.
>
> https://wiki.jenkins-ci.org/display/JENKINS/Office+Hours
>
> Lately we've done Office Hour-style presentations much more successfully
> via the Jenkins Online Meetup.
>
> I propose we remove office hours from our calendar, update wiki pages to
> state it's discontinued, etc.
>
> Anyone opposed? If not, I'll implement this.
>
> Daniel
>
> --
> 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/1801ABEC-F2BB-4D83-9648-E1639F4B1794%40beckweb.net.
> 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/CALzHZS31c0mFK%3DOFK6Y-sJND4ZJyfj9%2Bowkg5btMFZ6Hr%3DvYrA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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

2017-02-17 Thread Robert Sandell
Here is one example using the declarative style that is running on
ci.jenkins.io

https://github.com/stapler/stapler/blob/master/Jenkinsfile

/B

On Wed, Feb 15, 2017 at 6:04 PM, Fritz Elfert  wrote:

> (replies inline)
>
> On 15.02.2017 17:40, R. Tyler Croy wrote:
> > (replies inline)
> >
> > On Tue, 14 Feb 2017, Fritz Elfert wrote:
> >
> >> Please add https://github.com/jenkinsci/jclouds-plugin
> >
> >
> > You may be interested in using the buildPlugin() method provided by a
> Shared
> > Library. Makes things rather simple, and looks like it covers the
> defaults the
> > jclouds-plugin's Jenkinsfile already has:
> > https://github.com/jenkins-infra/pipeline-library#buildplugin
>
> Well, to be honest, I simply copied the Jenkinsfile from the
> config-file-provider. I'm a complete NOOB regarding pipelines.
> >
> >
> >> Also: I would like to use maven 3.2.x instead of maven 3.3.x
> >> See: https://groups.google.com/forum/#!topic/jenkinsci-dev/ebczuKKmOPg
> >
> > If this is something important to you, I suggest using the Docker
> Pipeline
> > support (allocate a node with the 'docker' label) and pull in the Maven
> > container desired. Tools Installers are a tremendous pain in the ass to
> manage
> > for me, so I'm not willing to start adding more than one basic version
> for
> > Maven and JDKs right now.
>
> Being a complete pipeline-NOOB (and on top: Docker-NOOB), I'd really
> appreciate some example or perhaps a pointer to some doc which shows how
> to "pull" some maven container.
>
> Thanks
>  -Fritz
>
> --
> 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/a822f460-ac74-67e6-95ed-c1ac36f18494%40fritz-elfert.de
> .
> 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/CALzHZS0XiFX3e7H8%3DLUerFanuUF4PQn9dLTCrLRC1bOJD5389A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Project ideas for student projects in the area of testing

2017-02-17 Thread Ullrich Hafner

> Am 13.02.2017 um 20:39 schrieb Mark Waite :
> 
> I'd love to have students help create Jenkins jobs which illustrate specific 
> bugs in the git plugin, for example.  Sample jobs which illustrate different 
> bugs as Jenkins jobs are available from the lts-with-plugins branch of my 
> docker repository.  I've found it very powerful to have a Jenkins job per bug 
> report, either as a pipeline job (branch in a git repository like my 
> jenkins-bugs repository) or as a freestyle job which shows the bug and marks 
> itself unstable when the bug is detected.
> 
> I hope to propose a blog posting describing the technique of using one or 
> more Jenkins job definitions for each bug.  I've found it very helpful to 
> verify bugs remain fixed while detecting problems on multiple platforms.

That sounds interesting and would be a good basis. Do you think you can give 
some more pointers until the course starts (15. March)?

A job per bug report is also a good working unit so we can start with a simple 
one and then move to more difficult setups. If there would be an example to 
start with it would be even better.

What is not yet clear: these jobs you are referring to sound like a test setup 
for the ATH. So if you have such a setup it would be not much harder to add a 
verification step as an ATH test case. Then you will also have regression 
tests. Would that be also useful?

In which order should we pick up issues? Priority in Jira? Or Newest first?

> 
> Mark Waite
> 
> On Mon, Feb 13, 2017 at 11:44 AM Victor Martinez 
> > wrote:
> Maybe it is a bit out of the scope and I don't know whether there is already 
> a ongoing testing framework for the pipeline. But, is it something feasible? 
> It might be a really good contribution to the community
> Cheers
> 
> --
> 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/bf2dbfa0-c524-4673-bfb5-6e55c05de2d2%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/CAO49JtFfBbcs16yghxjQHB58EF3%2B%3D3mUGOck1WK-EpQ_eaD17w%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/4F6F3DB6-1D43-4085-B54A-F4A6CCEE19E9%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Project ideas for student projects in the area of testing

2017-02-17 Thread Ullrich Hafner
This looks somewhat too complicated for a course, would better fit for a 
thesis… 

> Am 13.02.2017 um 19:44 schrieb Victor Martinez 
> :
> 
> Maybe it is a bit out of the scope and I don't know whether there is already 
> a ongoing testing framework for the pipeline. But, is it something feasible? 
> It might be a really good contribution to the community
> Cheers 
> 
> -- 
> 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/bf2dbfa0-c524-4673-bfb5-6e55c05de2d2%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/117D0D22-E8F9-4022-BD0F-37466DF4595B%40gmail.com.
For more options, visit https://groups.google.com/d/optout.