Suggestions needed

2016-10-26 Thread Jeffrey Harris
I'm trying to figure out a way to automate submitting a test to our hardware 
testbed and waiting for the test to complete so that the Jenkins job can report 
its status. 

Are either of the ideas below possible?

Create a Jenkins job that submits the test (this is the easy part), waits until 
the job is informed the test is complete and then processes the results. 

The other idea I've had is to create a spool_test job that only spoils the 
test. When the test is complete it starts a complete_test job to process the 
results. 

Ultimately I'd like to have a regress_tests job that spools several tests. But 
I'm not sure with the second approach how to tell regress_tests that it's not 
done until all the complete_test jobs (that it doesn't directly start) are 
done. 

Thanks for any help,
Jeff

-- 
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/c7619784-6c20-471f-b727-de7bc57495ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Cannot launch slaves now I'm using an Apache proxy

2016-10-26 Thread Jonathan Hodgson
Hi,

Does anybody have a working example apache conf running jenkins on a 
different machine to apache?

Things were working fine whilst I was accessing jenkins directly, but I 
need to do it through Apache.

Jenkins is running on a different machine to Apache.

Access to Jenkins works, with a redirect to https. Though the manage 
jenkins page indicated that the reverse proxy is not correctly set up.

But now when I try to launch a slave, it fails

On Windows I normally do it with the button on the slave node page, I get a 
dialog that says

"Unable to launch the application"
Name Agent for Asus K51
Publisher: Jenkins project
Location: https://


On OSX I use the command line shown on the node page.

I get 

Exception in thread "main" java.lang.IllegalArgumentException protocol = 
https host = null

In both cases it seems to be showing a location of https://

But I have no idea why it would do that, the jenkins url is set


-- 
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/685dbc27-8f0a-48a3-9ac8-1e99e84799f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Jenkins-infra] Scheduled infrastructure maintenance Oct 27 00:00 UTC

2016-10-26 Thread R. Tyler Croy
I am pleased to report that the maintenance window has completed, and outside
of some Docker annoyances everything went fairly well.


I will continue to keep an eye on services for the next couple hours just in
case, but please continue your regularly scheduled Jenkins hacking :)

- R. Tyler Croy

--
 Code: 
  Chatter: 

  % gpg --keyserver keys.gnupg.net --recv-key 1426C7DC3F51E16F
--

-- 
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/20161027012225.GO3357%40blackberry.coupleofllamas.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: Digital signature


How to clone a git repo with a different branch than master on Jenkinsfile

2016-10-26 Thread Mario Rodriguez
Hi, I have a very simple Jenkinsfile pipeline that uses "checkout scm" but 
I'm looking for a way to specify this command to use a different branch 
than master.

any ideas ?

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/33cbe031-5064-4a6b-a9ba-c620c927ed05%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Limit time a job can spend waiting for an executor in the Queue

2016-10-26 Thread eborgstrom
Hi,

We are using Jenkins with the GitHub Org Folder plugin to allow our users 
to leverage Jenkinsfiles for job definition.

One thing we have run into is when a user uses a label that does not exist 
for their node block then the job ends up waiting in the Build Queue 
forever.

We would like to cancel any job that has been in the queue for longer than 
X duration, but I can't find anything that seems to allow us to do this.

Does anyone have any advice/input on how we might cancel these jobs after a 
certain amount of time?

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/85c84b3f-07e6-4351-b83b-80206b907eba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


discard old build

2016-10-26 Thread Eddú Meléndez Gonzales
Hi,

Jenkins is working with Bitbucket Branch Source Plugin, "Discard old build" 
is set  when "Bitbucket Team/Project" job is created. So, branches and PR 
configuration should inherit these values. Actual behavior: is not working 
as expected.

Jenkins version: 2.19.1

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/f99b5523-65de-48a2-b17b-f417b5166cfe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Need to add Suse 9.2 - 32bit jenkins slave to Jenkins master running Jenkins version: 2.19.1

2016-10-26 Thread bgee
Hi,
Has anyone been able to add a Suse 9.2 slave to a recent version of Jenkins 
like 2.19.1?
Suse 9.x comes with java 1.6 but it appears that Jenkins require java 1.7 
and recommends 1.8.  I'm trying to install java 1.8 but it requires gcc 4.2 
and glibc 2.4 but I can't find these packages anywhere for Suse 9.2  
32bit.  Anyone know where to find these packages?

Thanks
bgee

-- 
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/28f5bda0-a021-44a5-9fbe-60c42aa16ebe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Troubleshooting reverse proxy setup

2016-10-26 Thread Jonathan Hodgson
I should probably add that although I can access jenkins through the 
browser from my slave machines, connecting them as slaves no longer works.

It was fine when I accessed jenkins directly, but now I've set up the 
proxy, neither the launch button (which I use with my windows slave) nor 
the "java -jar slave.jar" line (which I use with my OSX slave) work.

-- 
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/b9461280-769d-4276-b217-67d36b6fa00c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: bitbucket & jenkins integration

2016-10-26 Thread Eddú Meléndez Gonzales
Hi Michael

I'm using Bitbucket Cloud.

Cheers,

