Re: Problem with Jenkins email extension plugin

2020-06-05 Thread Mario Jauvin
I check and with ActiveDirectoryAuthenticationProvider the email address 
appears.  It is in ActiveDirectoryMailAddressResolverImpl where the email 
is null.

I suspect that the issue is in the method updateUserInfo in 
ActiveDirectoryUserDetail.  I will try to debug it.  It took quite a while 
to set this up.  I had to copy my plugins directory into the dev jenkins 
instance.  Will report back.  Maybe someone with active directory jenkins 
plugin knowledge can chime in.

On Thursday, June 4, 2020 at 4:55:29 PM UTC-4, slide wrote:
>
> I am not super familiar with the AD plugin, so I am not sure why it would 
> be returning null. Maybe you can raise an issue on Jira (when its back up) 
> for that plugin.
>
>
>

-- 
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/8a5d2797-9cc3-46ca-8a9c-d10e40b3d55bo%40googlegroups.com.


Jenkins Kubernetes plugin - scheduling hangs when there are more than 1000 builds in queue

2020-06-05 Thread Andrey Babushkin
Greetings Jenkins community!

My team uses Jenkins to run long validation cycles. We use Kubernetes 
plugin (we run our own bare-metal cluster) and many quick single test case 
builds.
Recently our number of test cases have grown drastically and we've noticed 
that scheduling of new builds is very slow despite we have enough compute 
resources in cluster.

To summarize the problem:

   - Jenkins has over 1000 builds in queue
   - They weren't started at the same time - number of builds grows from 
   zero to 1000 within 14 hours. We've added this delay to, well, prevent 
   Jenkins from hanging :)
   - Those builds schedule very slowly (so queue size decreases not as fast 
   as we desire)
   - There are enough resources in Kubernetes cluster - therefore slowness 
   isn't caused by long waiting time. Other Jenkins instances we have can 
   schedule builds quickly into the same Kubernetes (so Kubernetes is fine)
   - UI is responsive, but actions like configSubmit on jobs or nodes are 
   slow


This server runs only validation cycles, no builds are executed directly on 
master. We use Jenkins from official Docker image 2.222.3-jdk11 with 
Kubernetes plugin version 1.24. 
Hardware-wise we have server with two Intel(R) Xeon(R) CPU E5-2670 2.60GHz 
(8 cores each with hyper-threading enabled - 32 vCPU in total) and 128GB of 
RAM.
Jenkins container uses --network=host option, inbound (JNLP) agents 
provisioned by Kubernetes plugin use random port.
Settings of Kubernetes cloud we use:

[image: Annotation 2020-06-05 210612.png]
We've increased Max connections to Kubernetes API when the problem appeared 
(we thought we may have been bounded by number of connections).
I've attached plugins.txt file also and here are JVM options we use:
JAVA_OPTS=-Xms64G -Xmx64G
-XX:+HeapDumpOnOutOfMemoryError

-Dorg.jenkinsci.plugins.durabletask.BourneShellScript.HEARTBEAT_CHECK_INTERVAL=84000
-Dpermissive-script-security.enabled=no_security # don't do this in 
production
-Dorg.apache.commons.jelly.tags.fmt.timeZone=Europe/Moscow
-Dhudson.model.DirectoryBrowserSupport.CSP=
-Dfile.encoding=UTF-8

-Djenkins.displayurl.provider=org.jenkinsci.plugins.displayurlapi.ClassicDisplayURLProvider

-Xlog:gc*,gc+ref=debug,gc+heap=debug,gc+age=trace:file=/var/jenkins_home/gc-%p-%t.log:tags,uptime,time,level:filecount=10,filesize=500m
-XX:-UseCompressedOops
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=9090
-Dcom.sun.management.jmxremote.rmi.port=9090
-Dcom.sun.management.jmxremote.local.only=false
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false


As you can see we've tried to profile Jenkins with VisualVM. I have thread 
dump and snapshot, but I don't want to share them publicly. I can send it 
to you personally, if you want to take a look.
CPU was completely fine, around 20% and GC takes as little as 0.1%

[image: peak_cpu.png]


At this moment my team and me are out of guesses, so I'd appreciate any 
advice you have

