Re: Standard way to configure Linux Slave

2018-12-04 Thread gotviseryon
Any inputs on this please?

On Tuesday, December 4, 2018 at 9:03:37 AM UTC-5, gotvi...@gmail.com wrote:
>
> What is the best or standard way to configure a Linux slave to the 
> Master?  These are the options that comes while we try to do the 
> configuration
>
> 1. Launch agent agents via ssh
> 2. Launch agent via Java Web Start
> 3. Launch agent via execution of command on master
> 4. Let Jenkins control this Windows slave as a Windows machine
>
> Our requirement is if the Slave VM reboots, we want the Jenkins service to 
> start automatically and the slave to connect to master without any 
> interruption.  Please suggest.
>

-- 
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/415b5e85-89ca-4461-8bd9-b8450aacfeeb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Standard way to configure Linux Slave

2018-12-04 Thread gotviseryon
What is the best or standard way to configure a Linux slave to the Master?  
These are the options that comes while we try to do the configuration

1. Launch agent agents via ssh
2. Launch agent via Java Web Start
3. Launch agent via execution of command on master
4. Let Jenkins control this Windows slave as a Windows machine

Our requirement is if the Slave VM reboots, we want the Jenkins service to 
start automatically and the slave to connect to master without any 
interruption.  Please suggest.

-- 
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/640bcf82-22be-4b64-9c71-f32bedc3bbf6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Backup and Restore

2018-11-27 Thread gotviseryon
I'm relatively new to all these and I'm just now realizing there are this 
many ways to use Jenkins (sorry for being dumb).  YES!!! like you said, we 
want to use a backup mechanism as we don't have any of these in place.  
Where can I find documentation or study materials for the stuff you 
mentioned here?  Would really appreciate if you can point me to some. 

On Tuesday, November 27, 2018 at 12:40:10 PM UTC-5, Mark Waite wrote:
>
> He's saying that if you don't need to backup and restore your job 
> definitions (possibly they are all multibranch Pipeline jobs that are easy 
> to recreate, or they are all defined with the Job DSL plugin so they will 
> be automatically recreated or they are defined in a Docker image) and don't 
> need to backup and restore your credential definitions (same reasons) and 
> don't need to backup and restore other configuration settings (possibly 
> because you're using Configuration as Code plugin to store your 
> configuration in a source control system), then there are backup concepts 
> that use a source control system as your backup system.
>
> In your use case, I suspect you want to use a backup.
>
> Mark Waite
>
> On Tue, Nov 27, 2018 at 7:50 AM > wrote:
>
>> I'm not sure what you are trying to say?
>>
>> On Monday, November 26, 2018 at 8:03:34 PM UTC-5, rajendraprasad reddy 
>> wrote:
>>>
>>> Hi ,
>>> I have another solution, just document the list of plugins in old 
>>> Jenkins server and instead of backup and restore plugins just reinstall 
>>> plugins on new Jenkins server.
>>>
>>> Thanks,
>>> Rajendra
>>>
>>> On Fri, 2 Nov, 2018, 02:06 >>
 We have a Jenkins instance running and we are trying to setup a backup 
 and restore mechanism in case of any mishaps.  We are looking for a full 
 backup of the Jenkins and so decided to go with PeriodicBackup plugin.  
 With this plugin, the backup works fine.  But, we are trying to restore it 
 in a completely new Jenkins setup and not able to restore.  When we pick 
 the backup file that we want to restore from, it says restoring, but 
 nothing happens.  Even after waiting out for over 30 mins, nothing is 
 restored.  As a work around, I stopped the Jenkins service, renamed the 
 'JENKINS_HOME' (/var/lib/jenkins) folder to 'jenkins_backup' and created 
 another folder called 'jenkins' in the same location.  In this folder, I 
 copied all the files from the backup and then started Jenkins (NOTE: I 
 didn't change the .owner file.  I'm using the .owner file of the new 
 Jenkins only).  Jenkins came up and I was able to see all the 
 configurations from the old one.  Everything was fine.  I let it like that 
 overnight and in the morning when I came and tried to access it, Jenkins 
 was way too slow and I was not able to save any new configuration.  When I 
 try I'm getting 
 java.io.ioexception: too many open files jenkins
 error.  I restarted the jenkins and it's taking too long for the UI to 
 come up.  Am I doing anything wrong here?  Any suggestions for my 
 requirement?

 P.S. - I tried SCMSync plugin and ThinBackup.  But, problem with these 
 are that they don't do full backup.  But, with ThinBackup both backup and 
 restore works fine.

 -- 
 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/0c58b4fa-4e8b-4c53-9ca9-b99397078fae%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-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/9d3fad8e-7bbe-4472-86dd-57ef3d0da960%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -- 
> Thanks!
> 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/ce0af9d3-07d0-4de3-915f-ecff4bf06e47%40googlegroups.com.
For more options, visit 

Re: Jenkins Backup and Restore

2018-11-27 Thread gotviseryon
We are looking for a full backup of the JENKINS_HOME folder (automated).  
We looked at SMC Sync plugin, ThinBackup, Backup and PeriodicBackup.  
PeriodicBackup was the only one which offered both.  But, with this we are 
facing the following issues

1) The values that we set for "# of backups" and the "# of days to store 
backup" does not work.  It keeps creating more and more without deleting 
the previous ones.
2) The restore feature does not work.  I took one backup and tried to 
restore a new Jenkins instance.  It says "restoring backup" in the UI, but 
no matter how long we wait, it doesn't restore.  I had to manually extract 
the file to the JENKINS_HOME folder.

On Tuesday, November 27, 2018 at 12:25:06 PM UTC-5, Jeff Pearce wrote:
>
> What issues are you seeing that prevent them from being good for 
> production scale?
>
>  
>
> *From: *> on behalf of "
> gotvi...@gmail.com " >
> *Reply-To: *"jenkins...@googlegroups.com " <
> jenkins...@googlegroups.com >
> *Date: *Tuesday, November 27, 2018 at 6:49 AM
> *To: *Jenkins Users >
> *Subject: *Re: Jenkins Backup and Restore
>
>  
>
> Tried out a bunch of them.  Unfortunately, none of them are good for a 
> production scale.
>
> On Monday, November 26, 2018 at 5:18:04 PM UTC-5, jxpe...@godaddy.com 
> wrote: 
>
> The beauty of Jenkins is that it's NOT built-in, but can be easily added 
> as a plugin (of which there are several).
>
> On Monday, November 26, 2018 at 1:41:19 PM UTC-8, gotvi...@gmail.com 
> wrote: 
>
> I wish for a tool like Jenkins it had a backup and restore option built in.
>
> On Monday, November 26, 2018 at 4:35:04 PM UTC-5, john.mellor wrote: 
>
> I have had restore issues with *ALL* of the backup plugins that I have 
> tried.  The problem is that they are using stupid mechanisms to copy 
> the filesystem that cannot correctly copy a symlink.  This breaks the 
> LastSuccessfulBuild and LastUnsuccessfulBuild and LastFailedBuild 
> symlinks, causing lots of secondary issues. 
>
> Doing my own using cpio or rsync in a cronjob only messes up copying 
> very large files that exceed the archive limits (4GB for cpio for 
> instance). 
>
>
> On Mon, 2018-11-26 at 21:12 +, Artur Szostak wrote: 
> > Just my opinion: but I would forget about the backup plugins in 
> > Jenkins for full production backups. They all do a poor job when it 
> > comes to a full backup for a production system that also needs high 
> > availability. The best that can be done at the moment is to run 
> > Jenkins on a file system or data store that is able to perform copy- 
> > on-write snapshots. From within Jenkins you will want to setup a 
> > simple job that triggers the copy-on-write snapshot when no other job 
> > is running. Then use your normal production backup solutions to 
> > backup the snapshot in the background. 
> > 
> > Cheers 
> > 
> > Artur 
> > 
> >  
> > From: jenkins...@googlegroups.com < 
> > jenkins...@googlegroups.com> on behalf of gotvi...@gmail.com 
> >  
> > Sent: 01 November 2018 21:36 
> > To: Jenkins Users 
> > Subject: Jenkins Backup and Restore 
> > 
> > We have a Jenkins instance running and we are trying to setup a 
> > backup and restore mechanism in case of any mishaps.  We are looking 
> > for a full backup of the Jenkins and so decided to go with 
> > PeriodicBackup plugin.  With this plugin, the backup works 
> > fine.  But, we are trying to restore it in a completely new Jenkins 
> > setup and not able to restore.  When we pick the backup file that we 
> > want to restore from, it says restoring, but nothing happens.  Even 
> > after waiting out for over 30 mins, nothing is restored.  As a work 
> > around, I stopped the Jenkins service, renamed the 'JENKINS_HOME' 
> > (/var/lib/jenkins) folder to 'jenkins_backup' and created another 
> > folder called 'jenkins' in the same location.  In this folder, I 
> > copied all the files from the backup and then started Jenkins (NOTE: 
> > I didn't change the .owner file.  I'm using the .owner file of the 
> > new Jenkins only).  Jenkins came up and I was able to see all the 
> > configurations from the old one.  Everything was fine.  I let it like 
> > that overnight and in the morning when I came and tried to access it, 
> > Jenkins was way too slow and I was not able to save any new 
> > configuration.  When I try I'm getting 
> > java.io.ioexception: too many open files jenkins 
> > error.  I restarted the jenkins and it's taking too long for the UI 
> > to come up.  Am I doing anything wrong here?  Any suggestions for my 
> > requirement? 
> > 
> > P.S. - I tried SCMSync plugin and ThinBackup.  But, problem with 
> > these are that they don't do full backup.  But, with ThinBackup both 
> > backup and restore works fine. 
> > 
> > -- 
> > 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 

Re: Increase Java heap size of Windows Slave

2018-11-27 Thread gotviseryon
Yes Jeff.  That's where I configured. 
JVM Options - "-Xmx3072m"



On Tuesday, November 27, 2018 at 1:07:10 PM UTC-5, Jeff Thompson wrote:
>
> I suggest you try configuring it at the configuration page for the node in 
> Jenkins. Look under the Advanced button for JVM options.
>
> Jeff Thompson 
>
> On Nov 27, 2018, at 7:32 AM, gotvi...@gmail.com  wrote:
>
> We have a Windows 2016 Slave.  The slave gets disconnected due to heap 
> memory maxing out.  How to increase the heap size to tackle this issue?  
> This is a bit urgent please.
>
> -- 
> 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/c1393ce1-03c2-43f4-b7df-58a14bb80ebc%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/9dad0670-29bd-4597-b40c-578cb1a0ef97%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Increase Java heap size of Windows Slave

2018-11-27 Thread gotviseryon
Thanks a lot Victor.  This helps.

On Tuesday, November 27, 2018 at 12:51:31 PM UTC-5, Victor Martinez wrote:
>
> It does depend on how that particular windows agent is launched. The below 
> references can help you:
> - https://issues.jenkins-ci.org/browse/JENKINS-3554
> - 
> https://support.cloudbees.com/hc/en-us/articles/204264000-Why-do-I-receive-java-lang-OutOfMemoryError-PermGen-space
>  
> might also help
>
>

-- 
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/b2bc2d80-d853-4420-97ad-717d35d6ea45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Backup and Restore

2018-11-27 Thread gotviseryon
I'm not sure what you are trying to say?