On Wednesday, October 26, 2016 at 8:20:54 AM UTC-5, Michael Kobit wrote:
>
> Are you using Bitbucket Cloud or Server?
>
> On Tue, Oct 25, 2016, 20:57 Eddú Meléndez Gonzales  > wrote:
>
>> Hi,
>>
>> I am working with Jenkins 2 and Bitbucket Branch Source Plugin and I have 
>> followed the following steps:
>>
>> 1. Create a new Item "Bitbucket Team/Project"
>> 2. Set "Scan Credentials" (tested with credential from team member and 
>> team/apitoken - Username and Password) 
>> 3. Enable "Auto-register webhooks"
>> 4. Then, Jenkins perform "Folder computation"
>>
>> This is working fine, scan all the projects which have Jenkinsfile in the 
>> repo and when new commit is sent analysis is perform automatically. But, 
>> when PR is sent the analysis is not performed. When, Folder computation is 
>> Re-run then I got: *HTTP request error. Status: 403: FORBIDDEN*
>>
>> I have a fork for this project so is obvious jenkins doesn't have access 
>> to my PR because it is using another credentials but I am a team member 
>> too. 
>>
>> I'd like to know if I'm missing something or which kind of credentials 
>> should I use?
>>
>> Thanks in advance
>>
>> 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-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/335f22e7-562e-4b27-8bc3-a14e9e21bcd3%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/36f22a1f-be0a-4ea0-8530-5da550d0a3b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: permission denied error when copying files in jenkins

2016-10-26 Thread David Hohl
I have actually the same problem, if I run:

su -l jenkins -s /bin/bash -c 'cp /var/lib/jenkins/workspace/xxx/index.php 
/var/www/html/tmp/'

the result is: 

cannot create regular file ‘/var/www/html/tmp/index.php’: Permission denied

What can I do?

On Friday, April 22, 2016 at 2:29:11 PM UTC+2, Alex Domoradov wrote:
>
> You can check in the server console
>
> # su -l jenkins -s /bin/bash -c 'cp /location/path1/file1.txt 
> /location2/path2/file1.txt'
>
> On Thursday, April 21, 2016 at 11:53:59 PM UTC+3, Pradeep Patra wrote:
>>
>> Hi all,
>> .  I have created a Jenkins server (master) and tried copying from one 
>> location/path of jenkins server to another  location a Perl script within 
>> the same server. I have changed all the file/ folders for Jenkins 
>> user/group(chown,chgrp)and restarted the Jenkins server. While copying 
>> files I an getting error " regular file cp failed: Permission denied error 
>> after trigerring the Jenkins job which uses script to copy files. Can 
>> anyone help in this please?
>>
>> Regards
>> Pradeep
>>
>

-- 
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/2d7c85fc-86d5-44c8-bae7-22ea4ba9231e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Quiet Period in MB Pipelines?

2016-10-26 Thread Michael Lasevich
Is there a way to enable quiet periods via MB Pipeline and properties 
command?

The option is not there in the pipeline syntax codegen and I am wondering 
if there is a reason for that... 

Thanks,

-M

-- 
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/cde80896-fe66-483b-a912-2f8530ca0d82%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Troubleshooting reverse proxy setup

2016-10-26 Thread Jonathan Hodgson
Hi,

I'm currently getting a "It appears that your reverse proxy set up is 
broken." message on the Manage Jenkins Page.

I'm using Apache as a proxy to Jenkins (which is on another machine).

My proxy setup looks like thsi
ProxyPass /jenkins  http://192.168.0.6:8080/jenkins nocanon
ProxyPassReverse  /jenkins  http://192.168.0.6:8080/jenkins
ProxyRequests Off
AllowEncodedSlashes NoDecode

# Local reverse proxy authorization override
# Most unix distribution deny proxy by default (ie 
/etc/apache2/mods-enabled/pr$
http://192.168.0.6:8080/jenkins*>
  Order deny,allow
  Allow from all




I've tried 

curl -iL -e http:/MyServer.url/jenkins/manage \
  
 
http://User:passw...@myserver.url/jenkins/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test


But the response I get is

HTTP/1.1 302 Found
Date: Wed, 26 Oct 2016 19:26:37 GMT
Server: Jetty(9.2.z-SNAPSHOT)
X-Content-Type-Options: nosniff
Location: 
http://MyServer.url/jenkins/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/http:/MyServer.url/jenkins/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/testForReverseProxySetup/http%3A%2F%2FMyServer.url%2Fjenkins%2Fmanage/
Content-Length: 0

HTTP/1.1 404 Not Found
Date: Wed, 26 Oct 2016 19:26:37 GMT
Server: Apache
Vary: Accept-Encoding
Content-Length: 531
Content-Type: text/html; charset=iso-8859-1



404 Not Found

Not Found
The requested URL 
/jenkins/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/http:/MyServer.url/jenkins/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/testForReverseProxySetup/http://MyServer.url/jenkins/manage/
 
was not found on this server.

Apache Server at MyServer.url Port 80


Which makes me suspect the command is malformed, but it's copied straight 
from the WIKI page (with the change of url and adding a username and 
password)

So I don't really know where to start trying to troubleshoot this.

Any ideas anyone?

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/99a4cd36-2ef1-4dff-b643-1fd668952cfe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: jenkins ssh-agent ansible

2016-10-26 Thread AC
I think this actually has to do with the ssh-agent not running in the same 
session. If this is the case is my only option to use the Jenkins ssh-agent 
plugin?

On Wednesday, October 26, 2016 at 2:16:37 PM UTC-4, AC wrote:
>
> Hello,
>
> I have Ansible installed on my Jenkins master. The Jenkins Ansible plugin 
> was working and completing jobs until I switched over to using ssh-agent to 
> encrypt my private key. However, I can still run Ansible commands from the 
> Jenskins Master CLI but not from the Jenkins Ansible Plugin.
>
> Does Jenkins not run the jobs as the Jenkins user which has ssh-agent 
> running? Does anyone know if there is a way to do this?
>
> 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/945f9c00-6665-4783-a26e-d85ebf703e2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


jenkins ssh-agent ansible

2016-10-26 Thread AC
Hello,

I have Ansible installed on my Jenkins master. The Jenkins Ansible plugin 
was working and completing jobs until I switched over to using ssh-agent to 
encrypt my private key. However, I can still run Ansible commands from the 
Jenskins Master CLI but not from the Jenkins Ansible Plugin.

