Re: 1 build run at a time

2021-04-29 Thread James Nord
You could define a single lockable resource and then ensure all your jobs 
grab it.
https://plugins.jenkins.io/lockable-resources/



On Tuesday, 20 April 2021 at 15:16:02 UTC+1 priy...@gmail.com wrote:

> Hi All,
>
> I have two branches A and B. 2 builds from 2 branches are running at the 
> same time, 1 will wait for the other to complete first. I used 
> disableConcurrentBuilds(), 
> it didnt work for my scenario. Please share your thoughts.
>
> 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/3cb39dcf-f5a8-48fe-8809-92da35f2d025n%40googlegroups.com.


Re: Master Jenkins High CPU utilization

2021-04-29 Thread James Nord
Hi Dhaval,

A single thread dump (or even multiple) is not enough to see why the server 
is consuming excessive cpu.

https://stackoverflow.com/a/29148553 will show how how to track the CPU to 
a specific (or set of) java threads.
Once armed with that, then the thread dump will help us see what those 
threads are doing and may give an indication as to how you can fix or 
prevent it (or if it looks to be a bug aid in filing a detailed bug report)

/Janes

On Thursday, 29 April 2021 at 17:21:05 UTC+1 dhav...@gmail.com wrote:

> More than 15 days of CPU utilization increased for only Master Jenkins. 
> However, slave Jenkins resources (RAM & CPU) is in a normal state.
>
> Attaching thread dump of Master Jenkins process. What could be the problem 
> and what is the fix for this?
>
> -- 
> Thanks & Regards
> Dhaval Jaiswal
>

-- 
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/0b71199d-8b66-4c04-8814-a868eb4b1c4cn%40googlegroups.com.


Re: How to fix workspace deletion on slave node

2021-04-29 Thread DHAVAL JAISWAL


Can I set the following arguments?. Will it resolve my problem

JAVA_ARGS="-Dhudson.model.WorkspaceCleanupThread.disabled=true"

On Friday, April 16, 2021 at 10:02:44 PM UTC+5:30 m.s.sent...@gmail.com 
wrote:

> Agree. You can stash 
> 
>  
> artifacts generated in the workspaces to the controller. Be aware if you 
> are using parallel builds automatic workspace deletion can cause job 
> failures when the workspace is deleted automatically while the job is in 
> progress. This is a known issue with Jenkins - 
> https://issues.jenkins.io/browse/JENKINS-51724
>
> THanks,
> Senthil.
>
> On Fri, Apr 16, 2021 at 3:43 AM 'Björn Pedersen' via Jenkins Users <
> jenkins...@googlegroups.com> wrote:
>
>> Best idea is to avoid relying on the workspace being preserved at all . 
>> So if you  are deplyoing something, then  do it by 
>> installing/copying/whatever  the final artifacts in a place outside the 
>> workspace.
>>
>> m.s.sent...@gmail.com schrieb am Freitag, 16. April 2021 um 03:18:23 
>> UTC+2:
>>
>>> This is a system property that should be set when starting up jenkins. 
>>> You would want to set *hudson.model.WorkspaceCleanupThread.disabled*  
>>> to true to disable deletion of workspaces.
>>>
>>> Usage is documented here: 
>>> https://www.jenkins.io/doc/book/managing/system-properties/
>>>
>>> On Thu, Apr 15, 2021 at 11:09 AM DHAVAL JAISWAL  
>>> wrote:
>>>
 Workspace on Slave node is deleted if the Job is not running/active 
 from Master Jenkins for some days.

 How shall I fix this issue?

 While referring to some forum advising to fix 
 *hudson.model.WorkspaceCleanupThread.disabled* [ false ]. However, I 
 am unable to find this parameter.  

 Guide me on how can I fix this issuer permanently & save my workspace 
 and build.

 I see one option in Jenkins is DISCARD OLD BUILD. However, I assume 
 that check is to retain the build (to see the history) on Master Jenkins. 

 If needed I can help with some more information.

 -- 
 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-use...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/jenkinsci-users/CAH5ShBiSTXMYHuhW%2Bthxj3yMAvAOQWqcxgAUJwSM7ZM4kvGBYA%40mail.gmail.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-use...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/12f2089a-ff4b-4117-8e7f-a6159067e81en%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/506549cc-7cac-4b30-b890-fb7f8bf6a939n%40googlegroups.com.


Jenkins user is no member of docker group

2021-04-29 Thread Chris Dams
Dear all,