On Monday, November 26, 2018 at 8:03:34 PM UTC-5, rajendraprasad reddy 
wrote:
>
> Hi ,
> I have another solution, just document the list of plugins in old Jenkins 
> server and instead of backup and restore plugins just reinstall plugins on 
> new Jenkins server.
>
> Thanks,
> Rajendra
>
> On Fri, 2 Nov, 2018, 02:06  wrote:
>
>> We have a Jenkins instance running and we are trying to setup a backup 
>> and restore mechanism in case of any mishaps.  We are looking for a full 
>> backup of the Jenkins and so decided to go with PeriodicBackup plugin.  
>> With this plugin, the backup works fine.  But, we are trying to restore it 
>> in a completely new Jenkins setup and not able to restore.  When we pick 
>> the backup file that we want to restore from, it says restoring, but 
>> nothing happens.  Even after waiting out for over 30 mins, nothing is 
>> restored.  As a work around, I stopped the Jenkins service, renamed the 
>> 'JENKINS_HOME' (/var/lib/jenkins) folder to 'jenkins_backup' and created 
>> another folder called 'jenkins' in the same location.  In this folder, I 
>> copied all the files from the backup and then started Jenkins (NOTE: I 
>> didn't change the .owner file.  I'm using the .owner file of the new 
>> Jenkins only).  Jenkins came up and I was able to see all the 
>> configurations from the old one.  Everything was fine.  I let it like that 
>> overnight and in the morning when I came and tried to access it, Jenkins 
>> was way too slow and I was not able to save any new configuration.  When I 
>> try I'm getting 
>> java.io.ioexception: too many open files jenkins
>> error.  I restarted the jenkins and it's taking too long for the UI to 
>> come up.  Am I doing anything wrong here?  Any suggestions for my 
>> requirement?
>>
>> P.S. - I tried SCMSync plugin and ThinBackup.  But, problem with these 
>> are that they don't do full backup.  But, with ThinBackup both backup and 
>> restore works fine.
>>
>> -- 
>> 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/0c58b4fa-4e8b-4c53-9ca9-b99397078fae%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/9d3fad8e-7bbe-4472-86dd-57ef3d0da960%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Backup and Restore

2018-11-27 Thread gotviseryon
Tried out a bunch of them.  Unfortunately, none of them are good for a 
production scale.

On Monday, November 26, 2018 at 5:18:04 PM UTC-5, jxpe...@godaddy.com wrote:
>
> The beauty of Jenkins is that it's NOT built-in, but can be easily added 
> as a plugin (of which there are several).
>
> On Monday, November 26, 2018 at 1:41:19 PM UTC-8, gotvi...@gmail.com 
> wrote:
>>
>> I wish for a tool like Jenkins it had a backup and restore option built 
>> in.
>>
>> On Monday, November 26, 2018 at 4:35:04 PM UTC-5, john.mellor wrote:
>>>
>>> I have had restore issues with *ALL* of the backup plugins that I have 
>>> tried.  The problem is that they are using stupid mechanisms to copy 
>>> the filesystem that cannot correctly copy a symlink.  This breaks the 
>>> LastSuccessfulBuild and LastUnsuccessfulBuild and LastFailedBuild 
>>> symlinks, causing lots of secondary issues. 
>>>
>>> Doing my own using cpio or rsync in a cronjob only messes up copying 
>>> very large files that exceed the archive limits (4GB for cpio for 
>>> instance). 
>>>
>>>
>>> On Mon, 2018-11-26 at 21:12 +, Artur Szostak wrote: 
>>> > Just my opinion: but I would forget about the backup plugins in 
>>> > Jenkins for full production backups. They all do a poor job when it 
>>> > comes to a full backup for a production system that also needs high 
>>> > availability. The best that can be done at the moment is to run 
>>> > Jenkins on a file system or data store that is able to perform copy- 
>>> > on-write snapshots. From within Jenkins you will want to setup a 
>>> > simple job that triggers the copy-on-write snapshot when no other job 
>>> > is running. Then use your normal production backup solutions to 
>>> > backup the snapshot in the background. 
>>> > 
>>> > Cheers 
>>> > 
>>> > Artur 
>>> > 
>>> >  
>>> > From: jenkins...@googlegroups.com < 
>>> > jenkins...@googlegroups.com> on behalf of gotvi...@gmail.com 
>>> >  
>>> > Sent: 01 November 2018 21:36 
>>> > To: Jenkins Users 
>>> > Subject: Jenkins Backup and Restore 
>>> > 
>>> > We have a Jenkins instance running and we are trying to setup a 
>>> > backup and restore mechanism in case of any mishaps.  We are looking 
>>> > for a full backup of the Jenkins and so decided to go with 
>>> > PeriodicBackup plugin.  With this plugin, the backup works 
>>> > fine.  But, we are trying to restore it in a completely new Jenkins 
>>> > setup and not able to restore.  When we pick the backup file that we 
>>> > want to restore from, it says restoring, but nothing happens.  Even 
>>> > after waiting out for over 30 mins, nothing is restored.  As a work 
>>> > around, I stopped the Jenkins service, renamed the 'JENKINS_HOME' 
>>> > (/var/lib/jenkins) folder to 'jenkins_backup' and created another 
>>> > folder called 'jenkins' in the same location.  In this folder, I 
>>> > copied all the files from the backup and then started Jenkins (NOTE: 
>>> > I didn't change the .owner file.  I'm using the .owner file of the 
>>> > new Jenkins only).  Jenkins came up and I was able to see all the 
>>> > configurations from the old one.  Everything was fine.  I let it like 
>>> > that overnight and in the morning when I came and tried to access it, 
>>> > Jenkins was way too slow and I was not able to save any new 
>>> > configuration.  When I try I'm getting 
>>> > java.io.ioexception: too many open files jenkins 
>>> > error.  I restarted the jenkins and it's taking too long for the UI 
>>> > to come up.  Am I doing anything wrong here?  Any suggestions for my 
>>> > requirement? 
>>> > 
>>> > P.S. - I tried SCMSync plugin and ThinBackup.  But, problem with 
>>> > these are that they don't do full backup.  But, with ThinBackup both 
>>> > backup and restore works fine. 
>>> > 
>>> > -- 
>>> > 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>> > jenkinsci-use...@googlegroups.com>. 
>>> > To view this discussion on the web visit 
>>> > 
>>> https://groups.google.com/d/msgid/jenkinsci-users/0c58b4fa-4e8b-4c53-9ca9-b99397078fae%40googlegroups.com
>>> <
>>> https://groups.google.com/d/msgid/jenkinsci-users/0c58b4fa-4e8b-4c53-9ca9-b99397078fae%40googlegroups.com?utm_medium=email_source=footer>
>>>  
>>>
>>> > ;. 
>>> > 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/f5625308-1145-4d77-b021-62be8a779592%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Backup and Restore

2018-11-27 Thread gotviseryon
The plugin team's been unresponsive for ages.  No help there.

On Monday, November 26, 2018 at 4:49:17 PM UTC-5, jxpe...@godaddy.com wrote:
>
> Have you considered sending a PR to (or at least filing a Github issue 
> for) the plugins in question?
>
>  
>
> It's probably an easy fix to handle symlinks
>
>  
>
> Best
>
> Jeff
>
> On Monday, November 26, 2018 at 1:35:04 PM UTC-8, john.mellor wrote:
>>
>> I have had restore issues with *ALL* of the backup plugins that I have 
>> tried.  The problem is that they are using stupid mechanisms to copy 
>> the filesystem that cannot correctly copy a symlink.  This breaks the 
>> LastSuccessfulBuild and LastUnsuccessfulBuild and LastFailedBuild 
>> symlinks, causing lots of secondary issues. 
>>
>> Doing my own using cpio or rsync in a cronjob only messes up copying 
>> very large files that exceed the archive limits (4GB for cpio for 
>> instance). 
>>
>>
>> On Mon, 2018-11-26 at 21:12 +, Artur Szostak wrote: 
>> > Just my opinion: but I would forget about the backup plugins in 
>> > Jenkins for full production backups. They all do a poor job when it 
>> > comes to a full backup for a production system that also needs high 
>> > availability. The best that can be done at the moment is to run 
>> > Jenkins on a file system or data store that is able to perform copy- 
>> > on-write snapshots. From within Jenkins you will want to setup a 
>> > simple job that triggers the copy-on-write snapshot when no other job 
>> > is running. Then use your normal production backup solutions to 
>> > backup the snapshot in the background. 
>> > 
>> > Cheers 
>> > 
>> > Artur 
>> > 
>> >  
>> > From: jenkins...@googlegroups.com < 
>> > jenkins...@googlegroups.com> on behalf of gotvi...@gmail.com 
>> >  
>> > Sent: 01 November 2018 21:36 
>> > To: Jenkins Users 
>> > Subject: Jenkins Backup and Restore 
>> > 
>> > We have a Jenkins instance running and we are trying to setup a 
>> > backup and restore mechanism in case of any mishaps.  We are looking 
>> > for a full backup of the Jenkins and so decided to go with 
>> > PeriodicBackup plugin.  With this plugin, the backup works 
>> > fine.  But, we are trying to restore it in a completely new Jenkins 
>> > setup and not able to restore.  When we pick the backup file that we 
>> > want to restore from, it says restoring, but nothing happens.  Even 
>> > after waiting out for over 30 mins, nothing is restored.  As a work 
>> > around, I stopped the Jenkins service, renamed the 'JENKINS_HOME' 
>> > (/var/lib/jenkins) folder to 'jenkins_backup' and created another 
>> > folder called 'jenkins' in the same location.  In this folder, I 
>> > copied all the files from the backup and then started Jenkins (NOTE: 
>> > I didn't change the .owner file.  I'm using the .owner file of the 
>> > new Jenkins only).  Jenkins came up and I was able to see all the 
>> > configurations from the old one.  Everything was fine.  I let it like 
>> > that overnight and in the morning when I came and tried to access it, 
>> > Jenkins was way too slow and I was not able to save any new 
>> > configuration.  When I try I'm getting 
>> > java.io.ioexception: too many open files jenkins 
>> > error.  I restarted the jenkins and it's taking too long for the UI 
>> > to come up.  Am I doing anything wrong here?  Any suggestions for my 
>> > requirement? 
>> > 
>> > P.S. - I tried SCMSync plugin and ThinBackup.  But, problem with 
>> > these are that they don't do full backup.  But, with ThinBackup both 
>> > backup and restore works fine. 
>> > 
>> > -- 
>> > 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> > jenkinsci-use...@googlegroups.com>. 
>> > To view this discussion on the web visit 
>> > 
>> https://groups.google.com/d/msgid/jenkinsci-users/0c58b4fa-4e8b-4c53-9ca9-b99397078fae%40googlegroups.com
>> <
>> https://groups.google.com/d/msgid/jenkinsci-users/0c58b4fa-4e8b-4c53-9ca9-b99397078fae%40googlegroups.com?utm_medium=email_source=footer>
>>  
>>
>> > ;. 
>> > 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/f4851afe-87a4-4a8c-8499-9d65388e8cad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Increase Java heap size of Windows Slave

2018-11-27 Thread gotviseryon
We have a Windows 2016 Slave.  The slave gets disconnected due to heap 
memory maxing out.  How to increase the heap size to tackle this issue?  
This is a bit urgent please.

-- 
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/c1393ce1-03c2-43f4-b7df-58a14bb80ebc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Backup and Restore

2018-11-26 Thread gotviseryon
Our cloud is Azure.  Do you have any suggestions for this?