Does Jenkins not run the jobs as the Jenkins user which has ssh-agent 
running? Does anyone know if there is a way to do this?

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/7b7b1903-c2a3-4173-9024-9e1ffe4530e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Get jenkins prefix in pipeline groovy

2016-10-26 Thread Jonathan Hodgson
Hi,

My jenkins instance is accessible on

http://MyWebsite.com/jenins

with "jenkins" being set by --prefix=jenkins in the jenkins defailt file.

Standard.

Since I'd like my scripts to be portable, I don't want to hardcode the 
"jenkins" into paths in the script, so how can I get this value from within 
Groovy?

Further to that, is there anywere that documents how to get this kind of 
useful information? I had to do a fair bit of searching to find how to get 
the user name and email for example.

-- 
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/a3b5e14d-eaed-48b1-b13d-1fb1c44084ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Scheduled infrastructure maintenance Oct 27 00:00 UTC

2016-10-26 Thread R. Tyler Croy

I am scheduling a maintenance window for later today (17:00 PDT / 00:00 UTC)
for 60 minutes to apply some new kernel patches to the project's
infrastructure.

The ticket to track this work can be found here:



This will be a simple update and reboot so service outages should be minimal. I
will update this thread once everything has been completed.


Cheers
- R. Tyler Croy

--
 Code: 
  Chatter: 

  % gpg --keyserver keys.gnupg.net --recv-key 1426C7DC3F51E16F
--

-- 
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/20161026171049.GN3357%40blackberry.coupleofllamas.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: Digital signature


RE: Jenkins upgrade from 1.608 to 2.9-1.1 version on CentOS release 6.8 (Final).

2016-10-26 Thread John Mellor
Kaushal ran:

Ø  #cp -r jenkinsnbackup /opt/jenkins

I assume from the prompt that you ran this as the wrong user, and the 
permissions and ownership are all now messed up.  Correct?



From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Eric Pyle
Sent: October-26-16 12:36
To: jenkinsci-users@googlegroups.com
Subject: Re: Jenkins upgrade from 1.608 to 2.9-1.1 version on CentOS release 
6.8 (Final).


I'm assuming your new Jenkins version is installed in the same location as the 
old one. Have you looked at the Jenkins logs to see if there are some errors 
reported which may be preventing your jobs from loading?

Eric

On 10/26/2016 12:11 PM, Kaushal Shriyan wrote:
Hi,

I have installed jenkins-2.9-1.1.noarch on CentOS release 6.8 (Final). I have 
imported the jenkins folder from the old server which is running 
jenkins-1.608-1.1.noarch.
I have restarted the jenkins 2.9-1.1 version, But i do not see the 
workspace,jobs,users and nodes which i populated it from the old server using 
the backup.

#cp -r jenkinsnbackup /opt/jenkins

Am i missing any step? Any help will be highly appreciable. Please do let me 
know if you need any details about jenkins (jenkins-2.9-1.1.noarch) 
configuration.

Regards,

Kaushal
--
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/0a315223-843f-4aea-9d27-2b1c7044f4e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Eric Pyle

Release Engineer

Lebanon

+1 603-277-3060 (T)

+1 603-359-8670 (M)

eric.p...@cd-adapco.com 

http://www.cd-adapco.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/f7fd885a-8396-b210-f01b-5f0a6a98f8e8%40cd-adapco.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/16d386be5b9d4e2f984d3acabe2de29e%40mbx02cmb01p.esentire.local.
For more options, visit https://groups.google.com/d/optout.


shell script to restart windows machine using jenkins job

2016-10-26 Thread Mayank Raghuwanshi
Hello All,

I am trying to automate windows machine reboot using jenkins job.

I created small shell script to restart windows machine in jenkins but when 
shell script runs from jenkins job it fails due to access permission.

I want to know at what level or how i can provide access to Jenkins or job 
to run shell script and restart server.

I tried using power shell and providing info of remote server but still it 
did not work..

Please provide me direction to achieve this job to automate restart of 
Windows server.

Regards,
Mayank Raghuwanshi

-- 
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/52089e6d-5ed4-43ac-b728-c430cdb5100c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins upgrade from 1.608 to 2.9-1.1 version on CentOS release 6.8 (Final).

2016-10-26 Thread Eric Pyle
I'm assuming your new Jenkins version is installed in the same location 
as the old one. Have you looked at the Jenkins logs to see if there are 
some errors reported which may be preventing your jobs from loading?


Eric


On 10/26/2016 12:11 PM, Kaushal Shriyan wrote:

Hi,

I have installed jenkins-2.9-1.1.noarch on CentOS release 6.8 (Final). 
I have imported the jenkins folder from the old server which is 
running jenkins-1.608-1.1.noarch.
I have restarted the jenkins 2.9-1.1 version, But i do not see the 
workspace,jobs,users and nodes which i populated it from the old 
server using the backup.


#cp -r jenkinsnbackup /opt/jenkins

Am i missing any step? Any help will be highly appreciable. Please do 
let me know if you need any details about jenkins 
(jenkins-2.9-1.1.noarch) configuration.


Regards,

Kaushal
--
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/0a315223-843f-4aea-9d27-2b1c7044f4e1%40googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
*Eric Pyle
*
Release Engineer
Lebanon
+1 603-277-3060 (T)
+1 603-359-8670 (M)
eric.p...@cd-adapco.com 
http://www.cd-adapco.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/f7fd885a-8396-b210-f01b-5f0a6a98f8e8%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Constructor or equivalent for "Global Variables" in libraries

2016-10-26 Thread Michael Lasevich
Yeah, I would expect it to work as well, but it simply does not.