I have a jenkins slave running on linux (jenkins version 2.249.2). The 
strange thing is that when I log into this slave via ssh using the jenkins 
account I can see (using the groups command) that 'jenkins' is member of 
some groups, including the docker group. However, when I put an "sh 
'groups' "line in the Jenkinsfile this user jenkins is not a member of any 
group besides the 'jenkins' group. This is a problem because it means that 
I cannot do a docker build from this jenkins file. Some time ago this used 
to be work but it stopped working for no apparent reason.

Do any of you have any idea what to do about this?

Thanks in advance!
Chris

-- 
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/cdcd58a2-4569-4654-b84b-51a3dfdff830n%40googlegroups.com.


Re: git-plugin 4.7.1 fails

2021-04-29 Thread Mark Waite
I've seen reports of that type of failure when the agent JDK was outdated
or the agent.jar file was outdated.  I have the "Version Node Monitors"
plugin  installed on my Jenkins
instance so that I can see the agent remoting versions and agent JVM
versions that are connected to my controller.

On Thu, Apr 29, 2021 at 3:52 AM Morten Bjoernsvik <
morten.bjoerns...@gmail.com> wrote:

>
> git 4.7.0
> git-client 3.7.1
> Host is ubuntu 18.04 with kernel 5.4.0-72-generic
>
> On Thursday, April 29, 2021 at 9:45:42 AM UTC+2 ice...@googlemail.com
> wrote:
>
>> We are running git-4.7.1 without problems. Check that git-client-plugin
>> 3.7.1 is also installed.
>>
>> Björn
>>
>> morten.b...@gmail.com schrieb am Donnerstag, 29. April 2021 um 09:27:39
>> UTC+2:
>>
>>>
>>> The recommended git tool is: NONE
>>> 07:00:00 FATAL: org.jenkinsci.plugins.gitclient.GitClient
>>> 07:00:00 java.lang.NoClassDefFoundError:
>>> org.jenkinsci.plugins.gitclient.GitClient
>>> 07:00:00 at
>>> org.jenkinsci.plugins.gitclient.Git$GitAPIMasterToSlaveFileCallable.invoke(Git.java:168)
>>> 07:00:00 at
>>> org.jenkinsci.plugins.gitclient.Git$GitAPIMasterToSlaveFileCallable.invoke(Git.java:149)
>>> 07:00:00 at hudson.FilePath.act(FilePath.java:1172)
>>> 07:00:00 at hudson.FilePath.act(FilePath.java:1155)
>>> 07:00:00 at
>>> org.jenkinsci.plugins.gitclient.Git.getClient(Git.java:121)
>>> 07:00:00 at hudson.plugins.git.GitSCM.createClient(GitSCM.java:906)
>>> 07:00:00 at hudson.plugins.git.GitSCM.createClient(GitSCM.java:837)
>>> 07:00:00 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1290)
>>> 07:00:00 at hudson.scm.SCM.checkout(SCM.java:505)
>>> 07:00:00 at
>>> hudson.model.AbstractProject.checkout(AbstractProject.java:1215)
>>>
>>> reverting to 4.7.0 and it works again.
>>>
>>> There is no bug submit here: https://github.com/jenkinsci/git-plugin
>>>
>>> jenkins 2.290
>>>
>>> --
>>> MortenB, Oslo, Norway
>>>
>>>
>>> --
> 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/1089aac0-52f1-4a29-a80f-a6a19251227dn%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/CAO49JtHr6DHjH2%3Dp%2B%2B5rOhc0BOrZ_LOB%2BGgLGA5O065nMrv2jQ%40mail.gmail.com.


Re: Empty error message box on clicking apply button in Jenkins 2.277+