-- 
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/7ea695e9-889f-486a-91b9-974a68e0f3d9o%40googlegroups.com.
ace-editor:1.1
ansicolor:0.6.2
ant:1.11
antisamy-markup-formatter:1.8
apache-httpcomponents-client-4-api:4.5.10-2.0
audit-trail:3.3
authentication-tokens:1.3
authorize-project:1.3.0
azure-commons:1.0.4
azure-container-agents:1.1.1
azure-credentials:2.0.1
badge:1.8
basic-branch-build-strategies:1.3.2
blueocean-autofavorite:1.2.4
blueocean-commons:1.22.0
blueocean-config:1.22.0
blueocean-core-js:1.22.0
blueocean-dashboard:1.22.0
blueocean-display-url:2.3.1
blueocean-events:1.22.0
blueocean-git-pipeline:1.22.0
blueocean-github-pipeline:1.22.0
blueocean-i18n:1.22.0
blueocean-jwt:1.22.0
blueocean-personalization:1.22.0
blueocean-pipeline-api-impl:1.22.0
blueocean-pipeline-editor:1.22.0
blueocean-pipeline-scm-api:1.22.0
blueocean-rest-impl:1.22.0
blueocean-rest:1.22.0
blueocean-web:1.22.0
bootstrap4-api:4.4.1-15
bouncycastle-api:2.18
branch-api:2.5.5
build-user-vars-plugin:1.5
build-with-parameters:1.4
cloudbees-folder:6.11.1
command-launcher:1.4
conditional-buildstep:1.3.6
configuration-as-code:1.35
copyartifact:1.43
credentials-binding:1.21
credentials:2.3.1
dashboard-view:2.12
data-tables-api:1.10.20-15
discard-old-build:1.05
display-url-api:2.3.2
docker-commons:1.16
docker-java-api:3.0.14
docker-workflow:1.21
dtkit-api:2.1.2
durable-task:1.33
email-ext:2.68
favorite:2.3.2
git-client:3.1.1
git-server:1.9
git:4.2.2
github-autostatus:3.6.1
gitlab-api:1.0.6
gitlab-branch-source:1.5.1
google-oauth-plugin:1.0.0
htmlpublisher:1.21
http_request:1.8.24
influxdb:2.1
jackson2-api

Automated jenkins setup

2020-06-05 Thread Wolfgang Gerlach


Hi,


I would like to start a Jenkins server within a docker-compose environment, and 
would like to have the setup and creation of a single
user and a token to be automated. I am ok with using the Jenkins API, but did 
not find a way to skip the need for manual Jenkins setup and token generation 
via web UI. Any help would be appreciated.

Wolfgang

-- 
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/5788d1f4-f5c8-409e-bfea-cfd6759c6a5bo%40googlegroups.com.


Re: Automated jenkins setup

2020-06-05 Thread Slide
I would recommend looking at the JCasC plugin (
https://www.jenkins.io/projects/jcasc/), it might be the best way to
achieve what you are looking for.

On Fri, Jun 5, 2020 at 2:34 PM Wolfgang Gerlach <
wolfganggerlach1...@gmail.com> wrote:

> Hi,
>
>
> I would like to start a Jenkins server within a docker-compose environment, 
> and would like to have the setup and creation of a single
> user and a token to be automated. I am ok with using the Jenkins API, but did 
> not find a way to skip the need for manual Jenkins setup and token generation 
> via web UI. Any help would be appreciated.
>
> Wolfgang
>
> --
> 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/5788d1f4-f5c8-409e-bfea-cfd6759c6a5bo%40googlegroups.com
> 
> .
>


-- 
Website: http://earl-of-code.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/CAPiUgVc%2Ba%2B97UXq05xJgjcBr2oKHSMJvRUUpHQT3FQqtoT1dFg%40mail.gmail.com.


Re: How to find who installed a Jenkins plugin

2020-06-05 Thread Vijay Gongle
Any leads ? 

Thanks in advance. 



Sent from my iPhone

> On Jun 4, 2020, at 5:00 PM, Vijay Gongle  wrote:
> 
> Is there a way to find out who and when was the plugin installed ? 
> Especially for all the plugins that are installed in jenkins. 
> 
> -- 
> 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/84435610-a75a-416f-ab2a-568c92baff88o%40googlegroups.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/72DBFFA5-49AF-42C7-8D7D-CAD6F42CB900%40gmail.com.


Re: Automated jenkins setup

2020-06-05 Thread Wolfgang Gerlach
thanks! that seems to be what I was looking for !

On Friday, June 5, 2020 at 6:27:16 PM UTC-5, slide wrote:
>
> I would recommend looking at the JCasC plugin (
> https://www.jenkins.io/projects/jcasc/), it might be the best way to 
> achieve what you are looking for.
>
> On Fri, Jun 5, 2020 at 2:34 PM Wolfgang Gerlach  > wrote:
>
>> Hi,
>>
>>
>> I would like to start a Jenkins server within a docker-compose environment, 
>> and would like to have the setup and creation of a single
>> user and a token to be automated. I am ok with using the Jenkins API, but 
>> did not find a way to skip the need for manual Jenkins setup and token 
>> generation via web UI. Any help would be appreciated.
>>
>> Wolfgang
>>
>> -- 
>> 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 jenkins...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/5788d1f4-f5c8-409e-bfea-cfd6759c6a5bo%40googlegroups.com
>>  
>> 
>> .
>>
>
>
> -- 
> Website: http://earl-of-code.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/2525a01b-7bf5-47a9-92cc-2c00bc485eb2o%40googlegroups.com.