It is probably something to do with either the way this is loaded or CPS, 
we have already seen that CPS has hard time handling some basic Groovy 
concepts like getters/setters - I was just hoping I was missing something 
obvious  :-(

-M

On Wednesday, October 26, 2016 at 9:00:40 AM UTC-7, Martina wrote:
>
> In a big standalone groovy I have
>
> class myClass {
> List myList = []
>
> public myCall (item) {
>   myList.add(item)
> }
> }
>
> I am pretty sure I have used it without the class stuff in smaller 
> snippets.
>
> Martina
>
>
>
> On Wednesday, October 26, 2016 at 8:54:59 AM UTC-6, Michael Lasevich wrote:
>>
>> No dice,
>>
>> groovy.lang.MissingPropertyException: No such property: myList for class: 
>> myListTest
>>
>>
>> -M
>>
>> On Wednesday, October 26, 2016 at 7:42:19 AM UTC-7, Martina wrote:
>>>
>>> Try the following:
>>>
>>> myList = []
>>>
>>>
>>> def call(item){
>>>   myList << item
>>> }
>>>
>>> Martina
>>>
>>> On Wednesday, October 26, 2016 at 12:24:48 AM UTC-6, Michael Lasevich 
>>> wrote:

 So, what is the proper way to initialize the fields in the "Global 
 Variables" found in the /vars dir in library code?

 I know it is supposed to be a singleton instantiated on first call, and 
 I know I can SET new fields by just setting them, but what if I want them 
 to have default value when object is created? Something like:

 // vars/myListAdder.groovy

 def myList = []


 def call(item){
   this.myList << item
 }

 I would expect this to work, but it doesn't as it cannot find myList 
 defined

 I worked around it for now by using a try/catch to initialize myList on 
 first call, but that seems wrong. There has got to be a proper way to do 
 this, but I am not sure what it is - nothing I tried seems to work

 Thanks,

 -M



-- 
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/b0efbd97-4b9b-4b73-8f07-db3ea8c5d48a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins upgrade from 1.608 to 2.9-1.1 version on CentOS release 6.8 (Final).

2016-10-26 Thread Kaushal Shriyan
Hi,

I have installed jenkins-2.9-1.1.noarch on CentOS release 6.8 (Final). I 
have imported the jenkins folder from the old server which is 
running jenkins-1.608-1.1.noarch. 
I have restarted the jenkins 2.9-1.1 version, But i do not see the 
workspace,jobs,users and nodes which i populated it from the old server 
using the backup.

#cp -r jenkinsnbackup /opt/jenkins

Am i missing any step? Any help will be highly appreciable. Please do let 
me know if you need any details about jenkins (jenkins-2.9-1.1.noarch) 
configuration.

Regards,

Kaushal

-- 
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/0a315223-843f-4aea-9d27-2b1c7044f4e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Declarative Piepline: conditional execution of stage/steps depending on branch

2016-10-26 Thread Eddard
I recently been introduced to declarative pipeline 
me and my team would like to use this model on most
of our CI Jobs. 

The problem we are trying to solve right now is to find a way to execute 
certain stages or steps only on certain branches (master)
is there a declarative way to do that?

best regards
Eddard

-- 
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/db46828f-a8df-45ce-8623-e9e401096866%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Constructor or equivalent for "Global Variables" in libraries

2016-10-26 Thread Martina
In a big standalone groovy I have

class myClass {
List myList = []

public myCall (item) {
  myList.add(item)
}
}

I am pretty sure I have used it without the class stuff in smaller snippets.

Martina



On Wednesday, October 26, 2016 at 8:54:59 AM UTC-6, Michael Lasevich wrote:
>
> No dice,
>
> groovy.lang.MissingPropertyException: No such property: myList for class: 
> myListTest
>
>
> -M
>
> On Wednesday, October 26, 2016 at 7:42:19 AM UTC-7, Martina wrote:
>>
>> Try the following:
>>
>> myList = []
>>
>>
>> def call(item){
>>   myList << item
>> }
>>
>> Martina
>>
>> On Wednesday, October 26, 2016 at 12:24:48 AM UTC-6, Michael Lasevich 
>> wrote:
>>>
>>> So, what is the proper way to initialize the fields in the "Global 
>>> Variables" found in the /vars dir in library code?
>>>
>>> I know it is supposed to be a singleton instantiated on first call, and 
>>> I know I can SET new fields by just setting them, but what if I want them 
>>> to have default value when object is created? Something like:
>>>
>>> // vars/myListAdder.groovy
>>>
>>> def myList = []
>>>
>>>
>>> def call(item){
>>>   this.myList << item
>>> }
>>>
>>> I would expect this to work, but it doesn't as it cannot find myList 
>>> defined
>>>
>>> I worked around it for now by using a try/catch to initialize myList on 
>>> first call, but that seems wrong. There has got to be a proper way to do 
>>> this, but I am not sure what it is - nothing I tried seems to work
>>>
>>> Thanks,
>>>
>>> -M
>>>
>>>

-- 
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/104aa9d2-7c6d-4b4c-88a8-34202c8b8862%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins 2.0: Turn off Setup wizard

2016-10-26 Thread Mike Albert
Setting Djenkins.install.runSetupWizard=false doesn't seem to be working 
correctly for me with more recent Jenkins releases.  Setting that flag for 
Jenkins 2.1 works fine, but that same flag doesn't work with the latest 
release (2.27) or stable release (2.7.4).  Is there a different flag that I 
should be setting?

On Tuesday, May 3, 2016 at 11:44:13 AM UTC-4, Mike Albert wrote:
>
> Adding a restart step to our Jenkins deployment script did the trick.  The 
> java option to disable the setup wizard is working as well.  Thanks!
>
> On Monday, May 2, 2016 at 6:44:18 PM UTC-4, Daniel Beck wrote:
>>
>>
>> > On 03.05.2016, at 00:15, Richard Bywater  wrote: 
>> > 
>> > @Daniel - FYI I can't actually see a reply from you in this thread from 
>> April 21st. 6th April seems to be the last email from you in the thread. 
>>
>> I hate my email client :-( 
>>
>> Set the system property jenkins.install.runSetupWizard to false to skip 
>> both install and upgrade wizards -- this will not enable security options 
>> either: 
>>
>> java -Djenkins.install.runSetupWizard=false -jar jenkins.war 
>>
>>
>> https://wiki.jenkins-ci.org/display/JENKINS/Features+controlled+by+system+properties
>>  
>>
>>

-- 
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/cefcf27e-0a3f-4495-ba63-960f4790c65f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Best practices for develop/release branch model with pipeline

2016-10-26 Thread Michael Lasevich
I am not sure the stages you are talking about are same as what Jenkins 
Pipelines calls stages.

Jenkins, at its core, is a job server. In Pipelines, a stage is a segment 
of a job. Stages of a build job would be something like "Build Binaries" or 
"Upload Build Artifacts" - something that is part of one logical job. What 
you are talking is a deployment process which is really a separate job from 
a build job, and not really a "stage" of build. 

So, my approach would be (and is, in some cases):

* Set up a Pipeline build for the develop branch 
* Make sure the build job archives either deployment artifact(s) or pointer 
to them - something that can be used for deployment.
* Set up a separate deployment job (can also be Pipeline) that takes in 
parameters for a build run and target environment (stage, QA, UA, PreProd, 
Production, whatever), and grabs artifacts/pointers from the selected run 
and performs a deployment

Now, if you want to get fancy, you make that first "build" job a 
MultiBranch job that builds both develop and some versions of the feature 
branches (I've used /feature/build/* pattern) and then modify the selection 
of the job run to select from multiple branches (need to write a Groovy 
based Parameter selector for that) - and now you can deploy builds from 
feature branches for testing BEFORE they are merged into develop

HTH,

-M







On Wednesday, October 26, 2016 at 4:21:23 AM UTC-7, Sathyakumar Seshachalam 
wrote:
>
> New to Jenkins pipeline.
>
> My process is that developers work off of develop branch (Feature branches 
> and merges of-course).
> At any point in time, a release branch is branched off of develop  and 
> then deployed to a stage environment, Once Accepted/approved, the same 
> release branch is deployed into prod. (All immutable deployments).
>
> So am looking at atleast two stages that are only conditionally and 
> manually entered  - stages being deploy to stg, deploy to prod and 
> condition being the branch prefix. (Each stage will have build steps like 
> deploy binaries, launch, run functional tests etc.,) and an automatic stage 
> that is triggered only once per day (nightly) with build steps like deploy 
> binaries, lunch, run and tear down).
>
> Is this kind of a workflow feasible with pipelines. If yes, Are there any 
> recommendations/suggestions/pointers. 
>
> Thanks,
> Sathya
>

-- 
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/8cfea0f2-bd05-4aac-ab89-21ce5cf21cda%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Constructor or equivalent for "Global Variables" in libraries

2016-10-26 Thread Michael Lasevich
No dice,

groovy.lang.MissingPropertyException: No such property: myList for class: 
myListTest


-M

On Wednesday, October 26, 2016 at 7:42:19 AM UTC-7, Martina wrote:
>
> Try the following:
>
> myList = []
>
>
> def call(item){
>   myList << item
> }
>
> Martina
>
> On Wednesday, October 26, 2016 at 12:24:48 AM UTC-6, Michael Lasevich 
> wrote:
>>
>> So, what is the proper way to initialize the fields in the "Global 
>> Variables" found in the /vars dir in library code?
>>
>> I know it is supposed to be a singleton instantiated on first call, and I 
>> know I can SET new fields by just setting them, but what if I want them to 
>> have default value when object is created? Something like:
>>
>> // vars/myListAdder.groovy
>>
>> def myList = []
>>
>>
>> def call(item){
>>   this.myList << item
>> }
>>
>> I would expect this to work, but it doesn't as it cannot find myList 
>> defined
>>
>> I worked around it for now by using a try/catch to initialize myList on 
>> first call, but that seems wrong. There has got to be a proper way to do 
>> this, but I am not sure what it is - nothing I tried seems to work
>>
>> Thanks,
>>
>> -M
>>
>>

-- 
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/9b253148-84ea-479c-b5ba-3ace633c60bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Constructor or equivalent for "Global Variables" in libraries

2016-10-26 Thread Martina
Try the following:

myList = []


def call(item){
  myList << item
}

Martina

On Wednesday, October 26, 2016 at 12:24:48 AM UTC-6, Michael Lasevich wrote:
>
> So, what is the proper way to initialize the fields in the "Global 
> Variables" found in the /vars dir in library code?
>
> I know it is supposed to be a singleton instantiated on first call, and I 
> know I can SET new fields by just setting them, but what if I want them to 
> have default value when object is created? Something like:
>
> // vars/myListAdder.groovy
>
> def myList = []
>
>
> def call(item){
>   this.myList << item
> }
>
> I would expect this to work, but it doesn't as it cannot find myList 
> defined
>
> I worked around it for now by using a try/catch to initialize myList on 
> first call, but that seems wrong. There has got to be a proper way to do 
> this, but I am not sure what it is - nothing I tried seems to work
>
> Thanks,
>
> -M
>
>

-- 
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/c8f0d36b-4a50-4959-b392-552d294ed0f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: bitbucket & jenkins integration

2016-10-26 Thread Michael Kobit
Are you using Bitbucket Cloud or Server?

On Tue, Oct 25, 2016, 20:57 Eddú Meléndez Gonzales 
wrote:

Hi,

I am working with Jenkins 2 and Bitbucket Branch Source Plugin and I have
followed the following steps:

1. Create a new Item "Bitbucket Team/Project"
2. Set "Scan Credentials" (tested with credential from team member and
team/apitoken - Username and Password)
3. Enable "Auto-register webhooks"
4. Then, Jenkins perform "Folder computation"

This is working fine, scan all the projects which have Jenkinsfile in the
repo and when new commit is sent analysis is perform automatically. But,
when PR is sent the analysis is not performed. When, Folder computation is
Re-run then I got: *HTTP request error. Status: 403: FORBIDDEN*

I have a fork for this project so is obvious jenkins doesn't have access to
my PR because it is using another credentials but I am a team member too.

I'd like to know if I'm missing something or which kind of credentials
should I use?

Thanks in advance

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/335f22e7-562e-4b27-8bc3-a14e9e21bcd3%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/CALELY9Gt7PHc5xKetpXhP%2BJtmL3yZFXAFXJSYsOYhDcECLQafQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Multibranch Pipeline: GCC errors does not stand out

2016-10-26 Thread Baptiste Mathus
Hi, you have to understand a bit more how things work to enable that.

On the CLI, this is generally done through ansi escape codes. So, to enable
that on Jenkins, you "just" have to enable "something" that would translate
those to something a web browser can understand:
https://wiki.jenkins-ci.org/display/JENKINS/AnsiColor+Plugin

2016-10-24 10:48 GMT+02:00 Sverre Moe :

> When running make manually on the command line I get highlighting. It
> would help the developers greatly if they could see the same in Jenkins
> Console Output.
>
>
> 
>
>
> onsdag 19. oktober 2016 09.55.27 UTC+2 skrev Sverre Moe følgende:
>>
>> The Pipeline Stage View, show Logs
>> It should show red color for those steps that has error, I have seen it
>> on some occasions. However it does not highlight those steps that has gcc
>> compile errors.
>>
>> Our developers opinion is that the Console output is difficult to parse. 
>> since
>> all the paralell runs are all jumbled all together. I have tried the
>> AnsiColorBuildWrapper, but that does not work. Shouldn't the
>> AnsiColorBuildWrapper color the output, but what are the criteria for
>> the coloring?
>>
>> The Snippet Generator gives me the following not working example
>> wrap() {
>>   make
>> }
>>
>>
>> BUG! exception in phase 'semantic analysis' in source unit
>> 'WorkflowScript' The lookup for com.company.ci.Build caused a failed
>> compilaton. There should not have been any compilation from this call.
>>  at org.codehaus.groovy.control.ClassNodeResolver.tryAsLoaderCla
>> ssOrScript(ClassNodeResolver.java:190)
>>  at org.codehaus.groovy.control.ClassNodeResolver.findClassNode(
>> ClassNodeResolver.java:170)
>>  at org.codehaus.groovy.control.ClassNodeResolver.resolveName(Cl
>> assNodeResolver.java:126)
>>  at org.codehaus.groovy.control.ResolveVisitor.resolveToOuter(Re
>> solveVisitor.java:676)
>>  at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.
>> java:308)
>>  at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.
>> java:276)
>>  at org.codehaus.groovy.control.ResolveVisitor.resolveOrFail(Res
>> olveVisitor.java:260)
>>  at org.codehaus.groovy.control.ResolveVisitor.resolveOrFail(Res
>> olveVisitor.java:272)
>>  at org.codehaus.groovy.control.ResolveVisitor.transformConstruc
>> torCallExpression(ResolveVisitor.java:1047)
>>  at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.
>> java:706)
>>  at org.codehaus.groovy.control.ResolveVisitor.transformDeclarat
>> ionExpression(ResolveVisitor.java:1088)
>>  at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.
>> java:698)
>>  at org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visit
>> ExpressionStatement(ClassCodeExpressionTransformer.java:142)
>>  at org.codehaus.groovy.ast.stmt.ExpressionStatement.visit(Expre
>> ssionStatement.java:42)
>>  at org.codehaus.groovy.ast.CodeVisitorSupport.visitBlockStatement(
>> CodeVisitorSupport.java:37)
>>  at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitBlockStatement(
>> ClassCodeVisitorSupport.java:166)
>>  at org.codehaus.groovy.control.ResolveVisitor.visitBlockStatement(
>> ResolveVisitor.java:1318)
>>  at org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java
>> :71)
>>  at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClassCo
>> deContainer(ClassCodeVisitorSupport.java:104)
>>  at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitConstru
>> ctorOrMethod(ClassCodeVisitorSupport.java:115)
>>  at org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visit
>> ConstructorOrMethod(ClassCodeExpressionTransformer.java:53)
>>  at org.codehaus.groovy.control.ResolveVisitor.visitConstructorOrMethod(
>> ResolveVisitor.java:201)
>>  at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitMethod(
>> ClassCodeVisitorSupport.java:126)
>>  at org.codehaus.groovy.ast.ClassNode.visitContents(ClassNode.java:1078)
>>  at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClass(C
>> lassCodeVisitorSupport.java:53)
>>  at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.
>> java:1261)
>>  at org.codehaus.groovy.control.ResolveVisitor.startResolving(Re
>> solveVisitor.java:176)
>>  at org.codehaus.groovy.control.CompilationUnit$11.call(CompilationUnit.
>> java:651)
>>  at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(
>> CompilationUnit.java:931)
>>  at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(
>> CompilationUnit.java:593)
>>  at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.
>> java:542)
>>  at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298
>> )
>>  at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
>>  at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688)
>>  at groovy.lang.GroovyShell.parse(GroovyShell.java:700)