2021-04-29 Thread saqib butt
Thanks, Mark, I am finally able to run the latest Jenkins 2.290 with all 
the latest plugins (no plugin in Plugin's Manager update queue) without any 
errors.

On Thursday, 29 April 2021 at 08:08:21 UTC+5 Mark Waite wrote:

> My initial suspicion is that you have not yet performed this step:
>
> If that set of steps does not resolve the issue, then consult the list of 
> plugins 
>> with known tables to divs issues 
>> .  
>> Uninstall any of those plugins or volunteer to adopt those plugins and 
>> provide the necessary fixes for them.
>
>
> There are likely plugins in your installation that have problems with 
> configuration form modernization. 
>
> On Wed, Apr 28, 2021 at 1:20 AM saqib butt  wrote:
>
>> Hi
>>
>> In the pursuit of resolving the Jenkins warnings, I do the following 
>> steps to get rid of all warnings, 
>> 1. Update the plugins 
>> 2. Update the Jenkins to 2.287.
>>
>> Now Jenkins is showing no warning at all, but when I do create a 
>> 'Freestyle' project in Jenkins and open it to configure, the CSS styling 
>> somehow is not loaded (broken_ui1.png ... broken_ui4.png) and I am getting 
>> the following errors mentioned in to attach file "jenkins.log", this log is 
>> taken from the Jenkin's UI.
>>
>> Also, I am attaching some images where CSS or JavaScript does not seem to 
>> load properly.
>>
>> At the end the blank Error message popup on click 'Apply' remains 
>> (error_popup.png).
>>
>> On Wednesday, 28 April 2021 at 07:10:46 UTC+5 saqib butt wrote:
>>
>>> Thanks, Mark for your time and guidance. 
>>>
>>> On Tuesday, 27 April 2021 at 23:21:39 UTC+5 Mark Waite wrote:
>>>
 Jenkins 2.277.1 modernizes the configuration form handling to use HTML 
 div markup for layout instead of using HTML table markup for layout.  The 
 changes are described in the Jenkins 2.277.1 webinar 
  and its slides 
 
 .

 As part of the Jenkins 2.277.1 changelog 
  and upgrade guide 
 ,
  
 the following steps are recommended:

- Remove unused plugins from your installation
- Remove deprecated plugins from your installation (like the 
findbugs plugin, the DRY plugin, the checkstyle plugin, the Visual 
 Studio 
Team plugin, etc.)
- Remove plugins with security vulnerabilities from your 
installation (like the TFS plugin)
- Update your plugins to the latest releases (this assures that the 
latest authentication plugins are installed before the Jenkins version 
upgrade)
- Upgrade your Jenkins version
- Upgrade your plugins to the latest releases (get the latest 
plugin releases for the new Jenkins installation)

 If that set of steps does not resolve the issue, then consult the list 
 of plugins with known tables to divs issues 
 .  
 Uninstall any of those plugins or volunteer to adopt those plugins and 
 provide the necessary fixes for them.

 If all those steps still do not resolve the issue, then open a bug 
 report at https://issues.jenkins.io with ALL THE INFORMATION REQUESTED 
 AT "How to report a bug" 
 
  including 
 the Jenkins version and the *names and versions* of all installed 
 plugins.  Forgive my shouting, but the common practice seems to be to 
 submit an issue "this is not working" without enough information to allow 
 others to help.  Days later, the submitter updates the bug report with the 
 necessary information and hopes someone will help them.

 Please don't open the bug report until you've completed all the 
 preceding steps.

 Mark Waite

 On Tue, Apr 27, 2021 at 11:48 AM SAQIB  wrote:

> Hi 
>
> I am getting an "Error" popup when I click on the 'Apply' button after 
> opening any current Jenkins job as well as opening a new Jenkins job.
>
> This only happens when I move my Jenkins to version 2.277+.
>
> When I downgrade my Jenkins to any of the Jenkins version 2.263+, 
> there is no error message when clicking the 'Apply' button. 
>
> I am running plugins having dependency over 2.277+.
>
> I am attaching a snapshot for your reference.
>
> Thanks,
> Saqib
>
> -- 
> 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-use...@googlegro

Re: git-plugin 4.7.1 fails

2021-04-29 Thread Morten Bjoernsvik
 
git 4.7.0
git-client 3.7.1 
Host is ubuntu 18.04 with kernel 5.4.0-72-generic

On Thursday, April 29, 2021 at 9:45:42 AM UTC+2 ice...@googlemail.com wrote:

> We are running git-4.7.1 without problems. Check that git-client-plugin  
> 3.7.1 is also installed.
>
> Björn
>
> morten.b...@gmail.com schrieb am Donnerstag, 29. April 2021 um 09:27:39 
> UTC+2:
>
>>
>> The recommended git tool is: NONE
>> 07:00:00 FATAL: org.jenkinsci.plugins.gitclient.GitClient
>> 07:00:00 java.lang.NoClassDefFoundError: 
>> org.jenkinsci.plugins.gitclient.GitClient
>> 07:00:00 at 
>> org.jenkinsci.plugins.gitclient.Git$GitAPIMasterToSlaveFileCallable.invoke(Git.java:168)
>> 07:00:00 at 
>> org.jenkinsci.plugins.gitclient.Git$GitAPIMasterToSlaveFileCallable.invoke(Git.java:149)
>> 07:00:00 at hudson.FilePath.act(FilePath.java:1172)
>> 07:00:00 at hudson.FilePath.act(FilePath.java:1155)
>> 07:00:00 at 
>> org.jenkinsci.plugins.gitclient.Git.getClient(Git.java:121)
>> 07:00:00 at hudson.plugins.git.GitSCM.createClient(GitSCM.java:906)
>> 07:00:00 at hudson.plugins.git.GitSCM.createClient(GitSCM.java:837)
>> 07:00:00 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1290)
>> 07:00:00 at hudson.scm.SCM.checkout(SCM.java:505)
>> 07:00:00 at 
>> hudson.model.AbstractProject.checkout(AbstractProject.java:1215)
>>
>> reverting to 4.7.0 and it works again.
>>
>> There is no bug submit here: https://github.com/jenkinsci/git-plugin
>>
>> jenkins 2.290
>>
>> --
>> MortenB, Oslo, Norway
>>
>>
>>

