Re: Slow loading of job configuration page after Jenkins upgrade

2017-11-03 Thread Robert Hales
I would look into your gc, first. Does jenkins write a garbage collection 
log? I don't remember. You may need to just give it more memory. 

On Friday, November 3, 2017 at 12:42:01 PM UTC-6, t3knoid wrote:
>
> I've recently upgraded Jenkins and plug-ins. After doing so, now every job 
> configuration page loads very slow. Some at least 7-8 minutes. I've read 
> that I need to profile the running java process with something like jstack 
> to see which thread is taking a long time to complete. I tried that and I 
> am at a lost as how to interpret the stack. This happened after updating to 
> v2.87 and some of the plugins. I know this info is not much help, but I'd 
> appreciate how can I go about getting more info on how to troubleshoot this.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0ed3afb5-a77f-46cb-81c1-c1d719913c24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Circular dependencies in plugins

2017-11-03 Thread Stephen Connolly
On Fri 3 Nov 2017 at 19:21, CLOSE Dave 
wrote:

> >> Every one of the Pipeline plugins, all 23 of them, claim to be
> >> dependent on some other plugins. None offer the option to disable.
> >> The chain seems endless. And many of the plugins asserted to be
> >> dependent are ones I want to keep, such as Pipeline: Step API says
> >> it is dependent on Gerrit Trigger and Pipeline: SCM Step says it
> >> is dependent on Git plugin.


No you are reading that backwards. That means those plugins depend on step
api so you cannot disable step api.

Look for the leaf nodes (ie ones with checkboxes that can be modified)

>
>
> On 11/03/17 11:19, Slide wrote:
>
> > That's odd, according to the pom [1] the only non-test dependency is
> > on the structs plugins.
> >
> > Can you show a screenshot or something that shows this dependency
> > info?
>
> Yes. See attached.
> --
> Dave Close, Thales InFlyt Experience, Irvine California USA.
> cell +1 949 394 2124, dave.cl...@us.thalesgroup.com
>
>  "If your aren't in over your head,
>   how do you know how tall you are?" -- T. S. Eliot
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/630085f0-8c7d-407f-b1c8-aaca4e30c34c%40us.thalesgroup.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 Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CA%2BnPnMxqxSGU1-6s-86q9ww%2BG%2BDB2--ggPHGiNcvyJJmRw%2BX4A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Slow loading of job configuration page after Jenkins upgrade

2017-11-03 Thread t3knoid
BTW, the slow load also happens when creating a new free style project or a 
maven project. However, the slowness does not appear creating a pipeline 
project.

On Friday, November 3, 2017 at 2:42:01 PM UTC-4, t3knoid wrote:
>
> I've recently upgraded Jenkins and plug-ins. After doing so, now every job 
> configuration page loads very slow. Some at least 7-8 minutes. I've read 
> that I need to profile the running java process with something like jstack 
> to see which thread is taking a long time to complete. I tried that and I 
> am at a lost as how to interpret the stack. This happened after updating to 
> v2.87 and some of the plugins. I know this info is not much help, but I'd 
> appreciate how can I go about getting more info on how to troubleshoot this.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/7156061b-2965-437f-9abf-8cc66c911e01%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Circular dependencies in plugins

2017-11-03 Thread Slide
That's odd, according to the pom [1] the only non-test dependency is on the
structs plugins.

Can you show a screenshot or something that shows this dependency info?

1 -
https://github.com/jenkinsci/workflow-step-api-plugin/blob/master/pom.xml#L82



On Fri, Nov 3, 2017 at 10:23 AM CLOSE Dave 
wrote:

> On 11/03/17 03:05, Daniel Beck wrote:
> > If you're not using Declarative (or even Pipeline), I'd start
> > disabling things there. (On the plugins manager UI, disabling plugins
> > enables checkboxes of plugins that can then be disabled because
> > nothing else depends on them, etc. -- much easier than deleting one
> > by one.)
>
> Every one of the Pipeline plugins, all 23 of them, claim to be dependent
> on some other plugins. None offer the option to disable. The chain seems
> endless. And many of the plugins asserted to be dependent are ones I
> want to keep, such as Pipeline: Step API says it is dependent on Gerrit
> Trigger and Pipeline: SCM Step says it is dependent on Git plugin.
> --
> Dave Close, Thales InFlyt Experience, Irvine California USA.
> cell +1 949 394 2124 <(949)%20394-2124>, dave.cl...@us.thalesgroup.com
>
>  "If your aren't in over your head,
>   how do you know how tall you are?" -- T. S. Eliot
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/b3a73eed-c867-9057-c65a-fec4f5136850%40us.thalesgroup.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: Circular dependencies in plugins