Re: Logging to the console output from a trusted global pipeline library

2016-10-26 Thread Baptiste Mathus
Hi,
IIUC you try to call a step (echo) from nonCPS, this is not supported.
See https://groups.google.com/d/msg/jenkinsci-users/1BIPH5FrktE/3N02pUNDAgAJ
and more explanations here on a previous answer of mine
https://groups.google.com/d/msg/jenkinsci-users/1BIPH5FrktE/p9Ys5gJEAgAJ

HTH

2016-10-22 15:36 GMT+02:00 Sean McNamara :

> Amendment below; I omitted some information...
>
> On Sat, Oct 22, 2016 at 9:33 AM, Sean McNamara  wrote:
> > Hello,
> >
> > I'm trying to print to the console output tab of a running pipeline
> > project from a global pipeline library. My understanding is that the
> > only way to do this is via the echo step.
> >
> > What I have is a bunch of more "sophisticated" Groovy code (such as -
> > *gasp!* - loops) that doesn't work under the CPS interpreter, so I
> > have *most* of my global pipeline library's methods annotated with
> > @NonCPS.
> >
> > However, I have a CPS-interpreted class that looks like this:
> >
> > class Stepper implements Serializable {
> > static def steps
> > static def log(o) { Stepper.steps.echo o; }
> > }
>
>
> I *also* have the following in my pipeline script, after the @Library
> and import statements:
>
> Stepper.steps = this
>
> node {
>DriverMethods.main(param)  // Kicks off the complex code in the
> global pipeline library, passing a build parameter to it
> }
>
>
>
> >
> > When I call Stepper.log "hi" from other classes in the global pipeline
> > library (mostly from @NonCPS methods), it works fine the *first* time.
> > But every subsequent call to Stepper.log does not print to the console
> > output.
> >
> > Interestingly, the job succeeds; no exception is thrown on the JVM
> > stdout/stderr; and no complaining messages are printed to the console
> > output. It just... silently eats my echo steps.
> >
> > Am I doing something wrong, or is this by design?
> >
> > My environment is:
> >
> > Jenkins 2.19.1 running on Oracle JDK 8u112 64-bit on Windows 10
> > 64-bit. Started with java -jar jenkins.war
> >
> > Thanks,
> >
> > Sean
>
> --
> 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/CAPAActdyw9-12pW%3D5%2BopeXTDOzcrtATny38thwecQaO6VA
> BRzg%40mail.gmail.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/CANWgJS423GB0JTXove9NK%3D%2BzWAgpB5RHZ6S1%2BRouZ%3D18%3D0NxDQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline & GH pull requests