On Monday, November 26, 2018 at 4:13:06 PM UTC-5, Artur Szostak wrote:
>
> Just my opinion: but I would forget about the backup plugins in Jenkins 
> for full production backups. They all do a poor job when it comes to a full 
> backup for a production system that also needs high availability. The best 
> that can be done at the moment is to run Jenkins on a file system or data 
> store that is able to perform copy-on-write snapshots. From within Jenkins 
> you will want to setup a simple job that triggers the copy-on-write 
> snapshot when no other job is running. Then use your normal production 
> backup solutions to backup the snapshot in the background. 
>
> Cheers 
>
> Artur 
>
>  
> From: jenkins...@googlegroups.com  <
> jenkins...@googlegroups.com > on behalf of gotvi...@gmail.com 
>  > 
> Sent: 01 November 2018 21:36 
> To: Jenkins Users 
> Subject: Jenkins Backup and Restore 
>
> We have a Jenkins instance running and we are trying to setup a backup and 
> restore mechanism in case of any mishaps.  We are looking for a full backup 
> of the Jenkins and so decided to go with PeriodicBackup plugin.  With this 
> plugin, the backup works fine.  But, we are trying to restore it in a 
> completely new Jenkins setup and not able to restore.  When we pick the 
> backup file that we want to restore from, it says restoring, but nothing 
> happens.  Even after waiting out for over 30 mins, nothing is restored.  As 
> a work around, I stopped the Jenkins service, renamed the 'JENKINS_HOME' 
> (/var/lib/jenkins) folder to 'jenkins_backup' and created another folder 
> called 'jenkins' in the same location.  In this folder, I copied all the 
> files from the backup and then started Jenkins (NOTE: I didn't change the 
> .owner file.  I'm using the .owner file of the new Jenkins only).  Jenkins 
> came up and I was able to see all the configurations from the old one. 
>  Everything was fine.  I let it like that overnight and in the morning when 
> I came and tried to access it, Jenkins was way too slow and I was not able 
> to save any new configuration.  When I try I'm getting 
> java.io.ioexception: too many open files jenkins 
> error.  I restarted the jenkins and it's taking too long for the UI to 
> come up.  Am I doing anything wrong here?  Any suggestions for my 
> requirement? 
>
> P.S. - I tried SCMSync plugin and ThinBackup.  But, problem with these are 
> that they don't do full backup.  But, with ThinBackup both backup and 
> restore works fine. 
>
> -- 
> 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  jenkinsci-users+unsubscr...@googlegroups.com >. 
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/0c58b4fa-4e8b-4c53-9ca9-b99397078fae%40googlegroups.com
> <
> https://groups.google.com/d/msgid/jenkinsci-users/0c58b4fa-4e8b-4c53-9ca9-b99397078fae%40googlegroups.com?utm_medium=email_source=footer>.
>  
>
> 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/7c46683a-fbfb-4d79-b470-10246e8999d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Backup and Restore

2018-11-26 Thread gotviseryon
I wish for a tool like Jenkins it had a backup and restore option built in.

On Monday, November 26, 2018 at 4:35:04 PM UTC-5, john.mellor wrote:
>
> I have had restore issues with *ALL* of the backup plugins that I have 
> tried.  The problem is that they are using stupid mechanisms to copy 
> the filesystem that cannot correctly copy a symlink.  This breaks the 
> LastSuccessfulBuild and LastUnsuccessfulBuild and LastFailedBuild 
> symlinks, causing lots of secondary issues. 
>
> Doing my own using cpio or rsync in a cronjob only messes up copying 
> very large files that exceed the archive limits (4GB for cpio for 
> instance). 
>
>
> On Mon, 2018-11-26 at 21:12 +, Artur Szostak wrote: 
> > Just my opinion: but I would forget about the backup plugins in 
> > Jenkins for full production backups. They all do a poor job when it 
> > comes to a full backup for a production system that also needs high 
> > availability. The best that can be done at the moment is to run 
> > Jenkins on a file system or data store that is able to perform copy- 
> > on-write snapshots. From within Jenkins you will want to setup a 
> > simple job that triggers the copy-on-write snapshot when no other job 
> > is running. Then use your normal production backup solutions to 
> > backup the snapshot in the background. 
> > 
> > Cheers 
> > 
> > Artur 
> > 
> >  
> > From: jenkins...@googlegroups.com  < 
> > jenkins...@googlegroups.com > on behalf of 
> gotvi...@gmail.com  
> > > 
> > Sent: 01 November 2018 21:36 
> > To: Jenkins Users 
> > Subject: Jenkins Backup and Restore 
> > 
> > We have a Jenkins instance running and we are trying to setup a 
> > backup and restore mechanism in case of any mishaps.  We are looking 
> > for a full backup of the Jenkins and so decided to go with 
> > PeriodicBackup plugin.  With this plugin, the backup works 
> > fine.  But, we are trying to restore it in a completely new Jenkins 
> > setup and not able to restore.  When we pick the backup file that we 
> > want to restore from, it says restoring, but nothing happens.  Even 
> > after waiting out for over 30 mins, nothing is restored.  As a work 
> > around, I stopped the Jenkins service, renamed the 'JENKINS_HOME' 
> > (/var/lib/jenkins) folder to 'jenkins_backup' and created another 
> > folder called 'jenkins' in the same location.  In this folder, I 
> > copied all the files from the backup and then started Jenkins (NOTE: 
> > I didn't change the .owner file.  I'm using the .owner file of the 
> > new Jenkins only).  Jenkins came up and I was able to see all the 
> > configurations from the old one.  Everything was fine.  I let it like 
> > that overnight and in the morning when I came and tried to access it, 
> > Jenkins was way too slow and I was not able to save any new 
> > configuration.  When I try I'm getting 
> > java.io.ioexception: too many open files jenkins 
> > error.  I restarted the jenkins and it's taking too long for the UI 
> > to come up.  Am I doing anything wrong here?  Any suggestions for my 
> > requirement? 
> > 
> > P.S. - I tried SCMSync plugin and ThinBackup.  But, problem with 
> > these are that they don't do full backup.  But, with ThinBackup both 
> > backup and restore works fine. 
> > 
> > -- 
> > 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 
> > jenkinsci-use...@googlegroups.com >. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/jenkinsci-users/0c58b4fa-4e8b-4c53-9ca9-b99397078fae%40googlegroups.com
> <
> https://groups.google.com/d/msgid/jenkinsci-users/0c58b4fa-4e8b-4c53-9ca9-b99397078fae%40googlegroups.com?utm_medium=email_source=footer>
>  
>
> > ;. 
> > 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/3501a70d-1b2f-4163-88e8-a2d497f64d43%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins service going down on Windows Slave

2018-11-26 Thread gotviseryon
Just found it.  In the Slave configuration section, below "Launch method" 
in "Advanced" there is a section called "JVM options".  We can pass it as a 
parameter here.  Need to test it and see if it works.

On Monday, November 26, 2018 at 4:33:11 PM UTC-5, slide wrote:
>
> There should be a way to pass parameters to the JVM in the .xml file 
> (slave.xml or something similar).
>
> On Mon, Nov 26, 2018 at 1:38 PM > wrote:
>
>> Found a log file on the slave machine.  It's Java heap size error.
>>
>> INFO: HttpClient configured for $URL, authenticating as USER
>> Nov 20, 2018 6:25:09 PM 
>> com.microsoft.tfs.core.ws.runtime.transport.IdleHTTPConnectionCloser run
>> SEVERE: unexpected error
>> java.lang.OutOfMemoryError: Java heap space
>> at java.util.Arrays.copyOf(Unknown Source)
>> at java.util.Arrays.copyOf(Unknown Source)
>> at java.util.ArrayList.grow(Unknown Source)
>> at java.util.ArrayList.ensureExplicitCapacity(Unknown Source)
>> at java.util.ArrayList.ensureCapacityInternal(Unknown Source)
>> at java.util.ArrayList.add(Unknown Source)
>> at 
>> com.microsoft.tfs.core.ws.runtime.transport.IdleHTTPConnectionCloser.run(IdleHTTPConnectionCloser.java:109)
>>
>> Nov 20, 2018 6:25:12 PM 
>> org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader run
>> SEVERE: [JNLP4-connect connection to JENKINS_URL/IP:35351] Reader thread 
>> killed by OutOfMemoryError
>> java.lang.OutOfMemoryError: Java heap space
>>
>> Exception in thread "pool-1-thread-3" java.lang.OutOfMemoryError: Java 
>> heap space
>> Nov 20, 2018 6:29:32 PM hudson.slaves.ChannelPinger$1 onDead
>> INFO: Ping failed. Terminating the channel JNLP4-connect connection to 
>> JENKINS_URL/IP:35351.
>> java.util.concurrent.TimeoutException: Ping started at 1542756332316 
>> hasn't completed by 1542756572331
>> at hudson.remoting.PingThread.ping(PingThread.java:134)
>> at hudson.remoting.PingThread.run(PingThread.java:90)
>>
>> Nov 20, 2018 6:34:32 PM hudson.slaves.ChannelPinger$1 onDead
>> INFO: Ping failed. Terminating the channel JNLP4-connect connection to 
>> JENKINS_URL/IP:35351.
>> java.util.concurrent.TimeoutException: Ping started at 1542756632868 
>> hasn't completed by 1542756872880
>> at hudson.remoting.PingThread.ping(PingThread.java:134)
>> at hudson.remoting.PingThread.run(PingThread.java:90)
>>
>> Nov 20, 2018 6:39:32 PM hudson.slaves.ChannelPinger$1 onDead
>> INFO: Ping failed. Terminating the channel JNLP4-connect connection to 
>> JENKINS_URL/IP:35351.
>> java.util.concurrent.TimeoutException: Ping started at 1542756932704 
>> hasn't completed by 1542757172726
>> at hudson.remoting.PingThread.ping(PingThread.java:134)
>> at hudson.remoting.PingThread.run(PingThread.java:90)
>>
>> Nov 20, 2018 8:38:34 PM hudson.remoting.jnlp.Main createEngine
>> INFO: Setting up agent: HOST_NAME
>> Nov 20, 2018 8:38:34 PM hudson.remoting.jnlp.Main$CuiListener 
>> INFO: Jenkins agent is running in headless mode.
>>
>> Trying to figure out way to increase the heap size.
>>
>> Thanks to all those threw in suggestion.
>>
>> On Monday, November 26, 2018 at 12:44:47 PM UTC-5, gotvi...@gmail.com 
>> wrote:
>>>
>>> The agent port is selected as 'fixed' in the Jenkins master 
>>> configuration.
>>>
>>> On Monday, November 26, 2018 at 12:33:43 PM UTC-5, Pranav Kv wrote:

 Did you checked your port number?My be it is an arbitrary selection. So 
 better to configure the port as fixed number on your master configuration.

 Regards
 Pranav

 On Mon, 26 Nov 2018, 10:52 pm >>>
> Any help/suggestion on this?
>
> On Monday, November 26, 2018 at 11:24:45 AM UTC-5, gotvi...@gmail.com 
> wrote:
>>
>> When I looked in Windows Server event logs, I see this error - 
>> sigint to 81192 failed - killing as feedback
>>
>> I see this message multiple times and the number (81192) is defferent 
>> in every error.
>>
>> On Monday, November 26, 2018 at 10:48:58 AM UTC-5, gotvi...@gmail.com 
>> wrote:
>>>
>>> We have couple of more Windows Slaves, but we don't have any issue 
>>> with those.  Just this one slave going down often.
>>>
>>> On Monday, November 26, 2018 at 10:21:14 AM UTC-5, john.mellor wrote:

 We have that problem all the time. IMHO the JNLP connectivity to 
 the master is not robust enough to be used.

 I have tried setting up the agent connection as a service per the 
 Jenkins doc, but it still cannot survive momentary network or 
 performance 
 outages. The only way that I have managed to get this machine 
 consistent, 
 is to reboot the Windows machine and the service will shortly 
 re-establish 
 connectivity. JNLP connections are just-plain defective.



 On Mon, 2018-11-26 at 07:06 -0800, gotvi...@gmail.com wrote:

 Hello, 

 We have a Windows Server 2016 Jenkins Slave.  The Jenkins service 
 

Script to monitor Jenkins service and start when it's stopped

2018-11-26 Thread gotviseryon
Hello,

I heard there are some wrapper scripts that monitors the Jenkins service 
and starts it if it goes down.  Can I get some help on this?  Need it for 
both Windows machine and Linux machine.

-- 
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/3a9c7c1a-866e-4e45-b533-50c1af32ea8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins service going down on Windows Slave

2018-11-26 Thread gotviseryon
Found a log file on the slave machine.  It's Java heap size error.

INFO: HttpClient configured for $URL, authenticating as USER
Nov 20, 2018 6:25:09 PM 
com.microsoft.tfs.core.ws.runtime.transport.IdleHTTPConnectionCloser run
SEVERE: unexpected error
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at java.util.Arrays.copyOf(Unknown Source)
at java.util.ArrayList.grow(Unknown Source)
at java.util.ArrayList.ensureExplicitCapacity(Unknown Source)
at java.util.ArrayList.ensureCapacityInternal(Unknown Source)
at java.util.ArrayList.add(Unknown Source)
at 
com.microsoft.tfs.core.ws.runtime.transport.IdleHTTPConnectionCloser.run(IdleHTTPConnectionCloser.java:109)

Nov 20, 2018 6:25:12 PM 
org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader run
SEVERE: [JNLP4-connect connection to JENKINS_URL/IP:35351] Reader thread 
killed by OutOfMemoryError
java.lang.OutOfMemoryError: Java heap space

Exception in thread "pool-1-thread-3" java.lang.OutOfMemoryError: Java heap 
space
Nov 20, 2018 6:29:32 PM hudson.slaves.ChannelPinger$1 onDead
INFO: Ping failed. Terminating the channel JNLP4-connect connection to 
JENKINS_URL/IP:35351.
java.util.concurrent.TimeoutException: Ping started at 1542756332316 hasn't 
completed by 1542756572331
at hudson.remoting.PingThread.ping(PingThread.java:134)
at hudson.remoting.PingThread.run(PingThread.java:90)

Nov 20, 2018 6:34:32 PM hudson.slaves.ChannelPinger$1 onDead
INFO: Ping failed. Terminating the channel JNLP4-connect connection to 
JENKINS_URL/IP:35351.
java.util.concurrent.TimeoutException: Ping started at 1542756632868 hasn't 
completed by 1542756872880
at hudson.remoting.PingThread.ping(PingThread.java:134)
at hudson.remoting.PingThread.run(PingThread.java:90)

Nov 20, 2018 6:39:32 PM hudson.slaves.ChannelPinger$1 onDead
INFO: Ping failed. Terminating the channel JNLP4-connect connection to 
JENKINS_URL/IP:35351.
java.util.concurrent.TimeoutException: Ping started at 1542756932704 hasn't 
completed by 1542757172726
at hudson.remoting.PingThread.ping(PingThread.java:134)
at hudson.remoting.PingThread.run(PingThread.java:90)

Nov 20, 2018 8:38:34 PM hudson.remoting.jnlp.Main createEngine
INFO: Setting up agent: HOST_NAME
Nov 20, 2018 8:38:34 PM hudson.remoting.jnlp.Main$CuiListener 
INFO: Jenkins agent is running in headless mode.

Trying to figure out way to increase the heap size.

Thanks to all those threw in suggestion.

On Monday, November 26, 2018 at 12:44:47 PM UTC-5, gotvi...@gmail.com wrote:
>
> The agent port is selected as 'fixed' in the Jenkins master configuration.
>
> On Monday, November 26, 2018 at 12:33:43 PM UTC-5, Pranav Kv wrote:
>>
>> Did you checked your port number?My be it is an arbitrary selection. So 
>> better to configure the port as fixed number on your master configuration.
>>
>> Regards
>> Pranav
>>
>> On Mon, 26 Nov 2018, 10:52 pm >
>>> Any help/suggestion on this?
>>>
>>> On Monday, November 26, 2018 at 11:24:45 AM UTC-5, gotvi...@gmail.com 
>>> wrote:

 When I looked in Windows Server event logs, I see this error - 
 sigint to 81192 failed - killing as feedback

 I see this message multiple times and the number (81192) is defferent 
 in every error.

 On Monday, November 26, 2018 at 10:48:58 AM UTC-5, gotvi...@gmail.com 
 wrote:
>
> We have couple of more Windows Slaves, but we don't have any issue 
> with those.  Just this one slave going down often.
>
> On Monday, November 26, 2018 at 10:21:14 AM UTC-5, john.mellor wrote:
>>
>> We have that problem all the time. IMHO the JNLP connectivity to the 
>> master is not robust enough to be used.
>>
>> I have tried setting up the agent connection as a service per the 
>> Jenkins doc, but it still cannot survive momentary network or 
>> performance 
>> outages. The only way that I have managed to get this machine 
>> consistent, 
>> is to reboot the Windows machine and the service will shortly 
>> re-establish 
>> connectivity. JNLP connections are just-plain defective.
>>
>>
>>
>> On Mon, 2018-11-26 at 07:06 -0800, gotvi...@gmail.com wrote:
>>
>> Hello, 
>>
>> We have a Windows Server 2016 Jenkins Slave.  The Jenkins service in 
>> this slave goes down at times.  We then go back and start it manually 
>> though the service is set to start automatically.  Need help figuring 
>> out 
>> what's causing it to go down and why it isn't coming back online on its 
>> own.
>>
>> -- 
>>> 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/317ec954-f56e-4990-b183-55f1327aa9ae%40googlegroups.com
>>>  
>>> 

Re: Jenkins service going down on Windows Slave

2018-11-26 Thread gotviseryon
The agent port is selected as 'fixed' in the Jenkins master configuration.

On Monday, November 26, 2018 at 12:33:43 PM UTC-5, Pranav Kv wrote:
>
> Did you checked your port number?My be it is an arbitrary selection. So 
> better to configure the port as fixed number on your master configuration.
>
> Regards
> Pranav
>
> On Mon, 26 Nov 2018, 10:52 pm  wrote:
>
>> Any help/suggestion on this?
>>
>> On Monday, November 26, 2018 at 11:24:45 AM UTC-5, gotvi...@gmail.com 
>> wrote:
>>>
>>> When I looked in Windows Server event logs, I see this error - 
>>> sigint to 81192 failed - killing as feedback
>>>
>>> I see this message multiple times and the number (81192) is defferent in 
>>> every error.
>>>
>>> On Monday, November 26, 2018 at 10:48:58 AM UTC-5, gotvi...@gmail.com 
>>> wrote:

 We have couple of more Windows Slaves, but we don't have any issue with 
 those.  Just this one slave going down often.

 On Monday, November 26, 2018 at 10:21:14 AM UTC-5, john.mellor wrote:
>
> We have that problem all the time. IMHO the JNLP connectivity to the 
> master is not robust enough to be used.
>
> I have tried setting up the agent connection as a service per the 
> Jenkins doc, but it still cannot survive momentary network or performance 
> outages. The only way that I have managed to get this machine consistent, 
> is to reboot the Windows machine and the service will shortly 
> re-establish 
> connectivity. JNLP connections are just-plain defective.
>
>
>
> On Mon, 2018-11-26 at 07:06 -0800, gotvi...@gmail.com wrote:
>
> Hello, 
>
> We have a Windows Server 2016 Jenkins Slave.  The Jenkins service in 
> this slave goes down at times.  We then go back and start it manually 
> though the service is set to start automatically.  Need help figuring out 
> what's causing it to go down and why it isn't coming back online on its 
> own.
>
> -- 
>> 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/317ec954-f56e-4990-b183-55f1327aa9ae%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/7e622ae9-df97-4d9a-a8d1-9d65cd5d8ad5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins service going down on Windows Slave

2018-11-26 Thread gotviseryon
Any help/suggestion on this?

On Monday, November 26, 2018 at 11:24:45 AM UTC-5, gotvi...@gmail.com wrote:
>
> When I looked in Windows Server event logs, I see this error - 
> sigint to 81192 failed - killing as feedback
>
> I see this message multiple times and the number (81192) is defferent in 
> every error.
>
> On Monday, November 26, 2018 at 10:48:58 AM UTC-5, gotvi...@gmail.com 
> wrote:
>>
>> We have couple of more Windows Slaves, but we don't have any issue with 
>> those.  Just this one slave going down often.
>>
>> On Monday, November 26, 2018 at 10:21:14 AM UTC-5, john.mellor wrote:
>>>
>>> We have that problem all the time. IMHO the JNLP connectivity to the 
>>> master is not robust enough to be used.
>>>
>>> I have tried setting up the agent connection as a service per the 
>>> Jenkins doc, but it still cannot survive momentary network or performance 
>>> outages. The only way that I have managed to get this machine consistent, 
>>> is to reboot the Windows machine and the service will shortly re-establish 
>>> connectivity. JNLP connections are just-plain defective.
>>>
>>>
>>>
>>> On Mon, 2018-11-26 at 07:06 -0800, gotvi...@gmail.com wrote:
>>>
>>> Hello, 
>>>
>>> We have a Windows Server 2016 Jenkins Slave.  The Jenkins service in 
>>> this slave goes down at times.  We then go back and start it manually 
>>> though the service is set to start automatically.  Need help figuring out 
>>> what's causing it to go down and why it isn't coming back online on its own.
>>>
>>>

-- 
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/317ec954-f56e-4990-b183-55f1327aa9ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins service going down on Windows Slave

2018-11-26 Thread gotviseryon
When I looked in Windows Server event logs, I see this error - 
sigint to 81192 failed - killing as feedback

I see this message multiple times and the number (81192) is defferent in 
every error.

On Monday, November 26, 2018 at 10:48:58 AM UTC-5, gotvi...@gmail.com wrote:
>
> We have couple of more Windows Slaves, but we don't have any issue with 
> those.  Just this one slave going down often.
>
> On Monday, November 26, 2018 at 10:21:14 AM UTC-5, john.mellor wrote:
>>
>> We have that problem all the time. IMHO the JNLP connectivity to the 
>> master is not robust enough to be used.
>>
>> I have tried setting up the agent connection as a service per the Jenkins 
>> doc, but it still cannot survive momentary network or performance outages. 
>> The only way that I have managed to get this machine consistent, is to 
>> reboot the Windows machine and the service will shortly re-establish 
>> connectivity. JNLP connections are just-plain defective.
>>
>>
>>
>> On Mon, 2018-11-26 at 07:06 -0800, gotvi...@gmail.com wrote:
>>
>> Hello, 
>>
>> We have a Windows Server 2016 Jenkins Slave.  The Jenkins service in this 
>> slave goes down at times.  We then go back and start it manually though the 
>> service is set to start automatically.  Need help figuring out what's 
>> causing it to go down and why it isn't coming back online on its own.
>>
>>

-- 
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/8e3018ab-b95d-47f0-9433-24ac44861005%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins service going down on Windows Slave

2018-11-26 Thread gotviseryon
We have couple of more Windows Slaves, but we don't have any issue with 
those.  Just this one slave going down often.

On Monday, November 26, 2018 at 10:21:14 AM UTC-5, john.mellor wrote:
>
> We have that problem all the time. IMHO the JNLP connectivity to the 
> master is not robust enough to be used.
>
> I have tried setting up the agent connection as a service per the Jenkins 
> doc, but it still cannot survive momentary network or performance outages. 
> The only way that I have managed to get this machine consistent, is to 
> reboot the Windows machine and the service will shortly re-establish 
> connectivity. JNLP connections are just-plain defective.
>
>
>
> On Mon, 2018-11-26 at 07:06 -0800, gotvi...@gmail.com  wrote:
>
> Hello, 
>
> We have a Windows Server 2016 Jenkins Slave.  The Jenkins service in this 
> slave goes down at times.  We then go back and start it manually though the 
> service is set to start automatically.  Need help figuring out what's 
> causing it to go down and why it isn't coming back online on its own.
>
>

-- 
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/b4d92c64-a769-42c0-90d4-e9df7e1210d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins service going down on Windows Slave

2018-11-26 Thread gotviseryon
Any idea on where else I can look for details?

On Monday, November 26, 2018 at 10:24:10 AM UTC-5, slide wrote:
>
> Weird, I have had ZERO issues with JNLP agents. It works flawlessly for me.
>
> On Mon, Nov 26, 2018 at 8:21 AM John Mellor  > wrote:
>
>> We have that problem all the time. IMHO the JNLP connectivity to the 
>> master is not robust enough to be used.
>>
>> I have tried setting up the agent connection as a service per the Jenkins 
>> doc, but it still cannot survive momentary network or performance outages. 
>> The only way that I have managed to get this machine consistent, is to 
>> reboot the Windows machine and the service will shortly re-establish 
>> connectivity. JNLP connections are just-plain defective.
>>
>>
>>
>> On Mon, 2018-11-26 at 07:06 -0800, gotvi...@gmail.com  
>> wrote:
>>
>> Hello, 
>>
>> We have a Windows Server 2016 Jenkins Slave.  The Jenkins service in this 
>> slave goes down at times.  We then go back and start it manually though the 
>> service is set to start automatically.  Need help figuring out what's 
>> causing it to go down and why it isn't coming back online on its own.
>>
>> -- 
>> 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/0643151142ab642b3a0117ea0b42ab1e41ccfda3.camel%40esentire.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -- 
> 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/cc698142-b557-4ce9-ac69-8aa85a7ed476%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins service going down on Windows Slave

2018-11-26 Thread gotviseryon
This is all I see in the log section of the Slave.  Is there anywhere else 
to see?

JNLP agent connected from IP/IP
Remoting version: 3.17
This is a Windows agent
Agent successfully connected and online




On Monday, November 26, 2018 at 10:16:59 AM UTC-5, slide wrote:
>
> Did you check the logs on the agent or via the Jenkins UI? (FYI, agent is 
> the preferred term instead of "slave").
>
> On Mon, Nov 26, 2018 at 8:06 AM > wrote:
>
>> Hello,
>>
>> We have a Windows Server 2016 Jenkins Slave.  The Jenkins service in this 
>> slave goes down at times.  We then go back and start it manually though the 
>> service is set to start automatically.  Need help figuring out what's 
>> causing it to go down and why it isn't coming back online on its own.
>>
>> -- 
>> 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/fd7cf10d-fd69-4c20-be36-804f6256890a%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -- 
> 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/580f8ba5-1b81-4198-9335-034964390f63%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins service going down on Windows Slave

2018-11-26 Thread gotviseryon
Hello,

We have a Windows Server 2016 Jenkins Slave.  The Jenkins service in this 
slave goes down at times.  We then go back and start it manually though the 
service is set to start automatically.  Need help figuring out what's 
causing it to go down and why it isn't coming back online on its own.

-- 
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/fd7cf10d-fd69-4c20-be36-804f6256890a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: how to find how a Jenkins instance is installed?

2018-11-19 Thread gotviseryon
Thanks a lot @Mark for the info.  We are using CentOS.  Will there be a 
difference between yum install and downloading a previous version and 
installing it manually?  Also, how to find if the installation is done from 
LTS or Stable version?  From OS.

On Monday, November 19, 2018 at 11:55:18 AM UTC-5, Mudit Kumar wrote:
>
> I would be interested in knowing the details of OS rather than other way 
> around.Same as Mark mentioned.
>
>  
>
> Thanks,
>
> Mudit Kumar
>
>  
>
> *From: *> on behalf of Mark 
> Waite >
> *Reply-To: *"jenkins...@googlegroups.com " <
> jenkins...@googlegroups.com >
> *Date: *Monday, 19 November 2018 at 2:48 PM
> *To: *"jenkins...@googlegroups.com " <
> jenkins...@googlegroups.com >
> *Subject: *Re: how to find how a Jenkins instance is installed?
>
>  
>
> I'm not aware of any direct method from inside Jenkins that will report 
> how it was installed.  There are differences in the file system layout from 
> the various installation techniques which could be used to guess which 
> installer was used. 
>
>  
>
> For example:
>
>- If /etc/default/jenkins exists, then it is likely an 'apt' based 
>installation (like Debian and Ubuntu)
>- If /etc/sysconfig/jenkins exists, then it is likely an 'rpm' based 
>installation (like Red Hat Enterprise Linux and CentOS)
>
> I don't know the details of installations on macOS, OpenSUSE, FreeBSD, 
> OpenBSD, AIX, s390x, or OpenIndiana.
>
>  
>
> Mark Waite
>
>  
>
> On Mon, Nov 19, 2018 at 7:07 AM > wrote:
>
> I apologize for the delay in responding.  Just got chance to check back on 
> these. 
>
>  
>
> Yes Mark, you are right.  I'm trying to determine if Jenkins was installed 
> from apt/yum, rpm, MSI or war file.  Is there a way to find how the 
> installation was done?
>
> On Wednesday, November 14, 2018 at 10:02:17 PM UTC-5, Mark Waite wrote: 
>
> I thought the question was trying to determine if the Jenkins installation 
> was done from apt, rpm, MSI, chocolatey, or using a war file.  Interesting 
> the different assumptions we make to a question. 
>
>  
>
> Can the original questioner clarify what they were asking?
>
>  
>
> On Wed, Nov 14, 2018 at 7:33 PM Martin d'Anjou  
> wrote:
>
> If you mean how do you test if an instance is ready (after a restart), you 
> can use curl. 
>
>  
>
> httpCode=$(curl -s -w "%{http_code}" -X GET $JENKINS_URL)
> while [[  $httpCode != "200" ]]; do
> sleep 5
> httpCode=$(curl -s -w "%{http_code}" -X GET $JENKINS_URL)
> done
> echo "Jenkins is ready."
>
>  
>
>
> On Wednesday, November 14, 2018 at 10:03:44 AM UTC-5, gotvi...@gmail.com 
> wrote: 
>
> Hello, how do I find out how a Jenkins instance has been installed?
>
> -- 
> 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/70b0817f-aa60-42cc-bd83-713742c305aa%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>  
>
> -- 
>
> Thanks! 
>
> 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-use...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/d1f4d4b2-5f77-49f1-afe7-20a06aa503dc%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>  
>
> -- 
>
> Thanks! 
>
> 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-use...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtESgfqu5dgvvCsZiWdgQMsrtoEbsHrDEiK2xJCN--3MvA%40mail.gmail.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>
>
>
>  
> Disclaimer The information in this email and any attachments may contain 
> proprietary and confidential information that is intended for the 
> addressee(s) only. If you are not the intended recipient, you are hereby 
> notified that any disclosure, copying, distribution, retention or use of 
> the contents of this 

Best solution for Jenkins backup and restore

2018-11-19 Thread gotviseryon
Hello All,

I have been surfing around for this stuff for quite sometime and till now 
couldn't find a plugin that does this job seamlessly.  I tried these 
options - SCM Sync Configuration plugin 
, 
ThinBackup 
plugin  and PeriodicBackup 
plugin .  


PeriodicBackup plugin seemed nice as it was giving option for full backup 
which is what we are also looking for.  But, it doesn't seem to work 
properly.  As per the backup configuration I limited it to 5 maximum 
backups and 5 days to store the backup.  But, it doesn't stop with 5.  It 
keeps adding the new ones as per cron, but not deleting the old ones.  
Also, the restoration doesn't work at all.


But, with ThinBackup and SCM Sync Configuration plugins we have a 
limitation of not being able to backup the entire JENKINS_HOME folder.


Does anybody have a best possible solution for this?  I had couple of 
suggestions for rsync.  But, wondering if that's the only way to do it or 
if there's any other easier backup/restore option that am missing.

-- 
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/93e158ae-159f-4457-aecf-39e017176163%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Logging of plugins

2018-11-19 Thread gotviseryon
Will be awesome!!!

On Saturday, October 27, 2018 at 11:12:46 AM UTC-4, Martin d'Anjou wrote:
>
> I wonder if we could make that a GSoC project for next year. Any opinions?
>
> On Tuesday, October 23, 2018 at 3:49:09 PM UTC-4, gotvi...@gmail.com 
> wrote:
>>
>> How do we capture the logs of activities of each plugin we install in 
>> Jenkins?
>>
>> We use Audit Trail plugin.  But, that doesn't capture the changes made in 
>> the Role Based Authorization Strategy plugin.  For example, I added a user 
>> to a role and removed access of two of the users.  But, couldn't find these 
>> changes anywhere in the logs.
>>
>

-- 
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/10940954-83c9-4a81-a00d-b8da9983f231%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Get list of users who has access to a project role

2018-11-19 Thread gotviseryon
@Victor - Excuse me here.  I'm kind of new to this stuff.  Could you please 
brief on how to use this groovy script?

On Monday, November 19, 2018 at 7:33:57 AM UTC-5, Victor Martinez wrote:
>
> Might 
> https://github.com/jenkinsci/jenkins-scripts/blob/master/scriptler/export-role-strategy-permissions-to-csv.groovy
>  
> provide those details?
>
> Cheers
>

-- 
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/05efdafd-413e-4a34-a83c-6f7b4c21fbb6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to find why Jenkins login is slow

2018-11-19 Thread gotviseryon
@Jan - I'm not sure what the all view feature is.  Could you please brief 
me on it?

@Rajendraprasad - Yes, we are integrated with Active Directory for 
authentication.  When you say user types, what exactly do you refer to?  
Any user trying to login to the portal is facing this issue.  Once in a 
while it will login instantly.

On Wednesday, November 14, 2018 at 8:57:58 PM UTC-5, rajendraprasad reddy 
wrote:
>
> 20 second login time is unusual.
>
> Authentication and authorisation means are you people integrated with LDAP 
> accounts/active directory for getting user login details?
>
> Is this happening for all user types or particular user type?
>
> Thanks
> Rajendra
>
>
> On Wed, 14 Nov, 2018, 20:38  wrote:
>
>> Hello,
>>
>> I'm new to this area and need some pointers.  We have Jenkins installed 
>> and been using it for sometime.  We have AD configured for authentication 
>> and authorization.  Logging in at sometimes takes a while (~20 secs).  
>> Also, Jenkins seems to be a bit slow.  The VM otherwise seems to be working 
>> normal.  It's just the Jenkins that is slow in responding.  In general, how 
>> do I find out the performance of Jenkins and stuff like that?
>>
>> -- 
>> 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/74972514-3a26-46eb-be79-4aa50d11c7a5%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/304d0562-072b-4e3e-95db-7fab8eb5f3cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: how to find how a Jenkins instance is installed?

2018-11-19 Thread gotviseryon
I apologize for the delay in responding.  Just got chance to check back on 
these.

Yes Mark, you are right.  I'm trying to determine if Jenkins was installed 
from apt/yum, rpm, MSI or war file.  Is there a way to find how the 
installation was done?

On Wednesday, November 14, 2018 at 10:02:17 PM UTC-5, Mark Waite wrote:
>
> I thought the question was trying to determine if the Jenkins installation 
> was done from apt, rpm, MSI, chocolatey, or using a war file.  Interesting 
> the different assumptions we make to a question.
>
> Can the original questioner clarify what they were asking?
>
> On Wed, Nov 14, 2018 at 7:33 PM Martin d'Anjou  > wrote:
>
>> If you mean how do you test if an instance is ready (after a restart), 
>> you can use curl.
>>
>> httpCode=$(curl -s -w "%{http_code}" -X GET $JENKINS_URL)
>> while [[  $httpCode != "200" ]]; do
>> sleep 5
>> httpCode=$(curl -s -w "%{http_code}" -X GET $JENKINS_URL)
>> done
>> echo "Jenkins is ready."
>>
>>
>> On Wednesday, November 14, 2018 at 10:03:44 AM UTC-5, gotvi...@gmail.com 
>> wrote:
>>>
>>> Hello, how do I find out how a Jenkins instance has been installed?
>>>
>> -- 
>> 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/70b0817f-aa60-42cc-bd83-713742c305aa%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -- 
> Thanks!
> 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/d1f4d4b2-5f77-49f1-afe7-20a06aa503dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to find why Jenkins login is slow

2018-11-14 Thread gotviseryon
Hello,

I'm new to this area and need some pointers.  We have Jenkins installed and 
been using it for sometime.  We have AD configured for authentication and 
authorization.  Logging in at sometimes takes a while (~20 secs).  Also, 
Jenkins seems to be a bit slow.  The VM otherwise seems to be working 
normal.  It's just the Jenkins that is slow in responding.  In general, how 
do I find out the performance of Jenkins and stuff like that?

-- 
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/74972514-3a26-46eb-be79-4aa50d11c7a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


how to find how a Jenkins instance is installed?

2018-11-14 Thread gotviseryon
Hello, how do I find out how a Jenkins instance has been installed?

-- 
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/6060aa4d-2918-464b-970f-4beed7e9dc9d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


SSLError

2018-11-12 Thread gotviseryon
Need urgent help.  Trying to run a job in Windows Slave and getting this 
error.  Please help.  Will post more information if needed.  Installed the 
certificate in the VM.  It's Windows Server 2016 Datacenter.


ERROR: HTTPSConnectionPool(host='URL', port=443): Max retries exceeded with 
url: /api/zipdeploy?isAsync=true (Caused by SSLError(SSLError("bad handshake: 
Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify 
failed')],)",),))
Traceback (most recent call last):
  File "C:\Program Files (x86)\Microsoft 
SDKs\Azure\CLI2\Lib\site-packages\urllib3\contrib\pyopenssl.py", line 444, in 
wrap_socket
cnx.do_handshake()
  File "C:\Program Files (x86)\Microsoft 
SDKs\Azure\CLI2\Lib\site-packages\OpenSSL\SSL.py", line 1907, in do_handshake
self._raise_ssl_error(self._ssl, result)
  File "C:\Program Files (x86)\Microsoft 
SDKs\Azure\CLI2\Lib\site-packages\OpenSSL\SSL.py", line 1639, in 
_raise_ssl_error
_raise_current_error()
  File "C:\Program Files (x86)\Microsoft 
SDKs\Azure\CLI2\Lib\site-packages\OpenSSL\_util.py", line 54, in 
exception_from_error_queue
raise exception_type(errors)
OpenSSL.SSL.Error: [('SSL routines', 'tls_process_server_certificate', 
'certificate verify failed')]



-- 
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/0edc36a8-65bf-4d11-901b-118fb8ef7ede%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins Backup and Restore

2018-11-01 Thread gotviseryon
We have a Jenkins instance running and we are trying to setup a backup and 
restore mechanism in case of any mishaps.  We are looking for a full backup 
of the Jenkins and so decided to go with PeriodicBackup plugin.  With this 
plugin, the backup works fine.  But, we are trying to restore it in a 
completely new Jenkins setup and not able to restore.  When we pick the 
backup file that we want to restore from, it says restoring, but nothing 
happens.  Even after waiting out for over 30 mins, nothing is restored.  As 
a work around, I stopped the Jenkins service, renamed the 'JENKINS_HOME' 
(/var/lib/jenkins) folder to 'jenkins_backup' and created another folder 
called 'jenkins' in the same location.  In this folder, I copied all the 
files from the backup and then started Jenkins (NOTE: I didn't change the 
.owner file.  I'm using the .owner file of the new Jenkins only).  Jenkins 
came up and I was able to see all the configurations from the old one.  
Everything was fine.  I let it like that overnight and in the morning when 
I came and tried to access it, Jenkins was way too slow and I was not able 
to save any new configuration.  When I try I'm getting 
java.io.ioexception: too many open files jenkins
error.  I restarted the jenkins and it's taking too long for the UI to come 
up.  Am I doing anything wrong here?  Any suggestions for my requirement?

P.S. - I tried SCMSync plugin and ThinBackup.  But, problem with these are 
that they don't do full backup.  But, with ThinBackup both backup and 
restore works fine.

-- 
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/0c58b4fa-4e8b-4c53-9ca9-b99397078fae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Ansible for administering Jenkins

2018-10-30 Thread gotviseryon
Thanks for the link Samuli.  I found this link.  But, am looking for a 
playbook to maintain the groups created and authenticated through Manage 
and Assign Roles (Role based authorization strategy).

On Tuesday, October 30, 2018 at 10:17:29 AM UTC-4, Samuli Saarinen wrote:
>
> Hi,
>
>  
>
> Would these help: 
> https://galaxy.ansible.com/search?keywords=jenkins_by=-relevance_size=10
>
>  
>
> br, 
>
> Samuli
>
>  
>
> *From:* jenkins...@googlegroups.com  <
> jenkins...@googlegroups.com > *On Behalf Of *
> gotvi...@gmail.com 
> *Sent:* 30. lokakuutata 2018 15:53
> *To:* Jenkins Users >
> *Subject:* Ansible for administering Jenkins
>
>  
>
> Hi,
>
>
> Can we administer Jenkins using Ansible scripts?  If so, any pointers or 
> can I get some sample scripts?
>
> -- 
> 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/8140e51d-3fd9-48bb-bd79-0e65587c0a88%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/355a2e2f-8baa-4268-ac6c-d6936a84d1bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Ansible for administering Jenkins

2018-10-30 Thread gotviseryon
Hi,

Can we administer Jenkins using Ansible scripts?  If so, any pointers or 
can I get some sample scripts?

-- 
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/8140e51d-3fd9-48bb-bd79-0e65587c0a88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins Administration - Role-based Authorization Strategy - Manage & Assign Roles list really big

2018-10-24 Thread gotviseryon
We use Role-based Authorization Strategy plugin and when we go to Assign 
Roles, the list is really huge and it's becoming hard day by day to add 
users.  Is there a way to address this issue?

1) We are currently handling these manually.  Is there a way to handle this 
manual (like freeze panes in Windows Excel or something of that sort)?
2) Can we automate this using Ansible as we are going to have Ansible setup 
soon?

-- 
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/43505685-e9c9-41ab-8ba7-312859a42f80%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Logging of plugins

2018-10-23 Thread gotviseryon
How do we capture the logs of activities of each plugin we install in 
Jenkins?

We use Audit Trail plugin.  But, that doesn't capture the changes made in 
the Role Based Authorization Strategy plugin.  For example, I added a user 
to a role and removed access of two of the users.  But, couldn't find these 
changes anywhere in the logs.

-- 
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/d52599a9-b821-4428-88af-75f7b96cf934%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Restrict view of certain jobs under folder.

2018-10-19 Thread gotviseryon
As per the documentation of that plugin, below, the moment I grant access 
to ^foo.* they'll be able to see everything under foo right?  In my case, 
everything under 'A'.  Or, may be am not getting it right.  Could you 
please help me on how to set it up?

First, assign that user/ group to read/ discover permissions with pattern " 
^foo.* "*,* then assign that same user/ group to the more particular 
permissions with pattern " ^foo/bar.* "




On Friday, October 19, 2018 at 3:33:34 PM UTC-4, Daniel Beck wrote:
>
>
>
> > On 19. Oct 2018, at 19:16, gotvi...@gmail.com  wrote: 
> > 
> > We are using 
> https://wiki.jenkins.io/display/JENKINS/Role+Strategy+Plugin this plugin. 
>  Unfortunately, as per this plugin we can only restrict users from other 
> team to modify the jobs.  Cannot completely hide the jobs.  Any 
> suggestions? 
>
> This is possible, you just need two different roles, and regexes that 
> match the folder and A1/A2 specifically without including the other. Then 
> grant Item/Read based on that, and don't make it a global role permission.

-- 
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/71ddcda5-ddae-447d-894d-d188f9edadc0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Restrict view of certain jobs under folder.

2018-10-19 Thread gotviseryon
Hi,

We have the following requirement.  Any recommendations?

We have a Folder 'A' created in Jenkins for an application team 'A'.  We 
have two subdivision under this application team 'A1 and A2'.  There are 4 
users, 2 under each subdivision - A1-User1, A1-User2 and A2-User1, 
A2-User2.  Both these divisions have their jobs running in Folder A.  The 
requirement is, when users from A1 login, they (strictly) *should not be 
able to see* the jobs of A2 and vice versa.  What is the best approach?

We are using https://wiki.jenkins.io/display/JENKINS/Role+Strategy+Plugin 
this plugin.  Unfortunately, as per this plugin we can only restrict users 
from other team to modify the jobs.  Cannot completely hide the jobs.  Any 
suggestions?

-- 
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/f4b0dde6-ddda-4158-957e-3609b3aafafb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Script for backing up Jenkins

2018-10-18 Thread gotviseryon
I found a plugin SCM Sync plugin.  Exploring this as well.

On Wednesday, October 17, 2018 at 8:22:16 PM UTC-4, rajendraprasad reddy 
wrote:
>
> Hi I can suggest two approaches here,
> All Jenkins configuration (jobs config, credentials,...etc) will be saved 
> in  directory.
>
> If it is running on Linux it must in /var/lib/Jenkins/ folder
>
> On the same Linux machine install SVN/git client create a commnd to 
> check-in files.
>
> You can run this command via Unix cron job.
>
> Another approach is via Jenkins backup plugin.
>
> Another approach is to use a seperate Jenkins job to run SVN/git check-in 
> command from build command.
>
> But last approach may not work when all Jenkins executors are stuck while  
> running other jobs.
>
> Thanks
> Rajendra
>
> On Tue 16 Oct, 2018, 6:33 AM , > wrote:
>
>> Hello,
>>
>> We are using Open Source Jenkins.  We want to backup the configuration 
>> and any changes happening in Jenkins everyday for recovery purpose.  Is 
>> there any scripts available for this purpose?  Jenkins is on Linux VM.
>>
>> -- 
>> 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/1e628851-fdad-46fe-b71c-ce5a4c494a17%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/43537db5-e208-4b38-9b0f-5a36f976c948%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Script for backing up Jenkins

2018-10-18 Thread gotviseryon
Nope.  I have a volume attached to that server and backing up to that 
volume.

On Wednesday, October 17, 2018 at 6:43:21 PM UTC-4, Sam K wrote:
>
> Hi
>   What is your backup location?  I hope its not on the same server as the 
> Jenkins Master.  
>
> On Wed, Oct 17, 2018 at 2:22 PM > wrote:
>
>> Thanks everyone for the update.  For now we are going with the Periodic 
>> Backup plugin which provides the backup of entire JENKINS_HOME.  This 
>> plugin works exactly the way we want.  But, we might end up with rsync 
>> option eventually.  Weighing in on each of the option.  Will keep posted.  
>> Thanks again everyone.
>>
>> On Wednesday, October 17, 2018 at 11:36:15 AM UTC-4, Sam K wrote:
>>>
>>> Glad to hear that Adam. 
>>>
>>> On Tue, Oct 16, 2018, 11:03 AM Adam von Nieda  
>>> wrote:
>>>

   I have a similar setup for Disaster Recovery, and rsync the entire 
 stack. Works like a charm, and I’ve tested within the last week. 

 --
 Adam vonNieda
 ad...@vonnieda.org




 On Oct 16, 2018, at 11:05 AM, Sam K  wrote:

 Hi
  I have a backup mechanism in place. I have a second Jenkins instance 
 and I've been using rsync in a cronjob to keep sending all config.xmls and 
 basically everything except build information and artifacts to the backup 
 Jenkins. It send the information every 2 mins. 

  I remember testing it once and it worked as expected.  But it's been 
 more than a year since the last testing to be honest. 

 -- 
 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/f475689a-c2d8-4c9a-8894-2682528f84ce%40googlegroups.com
 .
 For more options, visit https://groups.google.com/d/optout.


 -- 
 You received this message because you are subscribed to a topic in the 
 Google Groups "Jenkins Users" group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/jenkinsci-users/OeOFbzOtb_I/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to 
 jenkinsci-use...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/jenkinsci-users/BDFEECE5-DB14-4A94-B604-64EC374309C9%40vonnieda.org
  
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Jenkins Users" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/jenkinsci-users/OeOFbzOtb_I/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> jenkinsci-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/9cfb849a-d24a-4eec-9fb0-cdb745c21d21%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/1e2b91f4-ad29-489e-b38c-54e5f28fc1b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Update all plugins automatically

2018-10-18 Thread gotviseryon
My Jenkins is not a docker setup.  Can I still use this?  I found a plugin 
and installed it.  But getting this error


HTTP ERROR 404

Problem accessing /evergreen/. Reason:

Not Found





On Thursday, October 18, 2018 at 10:16:48 AM UTC-4, slide wrote:
>
> Another option would be Jenkins Evergreen [1]. It may meet your needs if 
> you are looking for known working, updated plugins and Jenkins setups.
>
> 1 - https://jenkins.io/projects/evergreen/
>
> On Thu, Oct 18, 2018 at 6:52 AM Simon Richter  > wrote:
>
>> Hi,
>>
>> > We are using open source Jenkins and have a bunch of plugins installed. 
>> > Is there a way to update all the plugins that are in the "Updates"
>> > section in the Plugin Manager?
>>
>> Yes, if you select the checkboxes, you can update multiple plugins at
>> once. The "All" link at the bottom selects all checkboxes.
>>
>>Simon
>>
>> -- 
>> 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/20181018135212.GA17055%40psi5.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/9cc72885-4b3e-4701-9135-949efe6c94cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Update all plugins automatically

2018-10-18 Thread gotviseryon
I can't believe how dumb I became!!! 

Thanks for the info :-)

On Thursday, October 18, 2018 at 9:52:26 AM UTC-4, Simon Richter wrote:
>
> Hi, 
>
> > We are using open source Jenkins and have a bunch of plugins installed.  
> > Is there a way to update all the plugins that are in the "Updates" 
> > section in the Plugin Manager? 
>
> Yes, if you select the checkboxes, you can update multiple plugins at 
> once. The "All" link at the bottom selects all checkboxes. 
>
>Simon 
>

-- 
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/ae1906c1-1e28-402d-8523-efadcd0520f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Update all plugins automatically

2018-10-17 Thread gotviseryon
Hi,

We are using open source Jenkins and have a bunch of plugins installed.  Is 
there a way to update all the plugins that are in the "Updates" section in 
the Plugin Manager?

-- 
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/3f542eb5-6e3c-4035-9fe9-ff0fee90b163%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Configure Linux and Windows slave node

2018-10-17 Thread gotviseryon
Hi,

Thanks for the link.  For Windows, I found this link more helpful 
- https://wiki.jenkins.io/pages/viewpage.action?pageId=75893612

On Monday, October 8, 2018 at 10:00:20 AM UTC-4, Pavel Novák wrote:
>
> Hi,
> there is a link with which describes step by step, how to add the agent , 
> new node 
> https://linuxacademy.com/blog/devops/adding-a-jenkins-agent-node/
>
> It seems to be possible add it via pipeline as well
>
> https://support.cloudbees.com/hc/en-us/articles/218154667-Create-a-Permanent-Agent-from-Groovy-Console
>
> launch methods are:
> - via ssh
> - via webstart
> - via execution command on master
> - control windows slave as windows service
>
> I have linux slaves made by ssh access and windows via webstart, eg. 
>
> Dne čtvrtek 4. října 2018 15:35:53 UTC+2 gotvi...@gmail.com napsal(a):
>>
>> What are the methods to configure a Linux and Windows slave node?
>>
>> Is there a runbook for 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/cd8619b4-9bf5-4d0c-9d2d-51b6974773be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Script for backing up Jenkins

2018-10-16 Thread gotviseryon
Hello,

We are using Open Source Jenkins.  We want to backup the configuration and 
any changes happening in Jenkins everyday for recovery purpose.  Is there 
any scripts available for this purpose?  Jenkins is on Linux VM.

-- 
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/1e628851-fdad-46fe-b71c-ce5a4c494a17%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Configure Linux and Windows slave node

2018-10-04 Thread gotviseryon
What are the methods to configure a Linux and Windows slave node?

Is there a runbook for 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/7569e5ed-93a8-458a-afd5-9fa34a9bf4c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins global metrics

2018-10-04 Thread gotviseryon
Sorry for the delayed response Rajendra.  Will try this and let you know.  
Got stuck with another issue.

On Friday, September 28, 2018 at 12:07:12 PM UTC-4, rajendraprasad reddy 
wrote:
>
> Following snippet can collect all jobs into a list,
>
> Just modify the script and please remove the filtering logic from previous 
> script,
>
> And add the following snippet, that's all you will get all the jobs.
>
> def jobsList=[];
>
> Jenkins.instance.projects.collect { 
>
> String currentJob=it.name; 
>
> jobsList.add(currentJob)
>
> }
>
> Thanks,
> Rajendra
>
> On Fri 28 Sep, 2018, 8:03 PM , > wrote:
>
>> Rajendra.  Thank you so much for the information.  It is very 
>> descriptive.  But, need some more help.  Sorry to bother, I'm new to 
>> Groovy.  You mentioned you are filtering the job name by 'Monitor'.  Just 
>> wanted to check how it works for this scenario
>>
>> I need details of all jobs, irrespective of which project/folder they 
>> belong to, from Saturday to Friday.  How does it work in this case?
>>
>> Also, I need this report to be emailed.  If you can suggest a method for 
>> that, will be helpful.  Thanks so much for the help.
>>
>> On Friday, September 28, 2018 at 3:00:14 AM UTC-4, rajendraprasad reddy 
>> wrote:
>>>
>>> Here is the Ggroovy Script:
>>> import javax.mail.*
>>> import javax.mail.internet.*
>>> import jenkins.model.*
>>> import java.text.SimpleDateFormat
>>> import java.util.*;
>>> import java.util.Calendar;
>>> import java.lang.System;
>>> import org.apache.tools.ant.Project
>>> import org.apache.tools.ant.ProjectHelper
>>>
>>> def env="Dev_Jenkins_Server";
>>> SimpleDateFormat sdf = new SimpleDateFormat("EEE MMM dd HH:mm:ss z 
>>> ");
>>> sdf.setTimeZone(TimeZone.getTimeZone("EST"));
>>> def  d=new Date();
>>> def oneHourPrior=new Date(System.currentTimeMillis() - 3600 * 1000);
>>> def currentTime=sdf.format(d);
>>> def monitoringStartTime=trim(oneHourPrior)
>>>
>>>
>>> def totalMonitoringJobs=0;
>>> def testSuiteIndex=0;
>>> def passedTestSuiteCount=0;
>>> def failedTestSuiteCount=0;
>>> def passedJobsList=[];
>>> def failedJobsList=[];
>>> def totalJobsList=[];
>>>
>>> println "Monitoring Start Time:"+monitoringStartTime ;
>>> println  "Monitoring Current Time:  "+currentTime;
>>>
>>> def matchedJobs = Jenkins.instance.items.findAll { job ->
>>> job.name =~ /Monitor/
>>> }
>>>
>>> println 
>>> "*"
>>>println "Total Monitoring Suites Count:"+matchedJobs.size();
>>>totalMonitoringJobs=matchedJobs.size();
>>>
>>> println "***Listing all Available 
>>> Monitoring Projects**"
>>> def index=0;
>>>  matchedJobs.each { job ->
>>>index=index+1;
>>> println index+". "+job.name;
>>> totalJobsList<>> }
>>> println 
>>> "*\n\n"
>>>
>>> println "Todays Execution Summary 
>>> Results***"
>>>  matchedJobs.each { job ->
>>>def numbuilds = job.builds.size()
>>>   if (numbuilds == 0) {
>>>println '  -> no build'
>>>return
>>>   }
>>>def lastbuild = job.builds[0]
>>>Calendar cal1 = Calendar.getInstance();
>>> Calendar cal2 = Calendar.getInstance();
>>> cal1.setTime(monitoringStartTime);
>>> cal2.setTime(lastbuild.getTime());
>>>
>>>
>>> if (cal2.after(cal1)) {
>>>testSuiteIndex=testSuiteIndex+1
>>> def rightPadding=50;
>>>
>>>
>>> String jobName= job.name;
>>> int requiredPadding=50-(jobName.size());
>>> while(requiredPadding>0){
>>>jobName=jobName+" "
>>>requiredPadding--;
>>> } 
>>>
>>> def jobInfo=jobName+'\tlastbuild: ' + lastbuild.displayName + ' = ' + 
>>> lastbuild.result + ', time: ' + lastbuild.getTime();
>>>
>>> String latestbuildStatus=lastbuild.result;
>>>  if( latestbuildStatus.equals("SUCCESS")){
>>>  passedTestSuiteCount=passedTestSuiteCount+1
>>>  //println "Found a Success Project"
>>>  jobInfo="\t\t"+ passedTestSuiteCount+" . "+jobInfo
>>> passedJobsList.add(jobInfo)
>>> }
>>>  if( latestbuildStatus.equals("FAILURE")){
>>>  failedTestSuiteCount=failedTestSuiteCount+1
>>>jobInfo="\t\t"+ failedTestSuiteCount+" . "+jobInfo
>>>  failedJobsList.add(jobInfo)
>>> }
>>> }
>>>
>>> }
>>>
>>> String passedJobsInfo= passedJobsList.join("\n")
>>> String failedJobsInfo= failedJobsList.join("\n")
>>>
>>> def jobsList ="";
>>> def jobIndex=0;
>>> totalJobsList.each{
>>>  jobIndex=jobIndex+1;
>>>  jobsList=jobIndex+". "+jobsList+it
>>>
>>> }
>>>
>>>
>>> String cumulativeStatus="PASS"
>>> if(failedJobsList.size()>0){
>>> cumulativeStatus="FAIL"
>>> }
>>>
>>>
>>> 

Re: Jenkins global metrics

2018-09-28 Thread gotviseryon
Rajendra.  Thank you so much for the information.  It is very descriptive.  
But, need some more help.  Sorry to bother, I'm new to Groovy.  You 
mentioned you are filtering the job name by 'Monitor'.  Just wanted to 
check how it works for this scenario

I need details of all jobs, irrespective of which project/folder they 
belong to, from Saturday to Friday.  How does it work in this case?

Also, I need this report to be emailed.  If you can suggest a method for 
that, will be helpful.  Thanks so much for the help.

On Friday, September 28, 2018 at 3:00:14 AM UTC-4, rajendraprasad reddy 
wrote:
>
> Here is the Ggroovy Script:
> import javax.mail.*
> import javax.mail.internet.*
> import jenkins.model.*
> import java.text.SimpleDateFormat
> import java.util.*;
> import java.util.Calendar;
> import java.lang.System;
> import org.apache.tools.ant.Project
> import org.apache.tools.ant.ProjectHelper
>
> def env="Dev_Jenkins_Server";
> SimpleDateFormat sdf = new SimpleDateFormat("EEE MMM dd HH:mm:ss z ");
> sdf.setTimeZone(TimeZone.getTimeZone("EST"));
> def  d=new Date();
> def oneHourPrior=new Date(System.currentTimeMillis() - 3600 * 1000);
> def currentTime=sdf.format(d);
> def monitoringStartTime=trim(oneHourPrior)
>
>
> def totalMonitoringJobs=0;
> def testSuiteIndex=0;
> def passedTestSuiteCount=0;
> def failedTestSuiteCount=0;
> def passedJobsList=[];
> def failedJobsList=[];
> def totalJobsList=[];
>
> println "Monitoring Start Time:"+monitoringStartTime ;
> println  "Monitoring Current Time:  "+currentTime;
>
> def matchedJobs = Jenkins.instance.items.findAll { job ->
> job.name =~ /Monitor/
> }
>
> println 
> "*"
>println "Total Monitoring Suites Count:"+matchedJobs.size();
>totalMonitoringJobs=matchedJobs.size();
>
> println "***Listing all Available 
> Monitoring Projects**"
> def index=0;
>  matchedJobs.each { job ->
>index=index+1;
> println index+". "+job.name;
> totalJobsList< }
> println 
> "*\n\n"
>
> println "Todays Execution Summary 
> Results***"
>  matchedJobs.each { job ->
>def numbuilds = job.builds.size()
>   if (numbuilds == 0) {
>println '  -> no build'
>return
>   }
>def lastbuild = job.builds[0]
>Calendar cal1 = Calendar.getInstance();
> Calendar cal2 = Calendar.getInstance();
> cal1.setTime(monitoringStartTime);
> cal2.setTime(lastbuild.getTime());
>
>
> if (cal2.after(cal1)) {
>testSuiteIndex=testSuiteIndex+1
> def rightPadding=50;
>
>
> String jobName= job.name;
> int requiredPadding=50-(jobName.size());
> while(requiredPadding>0){
>jobName=jobName+" "
>requiredPadding--;
> } 
>
> def jobInfo=jobName+'\tlastbuild: ' + lastbuild.displayName + ' = ' + 
> lastbuild.result + ', time: ' + lastbuild.getTime();
>
> String latestbuildStatus=lastbuild.result;
>  if( latestbuildStatus.equals("SUCCESS")){
>  passedTestSuiteCount=passedTestSuiteCount+1
>  //println "Found a Success Project"
>  jobInfo="\t\t"+ passedTestSuiteCount+" . "+jobInfo
> passedJobsList.add(jobInfo)
> }
>  if( latestbuildStatus.equals("FAILURE")){
>  failedTestSuiteCount=failedTestSuiteCount+1
>jobInfo="\t\t"+ failedTestSuiteCount+" . "+jobInfo
>  failedJobsList.add(jobInfo)
> }
> }
>
> }
>
> String passedJobsInfo= passedJobsList.join("\n")
> String failedJobsInfo= failedJobsList.join("\n")
>
> def jobsList ="";
> def jobIndex=0;
> totalJobsList.each{
>  jobIndex=jobIndex+1;
>  jobsList=jobIndex+". "+jobsList+it
>
> }
>
>
> String cumulativeStatus="PASS"
> if(failedJobsList.size()>0){
> cumulativeStatus="FAIL"
> }
>
>
> String  emailBody=""" 
>  ***Todays Cumulative Test Execution 
> Summary Report*
>  \tMonitoring Start Time:\t\t${monitoringStartTime} 
>  \tReport Genretated Time:\t${currentTime}
>  \tTotal Monitoring Jobs Count Scheduled to run in Monitoring Window:  
> ${totalMonitoringJobs}
>  \tTotal Jobs Executed Today(As of Now): ${testSuiteIndex}
>  \tTotal Jobs Passed Today(As of Now):${passedJobsList.size()}
>  \tTotal Jobs Failed Today:(As of Now): ${failedJobsList.size()}
>  \tCumulative Result: ${cumulativeStatus}
> 
> ***"""+"\n\n\t->Failed
>  
> Jobs Count: ${failedJobsList.size()} 
> \n"+failedJobsInfo+"\n\n\t->Passed Jobs Count: 
> ${passedJobsList.size()}\n"+passedJobsInfo+"\n\n"
>
> println emailBody;

Re: Jenkins global metrics

2018-09-27 Thread gotviseryon
Hi Rajendra.  Thank you so much for this news.  Would really appreciate 
help on implementing this.  Could you please guide me through?

On Thursday, September 27, 2018 at 9:44:16 PM UTC-4, rajendraprasad reddy 
wrote:
>
> Hi ,
> I did similar implementation for monitoring my Jenkins instance. But I 
> never used a plugin to do that , instead of plugins I used groovy script to 
> prepare mail body content and sending this mail body to intended recipient 
> list.
> Using groovy it is possible to get any information of Jenkins using 
> Jenkins API calls.
>
> Let me know you need further help in implementing this procedure.
>
> Thanks,
> Rajendra
>
> On Thu 27 Sep, 2018, 5:58 PM , > wrote:
>
>> Any help on this.  Little urgent.
>>
>> On Wednesday, September 26, 2018 at 3:29:23 PM UTC-4, gotvi...@gmail.com 
>> wrote:
>>>
>>> I'm looking to generate a report, as a job, which will provide the 
>>> global metrics of my Jenkins instance.  I need details in the report like 
>>> (1) How many jobs ran? (2) # of failed and successful jobs and every 
>>> possible metrics possible in one report.  I need to send this report every 
>>> week to my management, so would like to know if it's possible to schedule a 
>>> job to run this report every Friday and send the metrics by email to my 
>>> managers?  I found these two plugins - '*Global Build Status*' and '*Build 
>>> Metrics*'.  But not able to use these as part of a job, download the 
>>> report or email a link to the report or nothing of that sort.  Please help.
>>>
>> -- 
>> 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/b90c4f44-cae0-4c29-bdb1-2d9ceb0e1736%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/42f25477-6bdc-485e-95a9-466833637c9f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins global metrics

2018-09-27 Thread gotviseryon
Thanks a lot Vishal.  Will explore this.

On Thursday, September 27, 2018 at 1:12:48 PM UTC-4, Vishal Raina wrote:
>
> We have been exploring Hygiene it not only helps with Jenkins metrics and 
> also acts as a central dashboard for all your CI/CD tool set.
> Take a look at here https://github.com/Hygieia/Hygieia.
>
> HTH
>
> On Wednesday, September 26, 2018 at 12:29:23 PM UTC-7, gotvi...@gmail.com 
> wrote:
>>
>> I'm looking to generate a report, as a job, which will provide the global 
>> metrics of my Jenkins instance.  I need details in the report like (1) How 
>> many jobs ran? (2) # of failed and successful jobs and every possible 
>> metrics possible in one report.  I need to send this report every week to 
>> my management, so would like to know if it's possible to schedule a job to 
>> run this report every Friday and send the metrics by email to my managers?  
>> I found these two plugins - '*Global Build Status*' and '*Build Metrics*'.  
>> But not able to use these as part of a job, download the report or email a 
>> link to the report or nothing of that sort.  Please help.
>>
>

-- 
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/5b78d0f4-f2d2-4382-aaa8-95c7576d5d4a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins global metrics

2018-09-27 Thread gotviseryon
Thanks for the info Tyler.

On Thursday, September 27, 2018 at 10:46:20 AM UTC-4, R Tyler Croy wrote:
>
> (replies inline) 
>
> On Wed, 26 Sep 2018, gotvi...@gmail.com  wrote: 
>
> > I'm looking to generate a report, as a job, which will provide the 
> global 
> > metrics of my Jenkins instance.  I need details in the report like (1) 
> How 
> > many jobs ran? (2) # of failed and successful jobs and every possible 
> > metrics possible in one report.  I need to send this report every week 
> to 
> > my management, so would like to know if it's possible to schedule a job 
> to 
> > run this report every Friday and send the metrics by email to my 
> managers?   
> > I found these two plugins - '*Global Build Status*' and '*Build 
> Metrics*'.   
> > But not able to use these as part of a job, download the report or email 
> a 
> > link to the report or nothing of that sort.  Please help. 
>
>
> I personally use Datadog and their plugin integration to get such metrics 
> out 
> of our Jenkins instances. You can certainly script such metrics gathering 
> in 
> Jenkins, but there's nothing ready-made out of the box. 
>
>
>
> Cheers 
>
> -- 
> GitHub:  https://github.com/rtyler 
> Twitter: https://twitter.com/agentdero 
>

-- 
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/e6cb6873-445c-4851-a0c3-91ec65ce4771%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins global metrics

2018-09-27 Thread gotviseryon
Any help on this.  Little urgent.

On Wednesday, September 26, 2018 at 3:29:23 PM UTC-4, gotvi...@gmail.com 
wrote:
>
> I'm looking to generate a report, as a job, which will provide the global 
> metrics of my Jenkins instance.  I need details in the report like (1) How 
> many jobs ran? (2) # of failed and successful jobs and every possible 
> metrics possible in one report.  I need to send this report every week to 
> my management, so would like to know if it's possible to schedule a job to 
> run this report every Friday and send the metrics by email to my managers?  
> I found these two plugins - '*Global Build Status*' and '*Build Metrics*'.  
> But not able to use these as part of a job, download the report or email a 
> link to the report or nothing of that sort.  Please help.
>

-- 
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/b90c4f44-cae0-4c29-bdb1-2d9ceb0e1736%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins global metrics

2018-09-26 Thread gotviseryon
I'm looking to generate a report, as a job, which will provide the global 
metrics of my Jenkins instance.  I need details in the report like (1) How 
many jobs ran? (2) # of failed and successful jobs and every possible 
metrics possible in one report.  I need to send this report every week to 
my management, so would like to know if it's possible to schedule a job to 
run this report every Friday and send the metrics by email to my managers?  
I found these two plugins - '*Global Build Status*' and '*Build Metrics*'.  
But not able to use these as part of a job, download the report or email a 
link to the report or nothing of that sort.  Please help.

-- 
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/3262ec9d-3f0b-47fa-bdbd-182b05b5c871%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Install wildcars ssl certs in opensource Jenkins ver. 2.121

2018-09-26 Thread gotviseryon
Thanks for the details Vincent.  Will try this and update if it works.  If 
not, will publish the details.

On Tuesday, September 25, 2018 at 11:13:08 AM UTC-4, Vincent Latombe wrote:
>
> Hi,
>
> See
>
> https://wiki.jenkins.io/display/JENKINS/Starting+and+Accessing+Jenkins
>
> *> Using HTTPS with an existing certificate*
>
> If you still can't achieve it, please post more details about what you 
> have tried, and how it failed, so that we can help.
>
> Regarding your message,
>
> Please suggest the steps.
>
>
> Please help.  It's kind of urgent.
>
>
> Do you realise this kind of request is very irritating for people spending 
> time helping others for free?
>
> Vincent
>
>
> Le mar. 25 sept. 2018 à 16:49, > a 
> écrit :
>
>> I have open source Jenkins installed and people get authenticated using 
>> AD.  Currently it works on http://$URL.com.  Need to install wild card 
>> certs to make it https://$URL.com.  Please suggest the steps.  Went through 
>> this page https://wiki.jenkins.io/pages/viewpage.action?pageId=135468777, 
>> but unable to understand/find the details install wildcard certs.
>>
>> Please help.  It's kind of urgent.
>>
>> -- 
>> 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/b8848b9e-738e-4c8f-8e6b-da48db317985%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/4d3e254b-85e1-4f7e-b404-8cabc4a6fdb9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Install wildcars ssl certs in opensource Jenkins ver. 2.121

2018-09-25 Thread gotviseryon
I have open source Jenkins installed and people get authenticated using 
AD.  Currently it works on http://$URL.com.  Need to install wild card 
certs to make it https://$URL.com.  Please suggest the steps.  Went through 
this page https://wiki.jenkins.io/pages/viewpage.action?pageId=135468777, 
but unable to understand/find the details install wildcard certs.

Please help.  It's kind of urgent.

-- 
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/b8848b9e-738e-4c8f-8e6b-da48db317985%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Issue pushing Artifact to Nexus from Jenkins using Nexus Artifact Uploader

2018-09-20 Thread gotviseryon


I'm trying to publish an Artifact from Jenkins to Sonatype Nexus Repository 
Manager OSS 3.12.0-01 using the Nexus Artifact Uploader plugin.  But, the 
upload fails.  Below are the details I have given in the plugin in Jenkins:

 
KeyValue
Nexus Version Nexus3
Protocal HTTP
Nexus URL $NEXUS-URL
Credentials Cre
GroupId group-01
Version 0.0.1
Repository testrepo
ArtifactId abcd-0.3
Type tgz
Classifier  
File abcd-0.3.tgz

 

 

When I try to build, I get the following output

Uploading: $REPOSITORY_URL/group-01/abcd-0.3/0.0.1/abcd-0.3-0.0.1.tgz
10 % completed (193 kB / 1.9 MB).
20 % completed (385 kB / 1.9 MB).
30 % completed (578 kB / 1.9 MB).
40 % completed (770 kB / 1.9 MB).
50 % completed (958 kB / 1.9 MB).
Failed to deploy artifacts: Could not transfer artifact 
group-01:abcd-0.3:tgz:0.0.1 from/to testrepo ($REPOSITORY_URL): Broken pipe 
(Write failed)
ERROR: Uploading file abcd-0.3.tgz failed.
[Office365connector] No webhooks to notify
Finished: FAILURE

The *repository type* of the testrepo is *hosted* and the *repository 
format* is *npm*.  But, with the same configuration, I'm able to push the 
file to another repository for which the *repository type* is *hosted* and 
the *repository format* is *raw*.  Also, I'm manually able to upload this 
file through Nexus UI into the *npm*repository (for which the Jenkins job 
is unable to push artifact).

 

Please suggest.

-- 
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/3415644e-ec2c-43c4-932a-73ecc4a81e3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.