Re: Jenkins Backup and Restore

2018-11-26 Thread RAJENDRA PRASAD
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-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.
>

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


Re: Jenkins Backup and Restore

2018-11-26 Thread jxpearce
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/068329c2-bd4c-468b-ac60-f7c138e18b37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Backup and Restore

2018-11-26 Thread jxpearce


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/e16c5852-8d61-4dab-b717-81e3b6e7849e%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 
 

Re: Jenkins Backup and Restore

2018-11-26 Thread John Mellor
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: jenkinsci-users@googlegroups.com <
> jenkinsci-users@googlegroups.com> on behalf of gotviser...@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-users+unsubscr...@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
> ;.
> 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/0e5a17f5dc808937b44f25f634cc6eeb76fb907a.camel%40esentire.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins service going down on Windows Slave

2018-11-26 Thread Slide
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 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 

Re: Jenkins Backup and Restore

2018-11-26 Thread Artur Szostak
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: jenkinsci-users@googlegroups.com  on 
behalf of gotviser...@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-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.

-- 
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/c318b5c6cfce4024ab5d859fac9fe1f3%40partner.eso.org.
For more options, visit https://groups.google.com/d/optout.


Re: How to use folder properties?

2018-11-26 Thread ZillaYT
RTFM: https://wiki.jenkins.io/display/JENKINS/Folder+Properties+Plugin

Had to use in my Jenkinsfile
withFolderProperties {
projectName = env.PROJECT_NAME
}

On Monday, November 26, 2018 at 10:32:10 AM UTC-5, ZillaYT wrote:
>
> I wanted to clarify that I created a folder, and then jobs inside the 
> folder. I then configured the folder to have properties (e.g., 
> PROJECT_NAME) that I'm trying to use in the jobs inside the folder.
>
> On Monday, November 26, 2018 at 10:12:40 AM UTC-5, ZillaYT wrote:
>>
>> I have the folder properties plugin installed, and have defined some 
>> folder properties, e.g., key=PROJECT_NAME, value=foo. How do I use this in 
>> my jobs that belong in the folder? I tried env.PROJECT_NAME but it 
>> doesn't find it. Thanks!
>>
>

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


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 Pranav Kv
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-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.
>

-- 
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/CAHwQEkKzS4VBF3LrYAXhKpE2v%2BVM86%3DqnWgxKsyFQQ47ih0f1w%40mail.gmail.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 Master Memory is very less and subsequent jobs are failing with with OOM ..

2018-11-26 Thread Björn Rohlén
What are the values of "JENKINS_MASTER_MEMORY_CONFIG" under the 
"Environment Variables"-section of http://jenkins.url/systemInfo

On Friday, 23 November 2018 16:11:22 UTC+1, pbasan...@gmail.com wrote:
>
> Hi All,
>
> When Jenkins Jobs running on Jenkins Master memory is running out and 
> later the jenkins jobs failing with OOM Error.
>
> Is there a way to find  process which are locking the memory of the 
> Jenkins Master.
>
> FATAL: command execution failed
> java.lang.OutOfMemoryError: unable to create new native thread
>   at java.lang.Thread.start0(Native Method)
>
>
> Regards,
> Basanta
>

-- 
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/b8ffb5c9-76a3-4a0b-bc87-b0c615ef4663%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 John Mellor
Hi Slide,

We run our worker nodes mostly on sometimes-overloaded VMware hosts. We also 
interrupt the undersized network fairly routinely, for other reasons. Can you 
try hooking in a network degradation service, so that you see network outages, 
for instance.

JNLP connections fail in these circumstances, while ssh connections do not. 
Unfortunately, Windows essentially requires JNLP-only connections.



On Mon, 2018-11-26 at 08:23 -0700, 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 
mailto:john.mel...@esentire.com>> 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, 
gotviser...@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/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/94638a861184c792de1d164a7b17eef0fa402b41.camel%40esentire.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to use folder properties?

2018-11-26 Thread ZillaYT
I wanted to clarify that I created a folder, and then jobs inside the 
folder. I then configured the folder to have properties (e.g., 
PROJECT_NAME) that I'm trying to use in the jobs inside the folder.

On Monday, November 26, 2018 at 10:12:40 AM UTC-5, ZillaYT wrote:
>
> I have the folder properties plugin installed, and have defined some 
> folder properties, e.g., key=PROJECT_NAME, value=foo. How do I use this in 
> my jobs that belong in the folder? I tried env.PROJECT_NAME but it 
> doesn't find it. Thanks!
>

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


Re: Jenkins service going down on Windows Slave

2018-11-26 Thread Slide
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, gotviser...@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/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/CAPiUgVc-xHbnxYWjnpScOZWxOb8Y2qc0TduQ%3DK%2B%3DNskehQZZ2A%40mail.gmail.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.


Re: Jenkins service going down on Windows Slave

2018-11-26 Thread John Mellor
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, gotviser...@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/0643151142ab642b3a0117ea0b42ab1e41ccfda3.camel%40esentire.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins service going down on Windows Slave

2018-11-26 Thread Slide
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-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.
>


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


How to use folder properties?

2018-11-26 Thread ZillaYT
I have the folder properties plugin installed, and have defined some folder 
properties, e.g., key=PROJECT_NAME, value=foo. How do I use this in my jobs 
that belong in the folder? I tried env.PROJECT_NAME but it doesn't find it. 
Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ea57afac-daba-4cce-830e-84fb89f97f0e%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.