2016-10-26 Thread Graham Hay
The answer was to tick this box:
[image: Inline images 1]
under Project Sources -> Repository Sources -> GitHub Org -> Advanced in
the folder configuration. I then got PR builds, with a branch named as
"PR-${prNumber}".

I think the fork PR version was ticked by default, but that's not our
workflow.

On 29 September 2016 at 15:44, Graham Hay  wrote:

> Is there any way to get the id of a pull request, in the brave new
> pipeline world? It was exposed as $ghprbPullId when using the GHPRB
>  plugin.
>
> I'm using a GH Org Folder & Multibranch, with a Jenkinsfile.
>
> Also, what do I have to do to get something to appear in the pull requests
> folder (see attached)? There are open PRs.
>
> Thanks,
>
> Graham
>
> --
> 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/fnphR6M-420/unsubscribe.
> To unsubscribe from this group and all its topics, 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/f8e8c340-3171-458b-af5b-bdf59dc7157e%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/CAABECY3VngLZ%2BRu1-_cM8ykYLs4_Mq95kdyc5Czw-kR7_UpOKg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Best practices for develop/release branch model with pipeline

2016-10-26 Thread Sathyakumar Seshachalam
New to Jenkins pipeline.

My process is that developers work off of develop branch (Feature branches 
and merges of-course).
At any point in time, a release branch is branched off of develop  and then 
deployed to a stage environment, Once Accepted/approved, the same release 
branch is deployed into prod. (All immutable deployments).