-- 
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/1089aac0-52f1-4a29-a80f-a6a19251227dn%40googlegroups.com.


Re: git-plugin 4.7.1 fails

2021-04-29 Thread 'Björn Pedersen' via Jenkins Users
We are running git-4.7.1 without problems. Check that git-client-plugin  
3.7.1 is also installed.

Björn

morten.b...@gmail.com schrieb am Donnerstag, 29. April 2021 um 09:27:39 
UTC+2:

>
> The recommended git tool is: NONE
> 07:00:00 FATAL: org.jenkinsci.plugins.gitclient.GitClient
> 07:00:00 java.lang.NoClassDefFoundError: 
> org.jenkinsci.plugins.gitclient.GitClient
> 07:00:00 at 
> org.jenkinsci.plugins.gitclient.Git$GitAPIMasterToSlaveFileCallable.invoke(Git.java:168)
> 07:00:00 at 
> org.jenkinsci.plugins.gitclient.Git$GitAPIMasterToSlaveFileCallable.invoke(Git.java:149)
> 07:00:00 at hudson.FilePath.act(FilePath.java:1172)
> 07:00:00 at hudson.FilePath.act(FilePath.java:1155)
> 07:00:00 at org.jenkinsci.plugins.gitclient.Git.getClient(Git.java:121)
> 07:00:00 at hudson.plugins.git.GitSCM.createClient(GitSCM.java:906)
> 07:00:00 at hudson.plugins.git.GitSCM.createClient(GitSCM.java:837)
> 07:00:00 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1290)
> 07:00:00 at hudson.scm.SCM.checkout(SCM.java:505)
> 07:00:00 at 
> hudson.model.AbstractProject.checkout(AbstractProject.java:1215)
>
> reverting to 4.7.0 and it works again.
>
> There is no bug submit here: https://github.com/jenkinsci/git-plugin
>
> jenkins 2.290
>
> --
> MortenB, Oslo, Norway
>
>
>

-- 
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/30b839fe-41e1-4ac5-ab74-ee7f0b7210b5n%40googlegroups.com.


git-plugin 4.7.1 fails

2021-04-29 Thread Morten Bjoernsvik

The recommended git tool is: NONE
07:00:00 FATAL: org.jenkinsci.plugins.gitclient.GitClient
07:00:00 java.lang.NoClassDefFoundError: 
org.jenkinsci.plugins.gitclient.GitClient
07:00:00 at 
org.jenkinsci.plugins.gitclient.Git$GitAPIMasterToSlaveFileCallable.invoke(Git.java:168)
07:00:00 at 
org.jenkinsci.plugins.gitclient.Git$GitAPIMasterToSlaveFileCallable.invoke(Git.java:149)
07:00:00 at hudson.FilePath.act(FilePath.java:1172)
07:00:00 at hudson.FilePath.act(FilePath.java:1155)
07:00:00 at org.jenkinsci.plugins.gitclient.Git.getClient(Git.java:121)
07:00:00 at hudson.plugins.git.GitSCM.createClient(GitSCM.java:906)
07:00:00 at hudson.plugins.git.GitSCM.createClient(GitSCM.java:837)
07:00:00 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1290)
07:00:00 at hudson.scm.SCM.checkout(SCM.java:505)
07:00:00 at 
hudson.model.AbstractProject.checkout(AbstractProject.java:1215)

reverting to 4.7.0 and it works again.

There is no bug submit here: https://github.com/jenkinsci/git-plugin

jenkins 2.290

--
MortenB, Oslo, Norway


-- 
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/930f8600-2ec4-4887-ac1f-9a4ccbf660a5n%40googlegroups.com.