2017-11-03 Thread CLOSE Dave
On 11/03/17 03:05, Daniel Beck wrote:
> If you're not using Declarative (or even Pipeline), I'd start
> disabling things there. (On the plugins manager UI, disabling plugins
> enables checkboxes of plugins that can then be disabled because
> nothing else depends on them, etc. -- much easier than deleting one
> by one.)

Every one of the Pipeline plugins, all 23 of them, claim to be dependent
on some other plugins. None offer the option to disable. The chain seems
endless. And many of the plugins asserted to be dependent are ones I
want to keep, such as Pipeline: Step API says it is dependent on Gerrit
Trigger and Pipeline: SCM Step says it is dependent on Git plugin.
-- 
Dave Close, Thales InFlyt Experience, Irvine California USA.
cell +1 949 394 2124, dave.cl...@us.thalesgroup.com

 "If your aren't in over your head,
  how do you know how tall you are?" -- T. S. Eliot

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b3a73eed-c867-9057-c65a-fec4f5136850%40us.thalesgroup.com.
For more options, visit https://groups.google.com/d/optout.


Re: SharedLibrary, clone, using resources

2017-11-03 Thread jerome
Jenkins checkout the Jenkinsfile first and then the scm inside the jenkins 
checkout. If you can, try to enable the Lightweight checkout on the 
jenkinsfile checkout.

Side note, I for one make a repos for the jenkins file that is not the same 
as the code repos, so my server and build setup evolve at different pace as 
the code and I can build old version into a recent configuration (jenkins 
updated and jenkinsfile needed to be modified for a while). I did more 
enjoy doing it this way then having my Jenkins file static into a revision 
of the source repos. I can also try different Jenkinsfile with the same 
source code Jenkinsfile checkout use build parameter.
Side note #2: I also use mercurial with sub repos, so my jenkinsfile pull 
subrepos for the shared scripts/lib/exe that I use during the build 
process, this work like a charm.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3bbb7e7e-f34b-47b6-9218-84dd8014a009%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: SharedLibrary, clone, using resources

2017-11-03 Thread Mark Waite
On Fri, Nov 3, 2017 at 10:37 AM itchymuzzle  wrote:

> I have this same question.
>

I thought that the branch source plugins (GitHub, Gitea, and possibly
Bitbucket) provide a technique to avoid the copy of the full repository to
retrieve the Jenkinsfile.

However, if you're trying to avoid cloning the shared library repository,
I'm not sure what that will gain, since the shared library repository needs
to provide multiple files, not just the single Jenkinsfile.

I think it is wise to keep the size of the shared library repository small,
containing only shared library components.  You don't want unrelated
changes causing concern for the users of the shared library.

Mark Waite

> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/c42cc35d-d081-4cf1-8435-bc96b9abf386%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 Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtHuBLGgTt6nfJFVZ4hAoeVWNYn7yqNvPoweNzq4Bg2RxQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: SharedLibrary, clone, using resources

2017-11-03 Thread itchymuzzle
I have this same question.  

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


Re: SharedLibrary, clone, using resources

2017-11-03 Thread Jakub Michalec


W dniu piątek, 3 listopada 2017 16:26:08 UTC+1 użytkownik itchymuzzle 
napisał:
>
> Please post something which is readable.  Thanks.
>

Hello,
I have question regarding SharedLibrary, I put some powershell script 
(/scripts/…) in same repository and I want to use them during builds.

Atm, I use it like this

@Library('JenkinsSharedLibrary') _