Jenkins Dependencies

2018-11-26 Thread Eric Fetzer
Our systems group removed some packages from our RHEL 6.10 server in order 
to remove the TSM Client.  It has caused our AD integration to quit 
working.  Which of the following dependencies are required for Jenkins 
version 2.138.2:

TIVsm-BA-6.4.2-3
TIVsm-filepath-6.4.2-0
TIVsm-API64-6.4.2-3
gskssl64-8.0-14.43
gskcrypt64-8.0-14.43

We're also getting all kinds of warnings in "Manage Jenkins" which I don't 
recall before the removal of these packages.  Could this be related?

You have data stored in an older format and/or unreadable data.
More InfoDismiss
It appears that your reverse proxy set up is broken.
New version of Jenkins (2.138.3) is available for download 
 (changelog 
).
Disable CLI over RemotingDismiss
Allowing Jenkins CLI to work in -remoting mode is considered dangerous and 
usually unnecessary. You are advised to disable this mode. Please refer to 
the CLI documentation  for 
details.
Go to plugin managerConfigure which of these warnings are shown
Warnings have been published for the following currently installed 
components.Pipeline: Groovy 2.11 
Arbitrary 
code execution due to incomplete sandbox protection 
Script Security sandbox 
bypass JUnit 
Plugin 1.18 XML 
External Entity (XXE) processing vulnerability 
CSRF vulnerability 
GitHub 
Branch Source Plugin 1.8.1 
CSRF 
vulnerability and insufficient permission checks allow capturing credentials 
Users with Overall/Read 
access can enumerate credential IDs 
Server-side request 
forgery 
Rebuilder 
1.25 Cross Site 
Scripting vulnerability 
Pipeline: 
Input Step 2.1 
Users 
with read access could interact with input step by default 
Pipeline: Nodes and 
Processes 2.4 
Incorrect
 
permission checks allow executing builds on agents without Computer/Build 
permission Groovy 1.29 
Arbitrary code 
execution vulnerability 
Pipeline: 
Build Step 2.2 
Missing 
permission check allows building all jobs 
Pipeline: Supporting APIs 
2.2 
Arbitrary
 
code execution due to incomplete sandbox protection 
Git client plugin 1.19.7 
Creation of 
temporary file with insecure permissions 
Git plugin 2.5.3 
Server-side request 
forgery Users 
without Overall/Read are able to access lists of user names and node names 
CSRF 
vulnerability in Git plugin allows capturing credentials 
SSH Credentials Plugin 
1.12 
Arbitrary 
file read vulnerability with Credentials Binding Plugin 1.13 or newer 
Script 
Security Plugin 1.21 
Unsafe 
entries in default whitelist 
Multiple sandbox bypasses 
Script Security sandbox 
bypass 
Arbitrary 
file read vulnerability 
Matrix 
Authorization Strategy Plugin 1.4 
Dangerous
 
permissions can be configured independently of Administer permission 

Re: Jenkins Batch to Bash

2018-11-26 Thread RAJENDRA PRASAD
Hi Ele,

You dont need to cover ant scripts:

Here is the Jenkins migration Steps from Windows to Linux:

*On Windows Machine Perform Following Activities*
1. First find out the Plugins Installed on windows Jenkins setup
2. Find out Tools like (maven,ant,jdk ..etc) installed on windows Jenkins
server (You can find these on jenkins global tool configuration)
3. Then Stop Jenkins and Copy all jobs files from Windows Jenkins Server:
/jobs Folder
 * How to Find Jenkins Home Folder:*
  Login to Jenkins
 Manage Jenkins
 System Configuration
 Click the first "advanced" buttonhere you can find
Jenkins_home path

*Then Perform Follwoing Activites on New Linux Jenkins Server;*
1. Install Jenkins on Linux Server nearest version that you installed on
Windows
2. Install the plugs that you have on windows Jenkins server
3. Install the all tools that you had on windows Jenkins server
4. Stop Jenkins Server
5. Copy the all the jobs to in to Linux JENKINS_HOME folder
6. Start Jenkins Server
7. Go to Manage Jenkins Server
8. Click on "Reload Configuration from Disk" link
9. Allow Jenkins relaod  takes 10-20 seocds will take
10. Re login and check your jobs , All must be there
wait wait Still porting is not completed.
11 On Linux Each yob you might be running as Batch command
12. Now you must change it  Shell to run.

[image: image.png]

 13 . And off course you need  port changes if you are using any native
batch scripts and need to convert into Bash Scripting.

Let me know if you need any help






*Thanks and Regards,Rajendra Prasad Reddy PenumalliSr. Engineer in
Testing.Mobile:9008566233*


On Fri, 23 Nov 2018 at 20:21, Cornelius Ele  wrote:

> Hello all,
>
> I am trying to migrate a Jenkins instance from a Windows machine to a
> Linux server. Upon doing a quick *.bat search in the C:\Program Files
> (x86)\Jenkins folder, I see 238 batch files.
> Do these batch files need to be converted for the new Jenkins instance to
> perform all its jobs? If so, how can the conversion be done?
>
> Appreciate any kind of feedback.
>
> --
> 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/01fc6bc7-f058-4488-bc28-e13ac01d789d%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/CAMrg02RVBAGzp7mYxXB26_YLuo2tnPf8QnXRUbGv8Pxn8zstUg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.