So am looking at atleast two stages that are only conditionally and 
manually entered  - stages being deploy to stg, deploy to prod and 
condition being the branch prefix. (Each stage will have build steps like 
deploy binaries, launch, run functional tests etc.,) and an automatic stage 
that is triggered only once per day (nightly) with build steps like deploy 
binaries, lunch, run and tear down).

Is this kind of a workflow feasible with pipelines. If yes, Are there any 
recommendations/suggestions/pointers. 

Thanks,
Sathya

-- 
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/027e392f-29de-4f06-8463-ea1d86b3e1c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Problem with runnig Jenkins Slave using ssh key

2016-10-26 Thread Александр Калюжный
Hello.

I have the same problem(also checked keys/jce), did you find solution?

On Friday, May 6, 2016 at 1:40:10 PM UTC+3, Stefan Gehrig wrote:
>
> Hi
>
> I can't manage to run a slave jenkins job on SUSE SLES 12. I got the error:
>
> [05/06/16 11:51:12] [SSH] Opening SSH connection to pnsapp01-x:22.
> Key exchange was not finished, connection is closed.
> ERROR: Unexpected error in launching a slave. This is probably a bug in 
> Jenkins.java.lang.IllegalStateException 
> :
>  Connection is not established!
>   at 
> com.trilead.ssh2.Connection.getRemainingAuthMethods(Connection.java:1030) 
> 
>   at 
> com.cloudbees.jenkins.plugins.sshcredentials.impl.TrileadSSHPublicKeyAuthenticator.getRemainingAuthMethods(TrileadSSHPublicKeyAuthenticator.java:88)
>  
> 
>   at 
> com.cloudbees.jenkins.plugins.sshcredentials.impl.TrileadSSHPublicKeyAuthenticator.canAuthenticate(TrileadSSHPublicKeyAuthenticator.java:80)
>  
> 
>   at 
> com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.newInstance(SSHAuthenticator.java:207)
>  
> 
>   at 
> com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.newInstance(SSHAuthenticator.java:169)
>  
> 
>   at 
> hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:1212) 
> 
>   at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:711) 
> 
>   at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:706) 
> 
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
> 
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>  
> 
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>  
> 
>   at java.lang.Thread.run(Thread.java:745) 
> 
> [05/06/16 11:51:12] Launch failed - cleaning up connection
> [05/06/16 11:51:12] [SSH] Connection closed.
>
>
>
> First of all, here what I already did or have:
>
>
>
>- I got serveral other Slave Jobs to SLES 11, which are working fine. Same 
> ssh key.
>- I checked the ssh key and it fits (compared to the other running slaves).
>- I managed to open a ssh connection manually with "ssh user@server" via 
> ssh key to SLES 12. So it rather can't be something in ssh.config or 
> sshd.config, I asume. Also the firewall must be open. Let's say SSH is 
> generally working fine via ssh key.
>- I "patched" JAVA with "Java Cryptography Extension (JCE) Unlimited 
> Strength" on both, master and slave. Java version is 1.8.0_92. I made a test 
> with TestJCE and got JCE Supported=true on both, master and slave.
>Still no success.
>- I updated all Jenkins Plugins. My Jenkins version is 1.642.3.
>
> I'm really running out of what I can try next.
>
> Does anyone have an idea?
>
> Cheers
> Stefan
>
>