pipeline {
agent { node { label 'azure' } }


options {
skipDefaultCheckout()
}

stages {
stage('Clean Workspace') {
steps {   
deleteDir()
checkout scm
}
}


stage()
}


Thanks to that in workspace I get all scripts from repo, but jenkins job is 
cloning repo two times
• First, to get Job from Repository (Pipeline from SCM)
• Second, in checkout scm

In logs

Get job:

Obtained jobs/Cloud_Deployment/cloud_azure_polling.groovy from git http:
//git.***.jenkinssharedlibrary.git
Loading library JenkinsSharedLibrary@master



Clone Lib:
Cloning the remote Git repository
Cloning repository http://git.***./jenkinssharedlibrary.git



Is it possible to made it in one step? 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/75356e13-9354-4f50-86c7-1570f9127f2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: SharedLibrary, clone, using resources

2017-11-03 Thread itchymuzzle
Please post something which is readable.  Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/cc1a1fd3-d2c6-440c-b3be-642f1634dbc4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Fail to install Jenkins slave agent as a service

2017-11-03 Thread itchymuzzle

>
>
> now with the running slave click the menu item to "Install as Service".
>
> Just discovered this page 

 which 
helps me understand this step, I think.

It seems that you run a web browser on the Windows instance, where you have 
the slave/agent, and use the URL for the Jenkins master web page.

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


SharedLibrary, clone, using resources

2017-11-03 Thread Jakub Michalec


Hello,

I have question regarding SharedLibrary, I put some powershell script 
(/scripts/…) in same repository and I want to use them during builds.

 

Atm, I use it like this

 

@Library('JenkinsSharedLibrary') _

 

pipeline {

agent { node { label 'azure' } }

 

options {

skipDefaultCheckout()

}



stages {

stage('Clean Workspace') {

steps {   

deleteDir()

checkout scm

}

}

 

stage()

}

 

Thanks to that in workspace I get all scripts from repo, but jenkins job is 
cloning repo two times

   - First, to get Job from Repository (Pipeline from SCM) 
   - Second, in checkout scm 

 

In logs

 

Get job:

 

Obtained jobs/Cloud_Deployment/cloud_azure_polling.groovy from git 
http://git.***.jenkinssharedlibrary.git

Loading library JenkinsSharedLibrary@master

 

Clone Lib:

Cloning the remote Git repository

Cloning repository http://git.***./jenkinssharedlibrary.git

 

Is it possible to made it in one step?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9d0a6fd4-bd4b-44e5-b774-9a043fbc05fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Fail to install Jenkins slave agent as a service

2017-11-03 Thread itchymuzzle

>
>
> - download slave-agent.jnlp from agent page - I think it's under this 
> 'launch via web' button, or something, I don't remember what it says :) 
> - open a command window with "Run as Administrator".
> - change directory to the place where you saved the slave-agent.jnlp file.
> - run "slave-agent.jnlp"
> - now with the running slave click the menu item to "Install as Service".
> - run services.msc and you can find and configure your service
>

This is just confusing.  You need to give us more detail if you want to be 
helpful.  Please be helpful.

> now with the running slave click the menu item to "Install as Service".
 
Where are you, when you are doing this?  Are you on the Jenkins web page?  
If so, from which instance/host/node are you running the web page?  

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/bbcb7c5c-1100-4ab4-9a08-7e8bff335279%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Getting Current Build in Groovy

2017-11-03 Thread Lee Meador
I'm a little fuzzy on all the ins and outs of it but I believe that line of
groovy code above always runs on the master anyway.

The Java class Thread has no property 'executable' so its telling you the
truth.

On Thu, Nov 2, 2017 at 1:02 PM, Neel Desai  wrote:

> But are you runnint this job on master JVM? What about running it from
> slave node? How can I get the value? I am trying to execute it from slave
> node and it is giving me error. It is strict requirement for me to run it
> from slave machine only.
>
> On Thursday, March 15, 2012 at 8:47:03 AM UTC-5, Jay Flowers wrote:
>>
>> I figured it out...  I was not running the Groovy script as the build
>> step type "Execute system Groovy script"
>>
>>
>> On Thu, Mar 15, 2012 at 9:00 AM, Jay Flowers  wrote:
>>
>>> This use to work for me:
>>>
>>> def build = Thread.currentThread().executable
>>>
>>> Now I get this error:
>>>
>>> Caught: groovy.lang.MissingPropertyException: No such property: executable 
>>> for class: java.lang.Thread
>>> at hudson2123325863987208585.run(hudson2123325863987208585.groovy:5)
>>>
>>>
>>> Why oh why is the happening? :-)  Anyone know...
>>>
>>>
>>> --
>>> Jay Flowers
>>> --
>>> http://jayflowers.com
>>> -
>>>
>>
>>
>>
>> --
>> Jay Flowers
>> --
>> http://jayflowers.com
>> -
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/0e6ecdfa-94c1-4c4a-8140-4f2bbbcefde4%40googlegroups.
> com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
-- Lee Meador
Sent from gmail. My real email address is lee AT leemeador.com

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


Re: Using the same label multiple times in pipeline

2017-11-03 Thread Lee Meador
You can use 'stash' to solve this problem since you can't count on the same
workspace in part 3 as in part 1 nor, if it is the same workspace can you
count on it being unchanged in the interim. You can get confused by trying
it and maybe you do get it this time but not next time. Further, depending
on whether one build agent has the both labels, A and B, all three parts
could happen in the same workspace.

node('A') {
... some stuff that creates the files you want to use in part 3
(perhaps load stuff from source code repo and build everything)
 stash 'stuff'
 }
node('B') { }
node('A') {
unstash 'stuff'
  use those files
 }

You need to understand the implications of what stash does. Basically it
takes all files in the workspace (unless you specify specific ones) and
stores them compressed on the master. the unstash retrieves them and puts
them in the workspace. Perhaps you want to delete the workspace content
before unstashing or maybe move to a subfolder.

On Thu, Nov 2, 2017 at 10:14 AM, Andreas Tscharner 
wrote:

> On 30.10.2017 03:50, Daniel Becroft wrote:
>
>> Hi,
>> I'm experimenting with the scripted pipeline, and have a question about
>> the use of node('') with a label. If I have the following scenario:
>>
>> node('A') { }
>> node('B') { }
>> node('A') { // Which node will be used here? }
>>
>> Is there any guarantee that the second node() step for "A" will hit the
>> same slave as the first one, or will it use whichever slave is now
>> available? I'd like for the first node() to allocate one from the pool of
>> slaves with the label of "A", but then the second one to somehow reuse the
>> first one (there might be some cleanup tasks, etc that need to happen on
>> the original node).
>>
>
> I would try something like this:
>
> node('A') {
>   ...
>   ...
>   node('B') {
> ...
> ...
>   }
>   ...
>   ...
> }
>
> HTH and best regards
> Andreas
> --
> Andreas Tscharner sternenfe...@gmail.com
>
> Gordon's Law:
> If you think you have the solution, the question was poorly phrased.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/ms
> gid/jenkinsci-users/2ca95dc7-20f3-385e-bf87-c88ddef5%40gmail.com.
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
-- Lee Meador
Sent from gmail. My real email address is lee AT leemeador.com

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


Re: github enterprise self signed certs

2017-11-03 Thread itchymuzzle
Free ones

https://letsencrypt.org/

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/998feca5-4676-4295-9fd8-a4df11d38a7b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Real-time command result

2017-11-03 Thread Mirek S
W dniu piątek, 3 listopada 2017 13:54:43 UTC+1 użytkownik Victor Martinez 
napisał:
 

> - Can you just use Pipeline and split your tests in stages and parallel 
> executions? It won't fulfil your initial requirement but might help you to 
> orchestrate your builds with parallel test executions and with fast 
> feedback, there is a nice entry about it: 
> https://jenkins.io/blog/2016/06/16/parallel-test-executor-plugin/
>
 
Thanks for the idea! Unfortunately I'm using highly customized test 
framework and I didn't manage to get the parallel test plugin to work with 
it. 

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


Re: github enterprise self signed certs

2017-11-03 Thread Mark Waite
On Fri, Nov 3, 2017 at 1:58 AM Tobias Breuer 
wrote:

> Hi, for anyone else having similar issues. I've finally solved it for my
> scenario.
>
> Originally I've added the PEM information about our self signed
> certificate to the keystore of the java installation on my machine.
> After having a second look at the jenkins config, it turned out, that
> jenkins was using its own jre version which is located in the installation
> dir of jenkins itself (I'm running on Windows).
> So I had to adapt the keystore within this particular jre and not the one
> installed in "Program Files". Now jenkins can successfully communicate with
> our GitHub enterprise server using a self signed certificate.
>
> Now I only have to figure out why the git plugin cannot checkout even
> though git itself can do it via command line.
> Step by Step...
>
>
Tobias,

Can you help me understand the use case for self-signed certificates on a
commercially purchased product?

Your organization has paid to install, configure, and use GitHub
Enterprise.  It seems like you would also choose to purchase a certificate
from a certificate authority.  What are the barriers that prevent you from
installing a certificate from a certificate authority, rather than
generating one yourselves?

Thanks,
Mark Waite (I don't test the git plugin with self-signed certificates)


> Am Donnerstag, 2. November 2017 17:24:24 UTC+1 schrieb Tobias Breuer:
>>
>> Hi,
>>
>> I'm currently running into the same issue. Did you find any answer to
>> this yet?
>>
>> Am Freitag, 10. Februar 2017 20:26:21 UTC+1 schrieb Ryan Golhar:
>>>
>>> Hi all - I'm trying to set up Jenkins with our enterprise github
>>> install.  We're using https with self-signed certificates.   I've added the
>>> CA PEM to /etc/pki/tls/certs/ca-bundle.crt, and can verify this works by
>>> using 'curl https://our.enterprise.github.com/api/v3/'
>>>
>>> Now, in Jenkins -> Manage Jenkins, under 'GitHub Enterprise Servers', I
>>> enter the same API endpoint but get the message "The endpoint does not look
>>> like a GitHub Enterprise (verify network and/or try again later)".  My
>>> Jenkins log file shows:
>>> Feb 10, 2017 7:18:57 PM
>>> org.jenkinsci.plugins.github_branch_source.Endpoint$DesciptorImpl
>>> doCheckApiUri
>>> WARNING: Server returned HTTP response code: -1, message: 'null' for
>>> URL: https://our.enterprise.github.com/api/v3/
>>>
>>> I'm not really sure how to proceed as this point.   Has anyone run into
>>> this before?
>>>
>>> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/679f7362-dfe7-4c8e-abad-c9da2f433abb%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 Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGZcZMk2-iq1U7%2BLJKAY5U67RGJZXNt%2BYj3CoBC%2BS2JMA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Does Docker Slave Plugin support Pipeline Maven Integration Plugin?

2017-11-03 Thread Dan Tran

it is fixed at https://issues.jenkins-ci.org/browse/JENKINS-40484 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b7fde7c2-04af-4fed-8624-bc9d54a59795%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Real-time command result

2017-11-03 Thread Mirek S
Hello,

I'm looking for some kind of real-time, scriptable monitor for every build 
that's running. 

The example scenario: Basically when I'm running tests I always ssh to the 
jenkins service and run "watch -n 0.1 'tail -n 0.1 
workspace/jobname/test_result_file*'" to see if given test execution has 
finished (I have parallel tests going on). I'd love to see real time result 
of some command in every build running in Jenkins. Have anyone heard of a 
plugin that would accomplish this?

The only solution I came up with is to create external auto-refreshing 
cgi-bin service and embed it via iframe into build view, but if anyone has 
better idea, please let me know.

Regards,
MS.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ec8cb4e4-5d21-4ddb-8e77-611e574087dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Circular dependencies in plugins

2017-11-03 Thread Daniel Beck

> On 3. Nov 2017, at 02:17, CLOSE Dave  wrote:
> 
> I think part of the trouble with the seemingly endless dependency chain
> may be the Pipeline plugins. Most if not all of the other plugins seem
> to define the other plugins on which they are dependent. The Pipeline
> plugins, in contrast, define only the other plugins which depend on them.

Not really -- plugins always define what they depend on, not the other way 
around.

In this case, the 'Pipeline' aggregator plugin depends on Declarative Pipeline. 
'Pipeline' itself has no functionality, it just aggregates all 'default' 
Pipeline functionality.

If you're not using Declarative (or even Pipeline), I'd start disabling things 
there. (On the plugins manager UI, disabling plugins enables checkboxes of 
plugins that can then be disabled because nothing else depends on them, etc. -- 
much easier than deleting one by one.)

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/B26F9A82-8346-460D-9100-D108DCC00E31%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: github enterprise self signed certs

2017-11-03 Thread Tobias Breuer
Hi, for anyone else having similar issues. I've finally solved it for my 
scenario.

Originally I've added the PEM information about our self signed certificate 
to the keystore of the java installation on my machine.
After having a second look at the jenkins config, it turned out, that 
jenkins was using its own jre version which is located in the installation 
dir of jenkins itself (I'm running on Windows).
So I had to adapt the keystore within this particular jre and not the one 
installed in "Program Files". Now jenkins can successfully communicate with 
our GitHub enterprise server using a self signed certificate.

Now I only have to figure out why the git plugin cannot checkout even 
though git itself can do it via command line. 
Step by Step...

Am Donnerstag, 2. November 2017 17:24:24 UTC+1 schrieb Tobias Breuer:
>
> Hi,
>
> I'm currently running into the same issue. Did you find any answer to this 
> yet?
>
> Am Freitag, 10. Februar 2017 20:26:21 UTC+1 schrieb Ryan Golhar:
>>
>> Hi all - I'm trying to set up Jenkins with our enterprise github install. 
>>  We're using https with self-signed certificates.   I've added the CA PEM 
>> to /etc/pki/tls/certs/ca-bundle.crt, and can verify this works by using 
>> 'curl https://our.enterprise.github.com/api/v3/'
>>
>> Now, in Jenkins -> Manage Jenkins, under 'GitHub Enterprise Servers', I 
>> enter the same API endpoint but get the message "The endpoint does not look 
>> like a GitHub Enterprise (verify network and/or try again later)".  My 
>> Jenkins log file shows:
>> Feb 10, 2017 7:18:57 PM 
>> org.jenkinsci.plugins.github_branch_source.Endpoint$DesciptorImpl 
>> doCheckApiUri
>> WARNING: Server returned HTTP response code: -1, message: 'null' for URL: 
>> https://our.enterprise.github.com/api/v3/
>>
>> I'm not really sure how to proceed as this point.   Has anyone run into 
>> this before?   
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/679f7362-dfe7-4c8e-abad-c9da2f433abb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.