-- 
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/d7da8907-58d7-47e2-9d33-519c38018c38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Config.xml of the job gets lost/deleted randomnly on jenkins restart or saving the configuration after changing it

2016-10-26 Thread touseef yousuf
Even in some cases jenkins doesnot allow me to change the name of already
existing job?


On Thu, Oct 6, 2016 at 11:04 AM, touseef yousuf 
wrote:

> Im currently facing an issue where the config.xml of my created jobs gets
> deleted randomly on Jenkins restart and the job is no longer available on
> the view,even the job folder is present on file system *but without
> config.xml *.I have no idea what leads to this randomn disappearance of
> the config.xml file
>
> --
> 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/Z4ZLIm1fK1k/unsubscribe.
> To unsubscribe from this group and all its topics, 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/6205536d-53ad-4000-89c5-376c83f7e0c2%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/CANsHL-XrxF8eBn5fb874%3DfjzaKzgrr27jUMMzrLdpRLUJivRVA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Reload configuration from disk

2016-10-26 Thread Daniel Beck

> On 25.10.2016, at 20:23, ELIASSAL  wrote:
> 
>  I am not able to reach the reload page

There is no such page. Jenkins tells you to "Please wait" because it's already 
reloading.

-- 
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/6871B9EA-7180-487F-BCA0-00DCB1265FE0%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Is there a way to make jenkins serve up script generated pages?

2016-10-26 Thread Michael Lasevich
I clearly did not read the original post carefully enough

I would examine your XSLT, as it should normally perform pretty fast, if 
written right, but if you really want to do this ahead of time, but still 
be able to redo it whenever XSLT changes, your easiest way to go is to 
write a separate job that takes the output XML from your main job and 
applies XSLT and produce HTML output - then you can re-run it whenever XSLT 
changes (you can even have it automated)

Still seems like easier approach is fix the XSLT to be faster. I would also 
make sure compression is enabled on whatever web-server you are serving 
Jenkins from.

HTH,

-M


On Tuesday, October 25, 2016 at 8:10:26 PM UTC-7, Michael Lasevich wrote:
>
> I think pretty much every browser will do XML+XSL conversion without any 
> plugin, although if you want a "shared" XSL file, you may have to add a 
> stylesheet tag to point to it inside your XML
>
> So all you do is archive your XML with stylesheet tag and a shared 
> location for your XSL file and you are done.
>
> -M
>
> On Wednesday, October 19, 2016 at 5:43:29 PM UTC-7, Jonathan Hodgson wrote:
>>
>>
>>
>> On Thursday, October 20, 2016 at 12:13:01 AM UTC+1, Teichner Peter wrote:
>>>
>>> On Linux you have a tool called xsltproc which basically does the 
>>> transformation. Assuming your Jenkins is Windows you could get something 
>>> similar I'm sure. 
>>>
>>> To display the HTML there is a plugin for Jnkins that will let you link 
>>> in static pages to the job
>>>
>> Thanks, but I think you may have missed the point, perhaos I wasn't cleat 
>> enough.
>>
>> I need this to be dynamic, if I convert the xml amd archive it as an html 
>> file, then it is stuck like that, regardless of improvements I make in the 
>> xslt... which needs a lot of work.
>>
>

-- 
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/1aef7b6f-6acc-41c3-a86b-00a62f99b5df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Constructor or equivalent for "Global Variables" in libraries

2016-10-26 Thread Michael Lasevich
So, what is the proper way to initialize the fields in the "Global 
Variables" found in the /vars dir in library code?

I know it is supposed to be a singleton instantiated on first call, and I 
know I can SET new fields by just setting them, but what if I want them to 
have default value when object is created? Something like:

// vars/myListAdder.groovy

def myList = []


def call(item){
  this.myList << item
}

I would expect this to work, but it doesn't as it cannot find myList defined

I worked around it for now by using a try/catch to initialize myList on 
first call, but that seems wrong. There has got to be a proper way to do 
this, but I am not sure what it is - nothing I tried seems to work

Thanks,

-M

-- 
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/14133e6e-b137-43df-92d4-d315b3d19068%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.