Re: New build with higher priority

2023-05-26 Thread Eric Pyle
I have a colleague who does something like this by editing the
configuratio= n of a job, using the REST API. I have seen that when I
manually update the=  priority of a job in the queue and seen it take
effect immediately. Once t= he job starts running you can again edit to set
the priority back to its us= ual value. As long as there is only one
instance of the job in the queue (t= he one you want to prioritize) it
seems like this could work.



A similar idea would be to have a copy of the job with higher priority
(cou= ld be created on the fly) which would be triggered after cancelling
the reg= ular job.



Of course, if you are comfortable with Groovy, you could implement the
"ext= ernal" solution you mention in a job; maybe even as an optional build
step = in the job itself. I've done a similar thing to cancel jobs which
have been=  in the queue more than a specified time limit.



Regards,

Eric

On Fri, May 26, 2023 at 5:45 AM Fabian Cenedese  wrote:

> Hello
>
> I have a job where a new build should be able to cancel an
> already running build of the same job. The cancelling already
> works. What I have a problem with now is, when the build
> queue is so full (with other jobs) that the new build is not
> even looked at before the queue has been worked off. If I
> could give the new build a higher priority or lower the priority
> of the running build then the cancelling would jump in.
>
> I'm already using the priority sorter plugin but that only
> allows to configure a priority, not to change it, and it's also
> per job, not per build.
>
> Is there a way to achieve this in Jenkins? If not we'd have
> to resort to an external solution that would read the queued
> and running jobs and then issue a cancel on the running
> build if a new build is in the queue.
>
> Thanks
>
> bye  Fabi
>
> --
> 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/535c7b9078e6fcc7dbc9a5838eb83c6a%40indel.ch
> .
>


-- 
*Eric Pyle*

Siemens Digital Industries Software
Simulation and Test Solutions, Product Development
Lebanon, New Hampshire
eric.p...@siemens.com
http://www.sw.siemens.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/CAPrXuH3NNngJehCRgNKVECu9ZQ%3DYA0JtA7DhOU%2BNVUzSO2hvXg%40mail.gmail.com.


Re: How can i execute shell scripts from Jenkins ?

2021-03-05 Thread Eric Pyle
Typically such problems are because the shell script is tested under a 
different user account than the one used by Jenkins. This may result in 
commands not being found due to different $PATH settings or permission 
errors because of different user permissions. It's hard to be more 
specific without knowing more about the errors you are seeing.


Eric

On 3/5/2021 12:03 PM, Gil Jensen wrote:
can you tell me why Jenkins would get a different result from the  
shell scripts  alone?


On Wednesday, March 18, 2020 at 12:25:34 PM UTC-4 Siddhesh Malpani wrote:

Mohan,

Yes of course you can do that. Simply ad the shell script file
name in the 'Execute Shell' step as explained by Derek. Remember
that you've give the path of your file relative to your workspace
directory. Suppose your worskapce dir is 'build-dev' and the shell
script 'patch.sh' is located in a dir 'scripts' under the
workspace. Then you'll have to give it's path as:

./scripts/patch.sh

And you're good to go.

Cheers,
Siddhesh

--
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/c6d9f1a7-ac7a-4e88-9267-ee8ec1386223n%40googlegroups.com 
.


--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ddb470f6-4eac-0cbe-2909-117690147526%40cd-adapco.com.


Re: Doxygen integration with Jenkins

2020-11-05 Thread Eric Pyle

Hi Arjuman,

In your screenshot of the Doxygen Installations configuration, it shows 
that the configured path to Doxygen does not exist on your Jenkins 
master. It appears that you have two Jenkins installations (two 
masters), and one of them has Doxygen.exe installed at C:\Program 
Files\doxygen\bin, but the other does not.


Regards,
Eric

On 11/5/2020 12:46 AM, Arjuman Banu wrote:

Hi,

I am integrating Doxygen tool with Jenkins.

Given .exe path in Jenkins global tool configurations.

While configuring a project, build->generating documentation using 
doxygen,

Doxygen Installations:
Doxyfile Path: (given configuration file path)

When I run, it is generating the documentation.

When I do the same in other Jenkins server, getting error as
Started by user _Akumalla Arjuman Banu 
_ Running as SYSTEM Building 
in workspace D:\Projects\workspace\Aesculap_GN740_Demo1 Starting 
Doxygen documentation generation FATAL: The path to Doxygen executable 
doesn't exist : "C:\Program Files\doxygen\bin\doxygen.exe" Build step 
'Generate documentation using Doxygen' marked build as failure 
Finished: FAILURE.


But the same process is working on one system.

I will share the images, please guide me.Capture5 (1).pngCapture8 
(1).pngCapture6 (1).pngCapture7 (1).png


Regards,
Arjuman
--
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/ee9060df-eef9-45ae-a395-68790157e7d2n%40googlegroups.com 
.


--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/abdd6a6b-3e4c-dfcb-7dba-86175a3353ff%40cd-adapco.com.


Re: How to get command versions supported by Pipeline

2020-10-13 Thread Eric Pyle
This message is telling you that your "bat" step does not know where to 
find the "dotnet" command. If you give the full path it should succeed.


On 10/13/2020 9:33 AM, Ven H wrote:

In my Jenkinsfile, I am using the following command

bat "dotnet restore"

I have .NET Core SDK installed in the Jenkins Slave, but still the job 
throws an error saying "'dotnet' is not recognized as an internal or 
external command,

operable program or batch file."

So, how to know which version of .NET Core SDK or for that matter any 
command (say MSBuild) is supported by the "bat" step of Jenkinsfile.


Please help.

Regards,
Venkatesh
--
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/CAPp28eqvJyaz_C2G%2Bs2v1V7txGb_tAJoprA6qmUAMRh4Vf%3DQsA%40mail.gmail.com 
.


--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/a4c84b6c-57fb-0547-d30d-12c6246c5242%40cd-adapco.com.


Re: Robot Framework test run from Jenkins. - No module named robot

2020-07-24 Thread Eric Pyle
I wonder if this is because AppData is a hidden folder, and/or not 
accessible to the user running Jenkins. Can you try a directory listing 
of that Scripts directory in a Jenkins job batch command?


Eric

On 7/22/2020 11:50 AM, Robert Szabo wrote:

Hi,

Jenkins cant run my Robot Framework test cases.

I run this job in Execute Windows batch command

cd C:\work\robot\Es1P\
set 
PYTHONPATH=C:\Users\robert.szabo\AppData\Roaming\Python\Python37\Scripts

echo %PYTHONPATH%
python.exe -m robot C:\work\robot\Es1P
echo Completed


Jenkins run of it always fails, console output is this:

-
Console Output
Started by useradmin  
Running as SYSTEM
Building in workspace C:\Program Files (x86)\Jenkins\workspace\r1
[r1] $ cmd /c call C:\windows\TEMP\jenkins1877465942945470142.bat

C:\Program Files (x86)\Jenkins\workspace\r1>cd C:\work\robot\Es1P\

C:\work\robot\Es1P>set 
PYTHONPATH=C:\Users\robert.szabo\AppData\Roaming\Python\Python37\Scripts

C:\work\robot\Es1P>echo 
C:\Users\robert.szabo\AppData\Roaming\Python\Python37\Scripts
C:\Users\robert.szabo\AppData\Roaming\Python\Python37\Scripts

C:\work\robot\Es1P>python.exe -m robot C:\work\robot\Es1P
C:\Program Files\Python37\python.exe: No module named robot

C:\work\robot\Es1P>echo Completed
Completed

C:\work\robot\Es1P>exit 1
Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE
-
checking robot location in Powershell
(get-command robot.exe).Path
PS C:\work\robot\Es1P> (get-command robot.exe).Path 
C:\Users\robert.szabo\AppData\Roaming\Python\Python37\Scripts\robot.exe

So i think PYTHONPATH should work, but seems not.
--
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/63d9fc16-cdd1-4db1-bb3e-cbb5908ddb83o%40googlegroups.com 
.


--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/986c8bfa-07c4-7660-9d7f-db553d713d90%40cd-adapco.com.


Re: Parametrized build for E2E testing in different environments

2020-06-04 Thread Eric Pyle
Go to the Build section of the job config, and add a build step of type 
"Use builders from another project". Your job will now use all the Build 
steps configured in the other job you specify there.


The configuration you added would use the "Build Environment" settings 
from the job you specified, which may also be useful, but I think you 
were looking for build steps.


Regarding Multiple SCM plugin, that is indeed deprecated, and I don't 
recommend using it directly.


-Eric

On 6/4/2020 12:30 PM, Alberto Scotto wrote:

I see thanks!

I never really had the chance to look into pipelines, but now the time 
might have come.

Even Multiple SCM is stating <https://plugins.jenkins.io/multiple-scms/>:

Deprecated: Users should migrate to
https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Plugin

Anyway, back to the template plugin,
after installing the Multiple SCMs plugin now I can see the checkbox 
"Use build environment from another project", but I still can't seem 
to get it to work.

In the jobs console output I have:

Started by user admin
Running as SYSTEM
Building in workspace C:\Program Files (x86)\Jenkins\workspace\asd
[TemplateProject] Starting pre-checkout from: E2E Template
[TemplateProject] Successfully performed pre-checkout from: 'E2E
Template'
Cloning the remote Git repository
[..]
[TemplateProject] Getting environment from: E2E Template
[TemplateProject] Successfully setup environment from: 'E2E Template'
Finished: SUCCESS


Any idea what could be wrong?


Il giorno giovedì 4 giugno 2020 17:53:39 UTC+2, Eric Pyle ha scritto:

Using Pipeline you would take a different approach, like having a
common script in source control that all the jobs could use to
accomplish the common task.

I'm surprised that the Template plugin is not working for you,
however. We're not at the very latest LTS but at 2.204.5, and it
works fine for us. We use it in hundreds of jobs. A quick look at
your stack trace suggests you are missing the Multiple SCM plugin
as a dependency.

Regards,
Eric

On 6/4/2020 11:42 AM, Alberto Scotto wrote:

Thanks Eric, I appreciate it.
Unfortunately the template plugin seems not be up-to-date.
I've just opened a new issue on JIRA, but I'm not really hopeful..
https://issues.jenkins-ci.org/browse/JENKINS-62568
<https://issues.jenkins-ci.org/browse/JENKINS-62568>

I noticed there seems to be a couple more template plugins, I
might give them a try.

Assuming you are using a Freestyle project (not Pipeline)


What if we were to use Pipeline? Would it make things easier?


Thank you

Alberto


Il giorno venerdì 29 maggio 2020 00:17:42 UTC+2, Eric Pyle ha
scritto:

Assuming you are using a Freestyle project (not Pipeline) you
could use the Template Project Plugin
https://plugins.jenkins.io/template-project/
<https://plugins.jenkins.io/template-project/>. You create a
template job which contains all the common functionality, and
then in the separate job for each environment you add the
template job as a build step (Use builders from another project).

-Eric

On 5/28/2020 7:39 AM, Alberto Scotto wrote:

Hi,

Long story short: is it possible to have a job which builds
another job, in particular a parametrized one?

We have a Cucumber+Selenium project which runs E2E tests
against our different test environments.
Something pretty standard.

For this kind of job, the parametrized build seems to be the
best idea.
Otherwise we would have to create one job for each test
environment. duplicating the job configuration.
Then it would be a nightmare to keep all the job
configurations in sync, in case we need to change something.

But there's a problem with the build history.
I want to see a separate build history for each environment.
It doesn't make sense to have an interleaved history. It
would be messy.

So an easy solution could be to have a job which calls the
parametrized job passing the actual value for the environment.
This way the build histories would be kept separate, and at
the same time we would also get to avoid duplication.

Is that possible? Or do you have any other idea/solution?

Thank you very much.

Alberto
-- 
You received this message because you are subscribed to the

Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails
from it, send an email to jenkins...@googlegroups.com.
To view this discussion on the web visit

https://groups.google.com/d/msgid/jenkinsci-users/5f64c8d1-db57-4002-9aa7-5e574638b76c%40googlegroups.com
 

Re: Parametrized build for E2E testing in different environments

2020-06-04 Thread Eric Pyle
Using Pipeline you would take a different approach, like having a common 
script in source control that all the jobs could use to accomplish the 
common task.


I'm surprised that the Template plugin is not working for you, however. 
We're not at the very latest LTS but at 2.204.5, and it works fine for 
us. We use it in hundreds of jobs. A quick look at your stack trace 
suggests you are missing the Multiple SCM plugin as a dependency.


Regards,
Eric

On 6/4/2020 11:42 AM, Alberto Scotto wrote:

Thanks Eric, I appreciate it.
Unfortunately the template plugin seems not be up-to-date.
I've just opened a new issue on JIRA, but I'm not really hopeful..
https://issues.jenkins-ci.org/browse/JENKINS-62568

I noticed there seems to be a couple more template plugins, I might 
give them a try.


Assuming you are using a Freestyle project (not Pipeline)


What if we were to use Pipeline? Would it make things easier?


Thank you

Alberto


Il giorno venerdì 29 maggio 2020 00:17:42 UTC+2, Eric Pyle ha scritto:

Assuming you are using a Freestyle project (not Pipeline) you
could use the Template Project Plugin
https://plugins.jenkins.io/template-project/
<https://plugins.jenkins.io/template-project/>. You create a
template job which contains all the common functionality, and then
in the separate job for each environment you add the template job
as a build step (Use builders from another project).

-Eric

On 5/28/2020 7:39 AM, Alberto Scotto wrote:

Hi,

Long story short: is it possible to have a job which builds
another job, in particular a parametrized one?

We have a Cucumber+Selenium project which runs E2E tests against
our different test environments.
Something pretty standard.

For this kind of job, the parametrized build seems to be the best
idea.
Otherwise we would have to create one job for each test
environment. duplicating the job configuration.
Then it would be a nightmare to keep all the job configurations
in sync, in case we need to change something.

But there's a problem with the build history.
I want to see a separate build history for each environment.
It doesn't make sense to have an interleaved history. It would be
messy.

So an easy solution could be to have a job which calls the
parametrized job passing the actual value for the environment.
This way the build histories would be kept separate, and at the
same time we would also get to avoid duplication.

Is that possible? Or do you have any other idea/solution?

Thank you very much.

Alberto
-- 
You received this message because you are subscribed to the

Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to jenkins...@googlegroups.com .
To view this discussion on the web visit

https://groups.google.com/d/msgid/jenkinsci-users/5f64c8d1-db57-4002-9aa7-5e574638b76c%40googlegroups.com

<https://groups.google.com/d/msgid/jenkinsci-users/5f64c8d1-db57-4002-9aa7-5e574638b76c%40googlegroups.com?utm_medium=email_source=footer>.


--
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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b75ccb32-b748-4af1-8331-ace29a2c6074%40googlegroups.com 
<https://groups.google.com/d/msgid/jenkinsci-users/b75ccb32-b748-4af1-8331-ace29a2c6074%40googlegroups.com?utm_medium=email_source=footer>.


--
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/cbde6bf8-45e1-8fa0-1b73-dabf63bd6fc0%40cd-adapco.com.


Re: Parametrized build for E2E testing in different environments

2020-05-28 Thread Eric Pyle
Assuming you are using a Freestyle project (not Pipeline) you could use 
the Template Project Plugin 
https://plugins.jenkins.io/template-project/. You create a template job 
which contains all the common functionality, and then in the separate 
job for each environment you add the template job as a build step (Use 
builders from another project).


-Eric

On 5/28/2020 7:39 AM, Alberto Scotto wrote:

Hi,

Long story short: is it possible to have a job which builds another 
job, in particular a parametrized one?


We have a Cucumber+Selenium project which runs E2E tests against our 
different test environments.

Something pretty standard.

For this kind of job, the parametrized build seems to be the best idea.
Otherwise we would have to create one job for each test environment. 
duplicating the job configuration.
Then it would be a nightmare to keep all the job configurations in 
sync, in case we need to change something.


But there's a problem with the build history.
I want to see a separate build history for each environment.
It doesn't make sense to have an interleaved history. It would be messy.

So an easy solution could be to have a job which calls the 
parametrized job passing the actual value for the environment.
This way the build histories would be kept separate, and at the same 
time we would also get to avoid duplication.


Is that possible? Or do you have any other idea/solution?

Thank you very much.

Alberto
--
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/5f64c8d1-db57-4002-9aa7-5e574638b76c%40googlegroups.com 
.


--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0bca5d47-881f-4b61-1078-fc854c63a1dd%40cd-adapco.com.


Re: Process the powershell result on the jenkins server

2020-02-26 Thread Eric Pyle
Extending on Slide's idea, you can write the result to a file in the 
workspace and save that file as a build artifact. Then in the downstream 
job that runs on the master you can retrieve the artifact from the 
upstream job (copy artifacts from other job) and read the value in your 
bash script. Or similarly, if you write the file in the upstream job as 
a properties file "VARNAME=$value" then you can use that file to set a 
parameter to pass to the downstream job (parameters from properties file).


Eric

On 2/26/2020 8:26 AM, Michael Renner wrote:

Moin,


I am new to this group but I have been using jenkins for many years.
Now I have a request that I don't know what to do next. My jenkins 
server (Linux) connect to an agent on a Windows server and calls a 
power shell script. The script reports a result back, for example, 
"day", "night", "red" or "blue". This should now be processed on the 
Jenkins server (a bash script). But how? An other build step would run 
at the Windows server again, a post build action won't start external 
processes like bash scripts. I could create a second job that runs on 
the Jenkins master itself. But how do I get the results of the Power 
Shell script?


Grateful for hints
--
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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/7604abe1-01fd-4f07-94c9-0352318ebba7%40googlegroups.com 
<https://groups.google.com/d/msgid/jenkinsci-users/7604abe1-01fd-4f07-94c9-0352318ebba7%40googlegroups.com?utm_medium=email_source=footer>.


--
Eric Pyle
Siemens Digital Industries Software
Simulation and Test Solutions, Product Development
eric.p...@siemens.com
https://www.sw.siemens.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/ec42bd65-5454-ba03-8825-148a67323ca1%40siemens.com.


Re: jenkins-cli.jar stopped working for not apparent reason

2019-06-27 Thread Eric Pyle
I don't think that will help. The CLI changed in a recent release, and 
even without the reverse proxy you have to change how you use it. Did 
you have a look at the "Common Problems with the CLI client" in the 
docs? Remember that the username you are passing with -user is a Jenkins 
user id, not a Linux username. Have you added the public key for that 
user to Jenkins as shown in the doc?


One other thing: You are using "java -cp /path/to/cli.jar", while all 
the examples in the help show "java -jar /path/to/cli.jar". Might be 
worth trying. In any case, I ended up switching to the direct ssh method 
I showed in my shell script, and it's been working for me.


Good luck!
Eric

On 6/27/2019 10:17 AM, Eric Fetzer wrote:
Hi Eric, thanks for the reply.  I'm not using a reverse proxy on my 
Jenkins server.  It's pretty much out of the box.  I've been using the 
jenkins-cli.jar file for about 6 years.  I just recently upgraded it 
and it stopped working. Before, I was able to connect with just the -s 
and the -i.  Not sure why with the new version -i needs the ssh 
option.  Maybe I should just call straight to the jenkins-cli.jar on 
the server to bypass jenkins remote security functionality?


Thanks,
Eric


On Tue, Jun 25, 2019 at 11:10 AM Eric Pyle <mailto:eric.p...@cd-adapco.com>> wrote:


Have a look at the docs: https://jenkins.io/doc/book/managing/cli/
.  As stated there, if you are using a reverse proxy on your
Jenkins server, it won't work using the jenkins-cli.jar as you
are. You can try using the property
-Dorg.jenkinsci.main.modules.sshd.SSHD.hostName on Jenkins
startup, but that didn't work for our installation. I ended up
switching to accessing CLI via the ssh command, as documented
under "Using the CLI over SSH". Here's a little shell script I set
up to access CLI from a bash prompt:

$ *cat bin/jenkins*
if [ $# == 0 ]; then DEF_ARG=help;fi
port=`curl -Lv ${JENKINS_URL}/login 2>&1 | grep -i
'x-ssh-endpoint'|grep -oE '([0-9]+)'`
ssh -p $port starci $@ $DEF_ARG


On 6/25/2019 11:52 AM, Eric Fetzer wrote:

Thanks Eric!  I updated my java version to 1.8 and it appears my
command line has changed since the version of java-cli.jar I was
using.  the -i doesn't work together with the -s without a -ssh
and the -ssh needs a -user, lol.  But once I put all those
together, I get:

java -cp /my/path/to/jar/jenkins-cli.jar -s
http://myJenkinsServer:8080 <http://myjenkinsserver:8080/>  -ssh
-user jenkins -i /my/key/.ssh/id_rsa help

Jun 25, 2019 9:48:19 AM
org.apache.sshd.common.util.security.AbstractSecurityProviderRegistrar
getOrCreateProvider
INFO: getOrCreateProvider(EdDSA) created instance of
net.i2p.crypto.eddsa.EdDSASecurityProvider
Jun 25, 2019 9:48:19 AM hudson.cli.SSHCLI sshConnection
WARNING: No header 'X-SSH-Endpoint' returned by Jenkins


I don't think this is a success as it didn't return help to me.


On Tuesday, June 25, 2019 at 9:33:37 AM UTC-6, Eric Pyle wrote:

It's telling you the Java version is not correct. What
version of Java are you using? Needs to be 1.8 for current
Jenkins.

On 6/25/2019 11:27 AM, Eric Fetzer wrote:

OK, that was a flop.  I downloaded the correct
jenkins-cli.jar from : http://myJenkinsServer:8080
<http://myjenkinsserver:8080/>/jnlpJars/jenkins-cli.jar
<https://jenkins.example.com/jnlpJars/jenkins-cli.jar>, and
now I get:

Exception in thread "main"
java.lang.UnsupportedClassVersionError: hudson/cli/CLI :
Unsupported major.minor version 52.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at
java.lang.ClassLoader.defineClass(ClassLoader.java:648)
        at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at
java.net.URLClassLoader.defineClass(URLClassLoader.java:272)
        at
java.net.URLClassLoader.access$000(URLClassLoader.java:68)
        at
java.net.URLClassLoader$1.run(URLClassLoader.java:207)
        at
java.net.URLClassLoader$1.run(URLClassLoader.java:201)
        at
java.security.AccessController.doPrivileged(Native Method)
        at
java.net.URLClassLoader.findClass(URLClassLoader.java:200)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:325)
        at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:296)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:270)
        at
sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:406)

On Tuesday, June 25, 2019 at 8:12:58 AM UTC-6, Eric Fetzer
wrote:

This makes no sens

Re: jenkins-cli.jar stopped working for not apparent reason

2019-06-25 Thread Eric Pyle
ls from it, send 
an email to jenkinsci-users+unsubscr...@googlegroups.com 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6eef6538-ad55-49e9-8ae0-ed2c727509de%40googlegroups.com 
<https://groups.google.com/d/msgid/jenkinsci-users/6eef6538-ad55-49e9-8ae0-ed2c727509de%40googlegroups.com?utm_medium=email_source=footer>.

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


--
Eric Pyle
Siemens PLM Software
Lebanon, NH
+1 603-277-3060
eric.p...@siemens.com
http://www.siemens.com/plm

--
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/10c7f203-ddb4-7807-ac7e-3d518d58431b%40siemens.com.
For more options, visit https://groups.google.com/d/optout.


Unable to open a JIRA issue

2019-04-16 Thread Eric Pyle
I've tried several times today to create an issue on 
issues.jenkins-ci.org. Each time I try, I fill out the "Create Issue" 
dialog, and click "Create", I get an error. It says:


We can't create this issue for you right now, it could be due to 
unsupported content you've entered into one or more of the issue fields. 
If this situation persists, contact your administrator as they'll be 
able to access more specific information in the log file.


I don't see anything unusual in the text I'm attempting to submit. Is 
there any trick here? I'm trying to
submit a New Feature request to the JIRA Plugin, and I have a pull 
request to go with it.


Thanks,
Eric

-- Eric Pyle Siemens PLM Software Lebanon, NH eric.p...@siemens.com 
http://www.siemens.com/plm


--
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/7015ba17-9795-da8f-cca0-101d3ba6fd3c%40siemens.com.
For more options, visit https://groups.google.com/d/optout.


Re: configuration of jobs maintained in SVN

2019-02-28 Thread Eric Pyle
You could look at using the reload-job command in Jenkins CLI 
(documentation: https://jenkins.io/doc/book/managing/cli/). Or 
similarly, use the update-job command to read the updated job 
configuration from standard input and use it to update the job, which 
automatically includes refreshing the job.


On 2/28/2019 1:18 PM, Matthias Apitz wrote:

Hello,

I've setup a Jenkins server on SuSE Linux SLES12 and have the jobs in:

$ ls -l /var/lib/jenkins/jobs/
total 12
drwxr-xr-x 3 jenkins jenkins 4096 Feb 23 00:00 Jerome_Head
drwxr-xr-x 3 jenkins jenkins 4096 Feb 28 01:00 Statistic-Installation-Job-V7.0
drwxr-xr-x 3 jenkins jenkins 4096 Feb 28 01:00 TPv70-nightly-build
...
$ ls -l /var/lib/jenkins/jobs/TPv70-nightly-build/config.xml
-rw-r--r-- 1 jenkins jenkins 3162 Feb 27 11:40 
/var/lib/jenkins/jobs/TPv70-nightly-build/config.xml

I'd like to edit the jobs with the normal editor in Linux, esp. the
sometimes complex build step script written in shell or perl, and have all
this, at least the config.xml file of each of my 50 jobs, under SVN version 
control.

After modifying any jobs config.xml, the Jenkins server process must be
restarted to get the changes in effect (and visible in the browser
interface). Is there any other way to inform Jenkings about the change
and let it reload the modified job config?

Thanks

matthias




--
Eric Pyle
Siemens PLM Software
Lebanon, NH
+1 603-277-3060
eric.p...@siemens.com
http://www.siemens.com/plm

--
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/017e14d8-a208-d6e3-7de0-8213d98b1c27%40siemens.com.
For more options, visit https://groups.google.com/d/optout.


Re: Using a Variable in Execute Shell that has a . in it

2019-02-08 Thread Eric Pyle
From Stack Overflow 
<https://stackoverflow.com/questions/26506539/reference-to-a-bash-variable-whose-name-contains-dot>:


depdir=`env|grep "deploy\\.dir="|cut -d = -f 2`
echo "deploy.dir == $depdir"

-Eric

On 2/8/2019 3:29 PM, Eric Fetzer wrote:

Sorry, no again:

/tmp/jenkins6366597011192684630.sh: line 2: ${params.'deploy.dir'}: bad 
substitution

On Friday, February 8, 2019 at 10:25:17 AM UTC-7, Eric Fetzer wrote:

So it works fine to use a variable like build.dir as a parameter
in a build trigger.  I'm finding, however, that when I add it to a
"execute shell" command, it gets cut off at the ".".  For example:

Execute Shell:

Command:  ls -l $deploy.dir

This tries to ls -l on .dir because $deploy is unset.  I would
very much appreciate any help.  I tried escaping the "." but that
didn't work.  I tried putting quotes around the variable, no
help.  Any help would be greatly appreciated!

Thanks,
Eric

--
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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/613d8387-e420-4898-b8da-47fbed8aeceb%40googlegroups.com 
<https://groups.google.com/d/msgid/jenkinsci-users/613d8387-e420-4898-b8da-47fbed8aeceb%40googlegroups.com?utm_medium=email_source=footer>.

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


--
Eric Pyle
Siemens PLM Software
Lebanon, NH
+1 603-277-3060
eric.p...@siemens.com
http://www.siemens.com/plm

--
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/b1d96288-8630-908c-b254-9beb6b18e0a7%40siemens.com.
For more options, visit https://groups.google.com/d/optout.


Re: Why does it running on another node?

2018-12-18 Thread Eric Pyle

Help for the Usage setting (in node configuration page) says:

*Only build jobs with label expressions matching this node*
   In this mode, Jenkins will only build a project on this node when
   that project is restricted to certain nodes using a label
   expression, and that expression matches this node's name and/or labels.

So I read that as saying that a job which is not restricted to certain 
nodes or labels will not run on a node which requires "Only build jobs 
with label expressions matching this node".


-Eric

On 12/18/2018 12:12 AM, cyrilli1...@gmail.com wrote:
If this node used "Only build jobs with label restrictions matching 
this node." option, so a job of don't restrict the job does it still 
picking up this node?


在 2018年12月17日星期一 UTC+8下午10:37:58,Eric Pyle写道:

If you don't restrict the job, it will pick one of the available
nodes arbitrarily, and it doesn't matter whether it is the master
or a slave/agent. Once the job has run on a particular node, it
will remain there unless that node is unavailable at the time the
job starts. This is done to take advantage of any dependencies or
resources that may already be there from a previous run.

Generally, it is considered better to have jobs run on agents, and
let the master node just run Jenkins.

Regards,
Eric

On 12/17/2018 3:54 AM, cyril...@gmail.com  wrote:

I have a job it's doesn't use "Restrict where this project can be
run" option, why doesn't it running on a master node, but running
on a slave node?


Jenkins ver. 1.625.1

Could you help me to know?
-- 
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/1078c386-120f-40cc-b758-adbf1aa925aa%40googlegroups.com

<https://groups.google.com/d/msgid/jenkinsci-users/1078c386-120f-40cc-b758-adbf1aa925aa%40googlegroups.com?utm_medium=email_source=footer>.
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.


-- 
Eric Pyle

Siemens PLM Software
Lebanon, NH
+1 603-277-3060
eric...@siemens.com  
http://www.siemens.com/plm

--
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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/8872918d-a1cf-44c3-bea7-32900c9b0173%40googlegroups.com 
<https://groups.google.com/d/msgid/jenkinsci-users/8872918d-a1cf-44c3-bea7-32900c9b0173%40googlegroups.com?utm_medium=email_source=footer>.

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


--
Eric Pyle
Siemens PLM Software
Lebanon, NH
+1 603-277-3060
eric.p...@siemens.com
http://www.siemens.com/plm

--
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/c82f382c-0726-0c54-5636-9cf87b1153cc%40siemens.com.
For more options, visit https://groups.google.com/d/optout.


Re: Why does it running on another node?

2018-12-17 Thread Eric Pyle
If you don't restrict the job, it will pick one of the available nodes 
arbitrarily, and it doesn't matter whether it is the master or a 
slave/agent. Once the job has run on a particular node, it will remain 
there unless that node is unavailable at the time the job starts. This 
is done to take advantage of any dependencies or resources that may 
already be there from a previous run.


Generally, it is considered better to have jobs run on agents, and let 
the master node just run Jenkins.


Regards,
Eric

On 12/17/2018 3:54 AM, cyrilli1...@gmail.com wrote:
I have a job it's doesn't use "Restrict where this project can be run" 
option, why doesn't it running on a master node, but running on a 
slave node?



Jenkins ver. 1.625.1

Could you help me to know?
--
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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/1078c386-120f-40cc-b758-adbf1aa925aa%40googlegroups.com 
<https://groups.google.com/d/msgid/jenkinsci-users/1078c386-120f-40cc-b758-adbf1aa925aa%40googlegroups.com?utm_medium=email_source=footer>.

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


--
Eric Pyle
Siemens PLM Software
Lebanon, NH
+1 603-277-3060
eric.p...@siemens.com
http://www.siemens.com/plm

--
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/1b6a88fd-ba0d-23f0-a2d9-1c7833cb478d%40siemens.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can you specify a host / agent for a single build step in a freestyle project?

2018-12-07 Thread Eric Pyle

This isn't exactly what you asked, but you could:
1. Break up each step into its own freestyle job, and give each of those 
sub-jobs a parameter of type Node or Label.
2. In the main job, call each sub-job using the build step "Trigger/call 
builds on other projects", passing the desired agent as a parameter. You 
could also pass "Current build parameters" or environment variables to 
give the build step what it needs.


-Eric

On 12/6/2018 6:52 PM, Adam von Nieda wrote:


  Thanks very much for the reply Jan, I’m aware of being able to do 
this with a pipeline. I’ll ask again in case anyone else wants to 
respond. By the way, a freestyle project is not necessarily isolated 
to a single node, you can specify labels or individual servers using 
the NodeLabel plugin. That’s different from what I’m asking below though.



I’m able to split parts of a build across multiple nodes using a 
pipeline, is there any way to do that with a freestyle project? Maybe 
a plugin I haven’t run across?


For example, my project might look like the following..

Step1: Execute on node 2
Step 2: Execute on node 3
Step 3: Execute on node 1
Step 4: Execute on node 2

  I have steps that have to run on specific nodes.

  Thanks for any insight you might have!

--
Adam vonNieda
a...@vonnieda.org <mailto:a...@vonnieda.org>




On Dec 6, 2018, at 5:22 PM, Jan Monterrubio <mailto:janmonterru...@gmail.com>> wrote:


I think a declarative pipeline might be able to accomplish this with 
the “agent” closure.


Iirc the free style project will run all in a single node.

On Thu, Dec 6, 2018 at 16:06 Adam von Nieda <mailto:a...@vonnieda.org>> wrote:



   Hi folks,

   I’m able to split parts of a build across multiple nodes using
a pipeline, is there any way to do that with a freestyle project?
Maybe a plugin I haven’t run across?

For example, my project might look like the following..

Step1: Execute on node 2
Step 2: Execute on node 3
Step 3: Execute on node 1
Step 4: Execute on node 2

   I have steps that have to run on specific nodes.

   Thanks for any insight you might have!

   -Adam vonNieda

-- 
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
<mailto:jenkinsci-users%2bunsubscr...@googlegroups.com>.
To view this discussion on the web visit

https://groups.google.com/d/msgid/jenkinsci-users/A6478625-CB00-49F8-9602-DE745B034D3E%40vonnieda.org.
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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CADgiF9JvTROpgoCrK6SMr%2BBFfuLCZb%3D_4WfxoyaT3NwMTbzi6Q%40mail.gmail.com 
<https://groups.google.com/d/msgid/jenkinsci-users/CADgiF9JvTROpgoCrK6SMr%2BBFfuLCZb%3D_4WfxoyaT3NwMTbzi6Q%40mail.gmail.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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9FA3D883-1C4C-410E-B971-357859C44F09%40vonnieda.org 
<https://groups.google.com/d/msgid/jenkinsci-users/9FA3D883-1C4C-410E-B971-357859C44F09%40vonnieda.org?utm_medium=email_source=footer>.

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


--
Eric Pyle
Siemens PLM Software
Lebanon, NH
+1 603-277-3060
eric.p...@siemens.com
http://www.siemens.com/plm

--
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/50722a2d-f907-afa0-05cd-43d34ccc9e3e%40siemens.com.
For more options, visit https://groups.google.com/d/optout.


Re: Cancel or abort a freestyle job and mark job as success

2018-05-24 Thread Eric Pyle
 Assuming you are using the freestyle job type, you could make the further
build steps part of a Conditional steps build step. The status for the
condition could be determined by running your batch script, or by creating
(or not) a file in the workspace during your batch script as a flag on
whether to continue.

-Eric


On Thu, May 24, 2018 at 12:23 AM, <mark.mer...@subccontrol.com> wrote:

> I've been scouring the internet for a way to do this and have had no
> success
>
> We use git as our source control
> Our jenkins server is running in windows
> I am using windows batch scripts for several build tasks
> I have written a batch script that checks the commit message for a
> specific bit of text that indicates that we don't want jenkins to build
> this job.  At the end of this script I would like jenkins to halt all
> further build steps and mark the job as a success.
>
> I could easily do this with:
> exit 1
> but that would result in the job being marked as failed, and then a bunch
> of people receive emails when they are not supposed to.
>
> Any advice?
> Thanks.
>
> SubC Imaging is a division of SubC Control Ltd. For additional information
> about SubC Imaging, please visit our website at http://www.subcimaging.com
> <http://www.subccontrol.com/>
>
>
> This email and any attached files are intended for the sole use of the
> primary and copied addressee(s) and may contain privileged and/or
> confidential information.
>
>
> Any distribution, use or copying by any means of this information is
> strictly prohibited. If you received this email in error, please delete it
> immediately and notify the sender.
>
> --
> 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/316344fa-c1b1-4701-bc00-963d21798c2b%40googlegroups.
> com
> <https://groups.google.com/d/msgid/jenkinsci-users/316344fa-c1b1-4701-bc00-963d21798c2b%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*Eric Pyle*
Siemens PLM Software
Lebanon, New Hampshire
+1 603-277-3060 (T)
eric.p...@siemens.com
http://www.siemens.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/CAPrXuH19YqL%2ByNGqTza%3Du_0G6G25XmsLHf%3Dz39DyeWtBoTFAyw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Sonar Plugin groovy script

2018-05-18 Thread Eric Pyle
.run(GroovyShell.java:497)
>>
>> at hudson.cli.GroovyCommand.run(GroovyCommand.java:89)
>>
>> at hudson.cli.CLICommand.main(CLICommand.java:278)
>>
>> at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:95)
>> Could someone help me in solving this script. It might be an constructor
>> issue.
>>
>> 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/c8008fc7-d29e-45d1-bb1a-8761db887404%40googlegroups.
> com
> <https://groups.google.com/d/msgid/jenkinsci-users/c8008fc7-d29e-45d1-bb1a-8761db887404%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*Eric Pyle*
Siemens PLM Software
Lebanon, New Hampshire
+1 603-277-3060 (T)
eric.p...@siemens.com
http://www.siemens.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/CAPrXuH28NkjwAxsaUdsxqYPQEZ5TGriiGQLmvgO5gwuKE7r2gQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Sonar Plugin groovy script

2018-05-18 Thread Eric Pyle
Hi Naveen,

It looks like you need to import hudson.model.* to get class Hudson.

Eric

On Fri, May 18, 2018 at 2:25 PM, naveen <vnaveen1...@gmail.com> wrote:

> When I tried to configure Sonar plugin using following script throwing me
> an error.
>
>
>
>
>
>
>
>
> import jenkins.model.*
>
> import hudson.plugins.sonar.*
>
> import hudson.plugins.sonar.model.*
>
>
>
> def inst = Jenkins.getInstance()
>
> SonarGlobalConfiguration global = Hudson.instance.getDescriptorByType(
> SonarGlobalConfiguration.class)
>
> def sinst = new SonarInstallation(
>
>   "sonar",
>
>   "http://localhost:9000/;,
>
>   "yy",
>
>   "3.2",
>
>   "",
>
>   new TriggersConfig(),
>
>   ""
>
> )
>
> desc.setInstallations(sinst)
>
>
>
> desc.save()
>  ERROR
>
>
>
>
>
>
>
>
> ERROR: Unexpected exception occurred while performing groovy command.
>
> groovy.lang.MissingPropertyException: No such property: Hudson for class:
> RemoteClass
>
> at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(Scr
> iptBytecodeAdapter.java:53)
>
> at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.get
> Property(PogoGetPropertySite.java:52)
>
> at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGr
> oovyObjectGetProperty(AbstractCallSite.java:307)
>
> at RemoteClass.run(RemoteClass:6)
>
> at groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(Groo
> vyShell.java:263)
>
> at groovy.lang.GroovyShell.run(GroovyShell.java:518)
>
> at groovy.lang.GroovyShell.run(GroovyShell.java:497)
>
> at hudson.cli.GroovyCommand.run(GroovyCommand.java:89)
>
> at hudson.cli.CLICommand.main(CLICommand.java:278)
>
> at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:95)
> Could someone help me in solving this script. It might be an constructor
> issue.
>
> 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/7b3e5b1f-f8e4-4fcb-8cfd-c6822d573175%40googlegroups.
> com
> <https://groups.google.com/d/msgid/jenkinsci-users/7b3e5b1f-f8e4-4fcb-8cfd-c6822d573175%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*Eric Pyle*
Siemens PLM Software
Lebanon, New Hampshire
+1 603-277-3060 (T)
eric.p...@siemens.com
http://www.siemens.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/CAPrXuH3R1ZxOEW1TTVvFvFhtVGnxB5v9q_60mDL0j6DSnH7uoQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: not able to change string value in Jenkinsfile

2018-04-26 Thread Eric Pyle
You are correctly getting the result value from file ${WORKSPACE}/result 
in the code below, and setting it into a Groovy variable called 
test_result. You must understand that this Groovy variable is completely 
separate from the environment variable test_result which you (uselessly) 
set in the awk statement.



script {
def file = "${WORKSPACE}/result"
def content = readFile(file)
echo "Value of content is $content"
if ( content == 0 ) test_result = 1 else test_result = 0
}



So when you want to read that variable, you need to read a Groovy 
variable, not an environment variable:


    environment name: 'test_result', value: '1'

Here you are reading an environment variable "environment name: 
'test_result'..."

Instead you need to read your Groovy variable:

    expression {test_result == '1'}

or even more directly:

    expression { return readFile('result') == '1' }

--
Eric Pyle
Siemens PLM Software
Lebanon, NH

eric.p...@siemens.com
http://www.siemens.com/plm

--
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/113cea5c-54f8-a468-ce56-9498728cced1%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Multiline regex not working in Build Failure Analyzer Plugin

2017-07-19 Thread Eric Pyle

I think the pattern has to match full lines, so you would need:

".*Segmentation fault.*busy: Error! failed to run driver tests"

in the multiline regex definition box in BFA. No need to put .* in 
parentheses.


Eric

On 7/19/2017 2:48 AM, Shiran wrote:


Hi,

I've been struggling for days in making the multiline build log 
indication work.


I couldn’t find any example in the net, I had it working in a Groovy 
console but not in Jenkins.


_This is the Jenkins log.  I want to detect the yellow part – if I 
find these two yellow strings are the indication of the failure:_


*22:14:36*2017-07-10 22:14:36   Test INFO: busy: -E- T:78008253

*22:14:36*2017-07-10 22:14:36 Test INFO: busy: Segmentation fault

*22:14:36*2017-07-10 22:14:36 Test INFO: busy: Error! failed to 
run driver tests


*22:14:36*2017-07-10 22:14:36 Test INFO:  busy: /opt/cve_driver_test

*22:14:36*2017-07-10 22:14:36 Test INFO:  busy: Return1Code

I tried to find this pattern in a groovy console and succeeded:

def pattern = "(?s)Segmentation fault(.*)busy: Error! failed to run 
driver tests"

def example1 = text.find(pattern) //=> found!


*How do I make it work Jenkins?*

*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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f71e269b-1929-46ee-80a5-874f8e69b72c%40googlegroups.com 
<https://groups.google.com/d/msgid/jenkinsci-users/f71e269b-1929-46ee-80a5-874f8e69b72c%40googlegroups.com?utm_medium=email_source=footer>.

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


--
Eric Pyle
Siemens PLM Software
Lebanon, NH
+1 603-277-3060
eric.p...@siemens.com
http://www.siemens.com/plm

--
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/58c7630b-b6f1-2b3a-7553-2b6c3965733f%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Injecting environment variables - sourcing shell script

2017-06-12 Thread Eric Pyle
The help for "Script Content" confirms that it can't be used to set 
environment variables for the build. But you should be able to specify 
the path to your shell script in "Properties File Path" instead.


On 6/12/2017 1:49 PM, Victoria Kozel wrote:

Hello,

I need to use a certain variable in my Shell Build Step that is 
figured in a shell script stored on the node. When I "source" this 
script in the same step in which I need the variable, it works. 
However sourcing it in the EnvInject step under Build Environment 
phase does not seem to transfer the variable to the Build Step. Here's 
how the job is configured:

X . Inject environment variables to the build process

Script Content: source /home/jenkins/setInventoryVar.sh



I can see at this point the output of the script in the console, yet 
the Build Step does not inherit a variable set in Inject Env.


Suggestions are greatly appreciated.
--
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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/dd621d0a-5a08-40a3-913c-54535f12cc5f%40googlegroups.com 
<https://groups.google.com/d/msgid/jenkinsci-users/dd621d0a-5a08-40a3-913c-54535f12cc5f%40googlegroups.com?utm_medium=email_source=footer>.

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


--
Eric Pyle
Siemens PLM Software
Lebanon, NH
+1 603-277-3060
eric.p...@siemens.com
http://www.siemens.com/plm

--
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/5dcea668-c8fc-eeff-567c-80cfd1d1d2bb%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: can i use variable to specify the agent label in my declarative pipeline ?

2017-05-03 Thread Eric Pyle
It should work if you use double quotes around your agent variable. 
Variable resolution will not happen within single quotes.


On 5/3/2017 10:58 AM, ishan jain wrote:
I am using declarative syntax to build my pipeline. I am loading 
several variables from a properties file in the beginning and i now i 
would like to control the 'on which slave node something executes' via 
variables. But i cannot figure out how to use variable as a agent 
label. The following is one of the snippets and like all its other 
variations, it fails:


|
properties =null

defloadProperties(){
node {
checkout scm
properties =readProperties file:'pipeline.properties'
echo "Immediate one ${properties.repo}"
}
}

pipeline {
   agent none
stages {
stage ('prepare'){
agent any
steps {
script {
loadProperties()
}
}
}
stage('Build'){
agent {label '${properties.agent}'}
steps {
sh 'hostname'
echo properties.repo
}
}
}
}
|


--
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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4cfff4fb-aa1f-4ad2-9017-d6dcf89a7b36%40googlegroups.com 
<https://groups.google.com/d/msgid/jenkinsci-users/4cfff4fb-aa1f-4ad2-9017-d6dcf89a7b36%40googlegroups.com?utm_medium=email_source=footer>.

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


--
Eric Pyle
Siemens PLM Software
Lebanon, NH
+1 603-277-3060
eric.p...@siemens.com
http://www.siemens.com/plm

--
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/3dff065d-8b81-78fc-8ce5-ccd98b533ee9%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: LTS upgrade has no slave.jar?

2017-04-07 Thread Eric Pyle
The LTS Changelog <https://jenkins.io/changelog-stable/> (heading 
*Notable changes since 2.32.3)* shows that slave.jar is no longer 
included because it it identical to remoting.jar.


On 4/7/2017 6:30 AM, Consult Hyperion * wrote:
Normally when I upgrade Jenkins the first thing I have to do is go to 
\war\WEB-INF and get the slave.jar file for my Windows nodes. I ran 
the upgrade as usual this morning (to 2.46.1) and there was no 
slave.jar file there, or anywhere else I could see. I'm thinking they 
wouldn't have changed that so I can only assume it's missing. I tried 
downloading the WAR file but it's not there either. Surely they didn't 
just forget to put it in there?

--
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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4171c98c-ad7a-447b-aa90-cc306a25593d%40googlegroups.com 
<https://groups.google.com/d/msgid/jenkinsci-users/4171c98c-ad7a-447b-aa90-cc306a25593d%40googlegroups.com?utm_medium=email_source=footer>.

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


--
*Eric Pyle
*
Siemens PLM Software
Lebanon, NH
+1 603-277-3060 (T)
+1 603-359-8670 (M)
eric.p...@siemens.com <mailto:eric.p...@cd-adapco.com>
http://www.siemens.com/plm <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/13704fcd-0245-d287-e3ff-eb5f80c6a7fd%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: parallel remote trigger builds in a pipeline

2017-03-15 Thread Eric Pyle
I played around with this a bit, with a couple of freestyle jobs that do 
nothing except sleep a while and then finish. I confirmed that, whether 
I set the 'wait' property or not, both freestyle jobs are more or less 
immediately triggered if they are in a parallel block. If wait is set to 
true (or not set), 'build' returns a RunWrapper 
<http://javadoc.jenkins.io/plugin/workflow-support/org/jenkinsci/plugins/workflow/support/steps/build/RunWrapper.html> 
object which can be queried for build result or other things. If you do 
getRawBuild() on the RunWrapper object you get a standard Run object, 
with access to all Run methods such as getLog().


If wait is set to false, then indeed the pipeline job rushes on to 
completion, and the waitUntil step is no help, at least the way it is 
used in my example. I looked back on my use of waitUntil in the past, 
and it was for a different purpose. So you do need to set wait: true, 
but it does not prevent the jobs from running in parallel. My test 
pipeline script is below.


Eric

node {
wrap ([$class: 'TimestamperBuildWrapper']) {
stage('Testing') {
parallel (
['windows_remote': {
winx = build \
job: 'dev_compile_win',
parameters: [string(name: 'branch_name', value: 
branch_name)],

wait: true
echo 'Windows done'},
 'linux_remote': {
linx = build \
job: 'dev_compile_lin',
parameters: [string(name: 'branch_name', value: 
branch_name)],

wait: true
echo 'Linux done'}
]
)
echo 'Both are done!'
println "Linux result: ${linx.result}\n"
println "Windows log:"
winLog = winx.getRawBuild().getLog(20)
logOut = ''
for (i = 0; i < winLog.size(); i++) {
logOut += winLog[i] + '\n'
}
println logOut
}
}
}


On 3/15/2017 12:26 PM, Chris Overend wrote:
I assume you have "Block until the remote triggered projects finish 
their builds." = False?


  * Does it not just set your 'done' variable to true as soon as the
remote build starts, since it does not block or wait.
  * Also with this set to False it does not get the log of the remote
build.

--
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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3870cfdc-f429-4e82-9b1f-fbf24fc0dc24%40googlegroups.com 
<https://groups.google.com/d/msgid/jenkinsci-users/3870cfdc-f429-4e82-9b1f-fbf24fc0dc24%40googlegroups.com?utm_medium=email_source=footer>.

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


--
*Eric Pyle
*
Siemens PLM Software
Lebanon, NH
+1 603-277-3060 (T)
+1 603-359-8670 (M)
eric.p...@siemens.com <mailto:eric.p...@cd-adapco.com>
http://www.siemens.com/plm <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/b524c57a-e387-e64e-1059-7b2100fe2824%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: parallel remote trigger builds in a pipeline

2017-03-15 Thread Eric Pyle
I did something similar by defining a 'done' variable for each parallel 
project, initialized to false, and set to true when the project is 
complete. Then in the downstream steps I used the waitUntil step to 
block the downstream step from starting until the 'done' variable was 
true for the corresponding upstream project. Not the most elegant but it 
did give the desired flow of execution.


|
#!groovy
import hudson.model.*
done_win = false
done_lin = false

stage('Testing') {
parallel (
['windows_remote': {
build job: 'remote_trigger_30', parameters: [string(name: 
'branch_name', value: branch_name)]

done_win = true},
 'linux_remote': {
build job: 'remote_trigger_60', parameters: [string(name: 
'branch_name', value: branch_name)]

done_lin = true}
]
)
waitUntil {
done_win && done_lin
}
}
|



On 3/15/2017 10:28 AM, Chris Overend wrote:

|
#!groovy
import hudson.model.*

stage('Testing') {
parallel (
['windows_remote': {build job: 'remote_trigger_30', 
parameters: [string(name: 'branch_name', value: branch_name)]},
 'linux_remote': {build job: 'remote_trigger_60', parameters: 
[string(name: 'branch_name', value: branch_name)]}

]
)
}
|

If I set "Block until the remote triggered projects finish their 
builds." True


'remote_trigger_30' - blocks until complete

'remote_trigger_60' - blocks until complete

 This is not parallel.

 If I set "Block until the remote triggered projects finish their 
builds." False


'remote_trigger_30' - starts remote build then returns complete

'remote_trigger_60' - starts remote build then returns complete
 Both remote builds are still running but Pipeline returns complete


Is there a way to not block but wait?
--
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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d029d9be-d81e-4b4c-9210-396a4add6d46%40googlegroups.com 
<https://groups.google.com/d/msgid/jenkinsci-users/d029d9be-d81e-4b4c-9210-396a4add6d46%40googlegroups.com?utm_medium=email_source=footer>.

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


--
*Eric Pyle
*
Siemens PLM Software
Lebanon, NH
+1 603-277-3060 (T)
+1 603-359-8670 (M)
eric.p...@siemens.com <mailto:eric.p...@cd-adapco.com>
http://www.siemens.com/plm <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/c9e5aaeb-412f-5ba2-93ca-e667585e526b%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to access Jenkins server using Python Or JenkinsApi for Windows

2017-02-28 Thread Eric Pyle
It's the same on Windows or Linux. If you look in your Python scripts 
directory, usually something like C:\Python35\scripts (for Python 3.5), 
you should find package install tools like pip or easy_install. You may 
need to give the full path to the executable, so 
"C:\Python35\scripts\pip install jenkinsapi". If pip is not installed 
you can use easy_install.


Eric

On 2/28/2017 12:38 AM, Sujith Cherukuri wrote:

Hello Eric,

Thanks for your reply, could you please let me know, how to install 
Jenkinsapi for Windows. I am not able to find any documentation for that.


Thanks and Regards,
Sujith

On Monday, February 27, 2017 at 8:06:49 PM UTC+5:30, Eric Pyle wrote:

I use Jenkinsapi for both Linux and Windows with no problem. You
just need to install Jenkinsapi module in the Python installation
used by each build machine, e.g. by "pip install jenkinsapi". Then
in a shell or batch script build step, you call a Python script
and "import jenkinsapi" in the script.

Eric

On 2/27/2017 5:08 AM, Sujith Cherukuri wrote:

Hello,

My build server is based on Windows. I want to trigger a Build
using pythons scripts. As of now from
http://pythonhosted.org/jenkinsapi/
<http://pythonhosted.org/jenkinsapi/>, it seems that, api only
for Linux System.

Thanks and Regards,
Sujith
-- 
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/8d4a4967-b410-4c2f-bda9-f4f97a775e1a%40googlegroups.com

<https://groups.google.com/d/msgid/jenkinsci-users/8d4a4967-b410-4c2f-bda9-f4f97a775e1a%40googlegroups.com?utm_medium=email_source=footer>.
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.


-- 
*Eric Pyle

*
Siemens PLM Software
Lebanon, NH
+1 603-277-3060 (T)
+1 603-359-8670 (M)
...@siemens.com 
http://www.siemens.com/plm <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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/316fd8b4-d8ac-4152-8524-fc6a7b5e8c73%40googlegroups.com 
<https://groups.google.com/d/msgid/jenkinsci-users/316fd8b4-d8ac-4152-8524-fc6a7b5e8c73%40googlegroups.com?utm_medium=email_source=footer>.

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


--
*Eric Pyle
*
Siemens PLM Software
Lebanon, NH
+1 603-277-3060 (T)
+1 603-359-8670 (M)
eric.p...@siemens.com <mailto:eric.p...@cd-adapco.com>
http://www.siemens.com/plm <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/0e09d622-65ef-4172-022a-0fd8ff7ff23f%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to access Jenkins server using Python Or JenkinsApi for Windows

2017-02-27 Thread Eric Pyle
I use Jenkinsapi for both Linux and Windows with no problem. You just 
need to install Jenkinsapi module in the Python installation used by 
each build machine, e.g. by "pip install jenkinsapi". Then in a shell or 
batch script build step, you call a Python script and "import 
jenkinsapi" in the script.


Eric

On 2/27/2017 5:08 AM, Sujith Cherukuri wrote:

Hello,

My build server is based on Windows. I want to trigger a Build using 
pythons scripts. As of now from http://pythonhosted.org/jenkinsapi/ 
<http://pythonhosted.org/jenkinsapi/>, it seems that, api only for 
Linux System.


Thanks and Regards,
Sujith
--
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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/8d4a4967-b410-4c2f-bda9-f4f97a775e1a%40googlegroups.com 
<https://groups.google.com/d/msgid/jenkinsci-users/8d4a4967-b410-4c2f-bda9-f4f97a775e1a%40googlegroups.com?utm_medium=email_source=footer>.

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


--
*Eric Pyle
*
Siemens PLM Software
Lebanon, NH
+1 603-277-3060 (T)
+1 603-359-8670 (M)
eric.p...@siemens.com <mailto:eric.p...@cd-adapco.com>
http://www.siemens.com/plm <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/297ddcec-a182-be40-47a1-63078e60ffb7%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Question about code change

2016-12-21 Thread Eric Pyle
If possible, you could save the sha1 as an artifact with each build, and 
have your pipeline code retrieve it. Then query git in your new build to 
see whether the current sha1 is different (like 'git rev-parse HEAD').


Eric

On 12/21/2016 9:10 AM, 'Peter Teichner' via Jenkins Users wrote:
Thanks for this - it's not 100% what I'm looking for, but it's close 
to it. Unfortunately I'm not in a position to install "unreleased" 
plugins and I think it might not work in the pipeline as code... :/


On Wednesday, 21 December 2016 13:56:00 UTC, Daniel Beck wrote:


> On 21.12.2016, at 13:11, Peter Teichner <ptei...@googlemail.com
> wrote:
>
> Any ideas?

https://github.com/daniel-beck/changelog-environment-plugin
<https://github.com/daniel-beck/changelog-environment-plugin>
could probably do this. Haven't gotten around to actually
releasing this unfortunately.

Related discussion in
https://issues.jenkins-ci.org/browse/JENKINS-12032
<https://issues.jenkins-ci.org/browse/JENKINS-12032>

--
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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/00bdf867-6ee2-457a-bc14-bd7daa31b4de%40googlegroups.com 
<https://groups.google.com/d/msgid/jenkinsci-users/00bdf867-6ee2-457a-bc14-bd7daa31b4de%40googlegroups.com?utm_medium=email_source=footer>.

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 <mailto:eric.p...@cd-adapco.com>
http://www.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/33e9f711-146a-e5cf-515e-191a863d0319%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: pythonpath in declarative pipepline built on docker slave

2016-12-20 Thread Eric Pyle
This is really a Python issue, not Jenkins. But here's how I do it. 
PYTHONPATH environment variable is automatically appended to sys.path in 
Python. So in your Python script, just directly add the relevant 
directory (can be a relative or absolute path):


import sys
sys.path.append('path/to/my_dir')

Eric

On 12/20/2016 3:19 PM, Omeka wrote:

hello,

i am looking for a way to set PYTHONPATH to the workspace / current 
directory of a build that executes unit test with pytest  and avoid 
the following

error messages:

[Tests] __ ERROR collecting tests/unit/drive/test_config.py 
___
[Tests] tests/unit/drive/test_config.py:3: in 
[Tests] from drive import config
[Tests] E   ImportError: No module named 'drive'
[Tests] __ ERROR collecting tests/unit/drive/test_helpers.py 
__
[Tests] tests/unit/drive/test_helpers.py:3: in 
[Tests] from drive import helpers
[Tests] E   ImportError: No module named 'drive'
[Tests] __ ERROR collecting tests/unit/drive/test_service.py 
__
[Tests] tests/unit/drive/test_service.py:5: in 
[Tests] from drive import service
[Tests] E   ImportError: No module named 'drive'
[Tests] ___ ERROR collecting tests/unit/drive/test_transformers.py 

[Tests] tests/unit/drive/test_transformers.py:5: in 
[Tests] from drive import transformers
[Tests] E   ImportError: No module named 'drive'
[Tests] === 4 error in 0.25 seconds 


the build is excuted in docker container based on the official python 
3.5 image


I have to admit i have been playing with python for about just two 
weeks so i might be missing something.


Best regards
Omeka
--
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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c3a15a5c-011c-4986-b1d3-cfc669a87804%40googlegroups.com 
<https://groups.google.com/d/msgid/jenkinsci-users/c3a15a5c-011c-4986-b1d3-cfc669a87804%40googlegroups.com?utm_medium=email_source=footer>.

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 <mailto:eric.p...@cd-adapco.com>
http://www.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/463fd169-52d3-0f52-19c5-954028d03702%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Keeping cloned job updated with changes made in the original job

2016-11-30 Thread Eric Pyle
Template job plugin is available for free Jenkins. We use it a lot to 
manage our many jobs.


Eric

On 11/30/2016 2:26 PM, Bharathi Ramalingam wrote:
We have hundreds of jobs running in our Jenkins instance. Some of the 
jobs are shared to different teams by cloning from an existing job.
Now when the original jobs are updated, we need to manually track the 
cloned jobs and update them too.
It is really cumbersome to keep track of clones and difficult to apply 
the updates.


Is there any plugin or feature in Jenkins that help with this use 
case? I'm already aware of Template job plugin from cloudbees but we 
cannot afford enterprise Jenkins.



Thanks!
BR
--
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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/dbf90727-3263-4c0c-8efd-322fb40b20d0%40googlegroups.com 
<https://groups.google.com/d/msgid/jenkinsci-users/dbf90727-3263-4c0c-8efd-322fb40b20d0%40googlegroups.com?utm_medium=email_source=footer>.

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 <mailto:eric.p...@cd-adapco.com>
http://www.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/4dfedb4f-cd23-20ef-ab32-fe2053eaf5fc%40cd-adapco.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 
<mailto: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 
<https://groups.google.com/d/msgid/jenkinsci-users/0a315223-843f-4aea-9d27-2b1c7044f4e1%40googlegroups.com?utm_medium=email_source=footer>.

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 <mailto:eric.p...@cd-adapco.com>
http://www.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: Private message regarding: NodeJS Plugin:in windows : npm commends not working

2016-10-20 Thread Eric Pyle
The 'dirname' command is used to separate the final directory name from 
a path. The plugin code must be calling it. Can you execute the same 
commands interactively on the same node without error? Also, it appears 
that you may be using the "sh" pipeline command on a Windows node, which 
is not recommended, and many people have reported problems doing so. Use 
the "bat" command instead.


Also, I am sending this reply to the Jenkins list, so that others more 
knowledgeable about the NodeJS plugin may be able to help.


Regards,
Eric


On 10/20/2016 6:14 AM, bolleypally vijay kumar wrote:

Hi Eric Pyle,

Thanks for your help

as you mentioned i installed Cygwin and added to path and able to 
access all Linux commands in windows cmd now when i run the job  error 
was different '/usr/bin/dirname: missing operand' Please find ATTACHED 
Screens for more details
My question is why dirname command getting invoked when im trying to 
print npm version


On Tuesday, 18 October 2016 21:24:43 UTC+5:30, Eric Pyle wrote:

It looks like it's failing because it expects to find bash shell
commands dirname and uname. Do you have Cygwin or some similar
package installed to make those commands available?


On 10/18/2016 11:29 AM, bolleypally vijay kumar wrote:

1. I'm trying to print node and npm version in a jenkins jobs in
windows machine

I dont wan to use Auto install so i gave physical location of
node folder due to some config problems in widows with NodeJS
plug in i also done(1. In the windows nodejs install folder add a
new folder "bin" and copy in the node.exe) but still showing
command not found for npm
Please find ATTACHED Screens for more details
i also found few open issues like
https://issues.jenkins-ci.org/browse/JENKINS-21953
<https://issues.jenkins-ci.org/browse/JENKINS-21953>
https://issues.jenkins-ci.org/browse/JENKINS-26828
<https://issues.jenkins-ci.org/browse/JENKINS-26828>
Could you please suggest are the above issues blocking me or is
there any other look around exist for my problem
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-use...@googlegroups.com . To view this
discussion on the web visit

https://groups.google.com/d/msgid/jenkinsci-users/1446a133-b4b5-421c-82a4-8a66b2f5cd01%40googlegroups.com

<https://groups.google.com/d/msgid/jenkinsci-users/1446a133-b4b5-421c-82a4-8a66b2f5cd01%40googlegroups.com?utm_medium=email_source=footer>.
For more options, visit https://groups.google.com/d/optout
    <https://groups.google.com/d/optout>. 
-- 
*Eric Pyle *

Release Engineer
Lebanon
+1 603-277-3060 (T)
+1 603-359-8670 (M)
...@cd-adapco.com 
    http://www.cd-adapco.com <http://www.cd-adapco.com>


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


Re: NodeJS Plugin:in windows : npm commends not working

2016-10-18 Thread Eric Pyle
It looks like it's failing because it expects to find bash shell 
commands dirname and uname. Do you have Cygwin or some similar package 
installed to make those commands available?



On 10/18/2016 11:29 AM, bolleypally vijay kumar wrote:
1. I'm trying to print node and npm version in a jenkins jobs in 
windows machine


I dont wan to use Auto install so i gave physical location of node 
folder due to some config problems in widows with NodeJS plug in i 
also done(1. In the windows nodejs install folder add a new folder 
"bin" and copy in the node.exe) but still showing command not found 
for npm

Please find ATTACHED Screens for more details
i also found few open issues like
https://issues.jenkins-ci.org/browse/JENKINS-21953
https://issues.jenkins-ci.org/browse/JENKINS-26828
Could you please suggest are the above issues blocking me or is there 
any other look around exist for my problem

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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/1446a133-b4b5-421c-82a4-8a66b2f5cd01%40googlegroups.com 
<https://groups.google.com/d/msgid/jenkinsci-users/1446a133-b4b5-421c-82a4-8a66b2f5cd01%40googlegroups.com?utm_medium=email_source=footer>.

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 <mailto:eric.p...@cd-adapco.com>
http://www.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/59c4c9a2-f541-5173-a544-15b16f988de0%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: 'Parameters from properties file' not working in 2.7.3

2016-10-03 Thread Eric Pyle
Just noticed, there is a typo in the property name below (Acton vs. 
Action). Could that be the problem?



On 10/3/2016 1:15 PM, Steve K wrote:


Eric, I think you're right. My problem is caused by the new security 
policies.
I have not found the right combination of settings to make things work 
as before.
I tried starting Jenkins with 
-Dhudson.model.ParametersActon.keepUndefinedParameters=true, but that 
did not solve the problem.

Have you needed to make similar adjustments?

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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/abaee195-c7b3-43b8-b46c-50a59f7ec787%40googlegroups.com 
<https://groups.google.com/d/msgid/jenkinsci-users/abaee195-c7b3-43b8-b46c-50a59f7ec787%40googlegroups.com?utm_medium=email_source=footer>.

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 <mailto:eric.p...@cd-adapco.com>
http://www.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/96860e37-f3cf-ff63-c2c2-c4165aed4ae6%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: 'Parameters from properties file' not working in 2.7.3

2016-10-03 Thread Eric Pyle
We just upgraded our Jenkins from 1.642.3 to 2.7.4 and with that issue 
in mind, we did add the keepUndefinedParameters=true. We haven't seen 
any problems. We do have some jobs that trigger a downstream job with 
parameters from a properties file. Is that what you're doing? Or are you 
using "Inject environment variables to the build process", using a 
properties file, in the downstream job? Or something else?


Eric


On 10/3/2016 1:15 PM, Steve K wrote:


Eric, I think you're right. My problem is caused by the new security 
policies.
I have not found the right combination of settings to make things work 
as before.
I tried starting Jenkins with 
-Dhudson.model.ParametersActon.keepUndefinedParameters=true, but that 
did not solve the problem.

Have you needed to make similar adjustments?

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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/abaee195-c7b3-43b8-b46c-50a59f7ec787%40googlegroups.com 
<https://groups.google.com/d/msgid/jenkinsci-users/abaee195-c7b3-43b8-b46c-50a59f7ec787%40googlegroups.com?utm_medium=email_source=footer>.

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 <mailto:eric.p...@cd-adapco.com>
http://www.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/a2ef4667-f60b-5a53-25b8-ab574716cbc3%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: 'Parameters from properties file' not working in 2.7.3

2016-10-03 Thread Eric Pyle
Most likely this is because of changes made to address Jenkins issue 
SECURITY-170 (see Security Advisory 
<https://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2016-05-11>). 
A job is no longer allowed to accept parameters not explicitly defined 
in the downstream job.


Eric


On 10/3/2016 10:44 AM, Steve K wrote:

Hello,

Several of my jobs use 'Parameters from properties file' to pass 
settings to downstream jobs.
The configuration I used in Jenkins 1.625.3 does not appear to work 
with 2.7.3


I wrote two very simple jobs; one to create a parameter file that was 
used with 'Trigger parameterized build on other projects' and one 
downstream job to just dump environment variable settings.

The parameter file was created with no problem.
I had selected 'Don't trigger if any files are missing', so I know the 
parameter file was in the expected location.
None of the variables set in the parameter file were set in the 
downstream job.


Is there some nuance of Jenkins 2.x that I am unaware of that is 
preventing my 'Parameters from properties file' from being passed to 
my downstream job?


In case it's relevant, the Jenkins server is CentOS and the build 
machine is Windows 8.1


Thanks in advance for any help you are able to provide.

Steve K.


--
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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b12eeaba-5b5f-4531-984e-1350bfe28524%40googlegroups.com 
<https://groups.google.com/d/msgid/jenkinsci-users/b12eeaba-5b5f-4531-984e-1350bfe28524%40googlegroups.com?utm_medium=email_source=footer>.

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 <mailto:eric.p...@cd-adapco.com>
http://www.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/83088757-0e55-c3be-7d47-b291487f74b5%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: What is a permanent agent or slave server when discussing Jenkins?

2016-08-19 Thread Eric Pyle
A Jenkins slave (or agent in 2.x) is a service running on "an auxiliary 
server" as you describe it, which can be assigned jobs to execute by the 
Jenkins master. There is no Jenkins-specific term for a server that 
receives artifacts from Jenkins jobs. You would call it whatever you'd 
call it if Jenkins weren't involved. File server? Deployment target?


Eric


On 8/18/2016 6:52 PM, Kiran wrote:
In the context of Jenkins, is a slave server one that receives a 
build?  Or is it an auxiliary server that offloads some of the 
computing demand for resources of a distributed build?


With Jenkins 2.x, the term is "permanent agent."  I want to know 
precisely what to call a server that receives a Jenkins 
build/deployment.  If a file receives code or a file from Jenkins, 
what is the server called?  Is it a managed node?  Is there no term 
for it?

--
You received this message because you are subscribed to the Google 
Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to jenkinsci-users+unsubscr...@googlegroups.com 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6564596c-47a8-4c18-a103-0ee6fed65bf6%40googlegroups.com 
<https://groups.google.com/d/msgid/jenkinsci-users/6564596c-47a8-4c18-a103-0ee6fed65bf6%40googlegroups.com?utm_medium=email_source=footer>.

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 <mailto:eric.p...@cd-adapco.com>
http://www.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/81a1be2e-4367-5020-1b85-c5404f755bd3%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: project-based security is missing .. please help

2016-07-25 Thread Eric Pyle
Security is now managed in a separate "Global Security" page under 
"Manage Jenkins". But I don't know if there's a way to automatically 
re-create individual job security settings if they have disappeared.


Eric


On 7/25/2016 9:59 AM, Prasu S wrote:
After I upgraded Jenkins to 1.651.3 version, project-based security is 
missing for all our Jenkins jobs. How do I restore it ?? Please help.


--
You received this message because you are subscribed to the Google 
Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to jenkinsci-users+unsubscr...@googlegroups.com 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/26488d17-e46e-48f3-8d1a-4421ccbc3039%40googlegroups.com 
<https://groups.google.com/d/msgid/jenkinsci-users/26488d17-e46e-48f3-8d1a-4421ccbc3039%40googlegroups.com?utm_medium=email_source=footer>.

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 <mailto:eric.p...@cd-adapco.com>
http://www.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/aea9728f-ea29-cec5-9e29-5d75de574a66%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins on AIX Installation

2016-07-22 Thread Eric Pyle
ci-users/22c8342ddfa741e980213f600f3a9134%40mbx02cmb01p.esentire.local 
<https://groups.google.com/d/msgid/jenkinsci-users/22c8342ddfa741e980213f600f3a9134%40mbx02cmb01p.esentire.local?utm_medium=email_source=footer>.

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 <mailto:eric.p...@cd-adapco.com>
http://www.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/e8d1bad8-5fc4-0a7c-9e7b-b561d47824e1%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins + Android: Two Problems. Please help.

2016-07-18 Thread Eric Pyle
I don't know anything about running the Android Emulator, but the error 
seems to be "Unable to open display". You mention that you did not use 
any Xvfb or Xvnc configuration. Maybe this is something that needs to be 
set up?


Eric


On 7/18/2016 2:05 PM, Ravi A wrote:
Please neglect my Problem #1 as this problem is related to "Android". 
Let me ask this question to "Android Google Group".

Request you to answer my Problem #2 with a solution.

Thank you,
Ravi


On Monday, July 18, 2016 at 11:53:06 AM UTC+5:30, Ravi A wrote:


I am new to Android related work and Jenkins. Currently I am
facing two problems as explained below and need help about these
two problems. Kindly do the needful.

I am using one "Ubuntu v14.04.4 LTS x64 Desktop Edition" based
physical host (VT enabled from BIOS, Intel(R) Core(TM) i5-3470
CPU) and following software also installed.

Gradle v2.14
Ant v1.9.7
Maven 3.3.9
android-sdk_r24.4.1
java version "1.8.0_92"
Android_Studio_v2.1.2.0   (android-studio-ide-143.2915827)
KVM/Qemu
Jenkins v2.7.1 CI server with following Android related "Jenkins
Plugins"
Android Emulator Plugin v2.15
Android Lint Plugin v2.3
Gradle Plugin v1.24
Xvnc Plugin v1.23
Xvfb Plugin v1.1.3


Problem #1
--
Created on "Android VD" with AVD name as "Nexus_6_API_23" using
"Android Studio" and later I could start Emulator from "Shell
Command Line", but "Segmentation Fault (core dumped)" when I exit
the emulator.

ravi@ravi-dev-box:~$ emulator -list-avds
Nexus_6_API_23
ravi@ravi-dev-box:~$
ravi@ravi-dev-box:~$ emulator -avd Nexus_6_API_23
adb_server_notify: Failed to establish connection to ADB server
console on port 5554, ADB on port 
Your emulator is out of date, please update by launching Android
Studio:
 - Start Android Studio
 - Select menu "Tools > Android > SDK Manager"
 - Click "SDK Tools" tab
 - Check "Android SDK Tools" checkbox
 - Click "OK"

Segmentation fault (core dumped)
ravi@ravi-dev-box:~$


Problem #2
--
I tried to start "Android Emulator" about the same above mentioned
"Nexus_6_API_23" AVD using a "Jenkins Job" which DOES NOT include
any Xvfb and Xvnc related configuration. Build using this "Jenkins
Job" fails as explained below (Console Output from the build).

Started by user admin
[EnvInject] - Loading node environment variables.
Building in workspace
/home/ravi/Downloads/Android/Spring/gs-gradle-android_3
[android] Using Android SDK: /opt/android-sdk-linux/
$ /opt/android-sdk-linux//platform-tools/adb start-server
* daemon not running. starting it now on port 5835 *
* daemon started successfully *
$ /opt/android-sdk-linux//platform-tools/adb start-server
[android] Starting Android emulator
$ /opt/android-sdk-linux//tools/emulator -engine classic -ports
5772,5773 -report-console tcp:5839,max=60 -avd Nexus_6_API_23
-no-snapshot-load -no-snapshot-save
Error: unable to open display
Error: unable to open display
QXcbConnection: Could not connect to display
emulator: WARNING: Classic qemu does not support SMP. The
hw.cpu.ncore option from your config file is ignored.
[android] Emulator did not appear to start; giving up
[android] Stopping Android emulator
$ /opt/android-sdk-linux//platform-tools/adb kill-server
[BFA] Scanning build for known causes...
[BFA] No failure causes found
[BFA] Done. 0s
Finished: NOT_BUILT

Thanks A Lot In Advance,
Ravi

--
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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/e43c465b-0849-4324-93c7-090cd1b6a276%40googlegroups.com 
<https://groups.google.com/d/msgid/jenkinsci-users/e43c465b-0849-4324-93c7-090cd1b6a276%40googlegroups.com?utm_medium=email_source=footer>.

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 <mailto:eric.p...@cd-adapco.com>
http://www.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/8f39e025-9d10-1c0e-f3dc-e6632468da26%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Deploy on failure

2016-07-18 Thread Eric Pyle
First, there is no comprehensive documentation of post-build actions. 
Many such actions are provided by plugins, which are released 
independently of Jenkins, and it is up to the plugin author to document 
them. It sounds like you are using the Deploy plugin 
<https://wiki.jenkins-ci.org/display/JENKINS/Deploy+Plugin> (it's 
helpful to specify which Jenkins version you are using, and the relevant 
plugin versions when asking a question). Based on the configuration GUI, 
as shown here 
<http://www.jdev.it/deploying-your-war-file-from-jenkins-to-tomcat/>, 
I'd guess that "Deploy on failure" means "Deploy the war file even if 
the build failed", which would imply that it is always deployed on 
success or unstable status.


Given that many plugins or features of Jenkins have limited or no 
documentation, I've found the best way to be sure you know what a job 
will do is to create a very simple test job and experiment. So you could 
create a job that takes an existing war file (perhaps by copying from 
another job's artifacts using the Copy Artifact Plugin) and finishes 
with Unstable status. The easiest way I know to generate Unstable status 
is with the TextFinder plugin 
<http://wiki.jenkins-ci.org/display/JENKINS/Text-finder+Plugin>, which 
can set the build status based on key words in the job's console output. 
So have your job echo some text like "set me unstable", add a Post-build 
action "Jenkins Text Finder". Check the box to "Also search the console 
output" and enter the text "set me unstable" in the Regular expression 
text box. Check the "Unstable if found" box. Now add your post-build 
step to deploy the war file. Run the job, verify that it set its status 
to Unstable, and confirm that the war file is deployed.


Eric


On 7/18/2016 10:45 AM, Christopher Hahn wrote:

Hello,

I need a pointer into the docs for the page that describes "Post-Build 
Actions".


I want to confirm that the "Deploy on failure" checkbox will cause 
warfiles to be deploying for unstable builds.


Googling "Jenkins manual" and then searching for both "Post-Build 
Actions" + "Deploy on failure" == zero hits


Thank you,

Christopher

--
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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c2c10f62-1c57-442b-bc00-7893efd870c2%40googlegroups.com 
<https://groups.google.com/d/msgid/jenkinsci-users/c2c10f62-1c57-442b-bc00-7893efd870c2%40googlegroups.com?utm_medium=email_source=footer>.

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 <mailto:eric.p...@cd-adapco.com>
http://www.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/b0243139-69a1-b5f1-7746-de318d3ac75e%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can I add a "publish" button to a build page

2016-07-12 Thread Eric Pyle
You might take a look at the Promoted Builds plugin. It allows you to 
manually "promote" a particular build, and trigger other actions. It's 
designed exactly for this sort of situation.


Eric


On 7/12/2016 8:57 AM, Jonathan Hodgson wrote:

Hi,

If a build is successful (compiled correctly, passed all tests), I may 
then want to send it out to beta testers. Which means copying the 
built binary to a location where they can find it, and sending out 
emails. I don't want to do this for exery successful build though.


A sensible solution is seems to me would be to have a button on the 
build page where I could trigger a groovy script to do this. Is there 
a plugin which would facilitate this?


regards

Jon
--
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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/22e1eeef-42a3-4604-ba1a-5731e1b91efd%40googlegroups.com 
<https://groups.google.com/d/msgid/jenkinsci-users/22e1eeef-42a3-4604-ba1a-5731e1b91efd%40googlegroups.com?utm_medium=email_source=footer>.

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 <mailto:eric.p...@cd-adapco.com>
http://www.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/552f4dcb-ed4e-7610-2853-13415def54b3%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkinsfile environment setup help

2016-07-06 Thread Eric Pyle
To apply environment variables, you have to wrap your code in a withEnv 
block, whose argument is an array of strings of the form 
'VARIABLE=value'. So you could read the env-setup file and go through 
line by line building up an environment array, then use that array 
variable in the withEnv block. Or you could put all your Ansible 
commands in a shell script, and include the "source 
/opt/ansible/hacking/env-setup" as one of the first lines in the script. 
You could use the writeFile step to create such a shell script on the 
fly if desired.


Eric

On 7/6/2016 11:20 AM, Tuomas-Matti Soikkeli wrote:

Good day.

I'm building on Jenkins 2.0 with pipelines and jenkinsfiles from SCM 
to achieve continuous delivery for my project.


However I'm facing issues with groovy workflow to source my 
environment variables for ansible.


I'm running Ansible from source so I need to run:

|
$ source ansible/hacking/env-setup
|

However when I run this in my Jenkinsfile:

|
stage "deploy"
sh 'source /opt/ansible/hacking/env-setup"
sh 'ansible --version'
|


My environent variables from env-setup are gone. How would one include 
envs from setup script to env.PATH?


env-setup setups python dependencies and correct paths. You can check 
out the environment script from: 
https://raw.githubusercontent.com/ansible/ansible/devel/hacking/env-setup


Any hints how to work out this?

Best regards, t-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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/457a6cf4-2f48-4711-bea8-e48227f9ac3d%40googlegroups.com 
<https://groups.google.com/d/msgid/jenkinsci-users/457a6cf4-2f48-4711-bea8-e48227f9ac3d%40googlegroups.com?utm_medium=email_source=footer>.

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 <mailto:eric.p...@cd-adapco.com>
http://www.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/68ddc53a-70b1-78ca-fe4d-c34faa87b68c%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Acessing build dir from browser

2016-06-23 Thread Eric Pyle
You could archive the screenshots as build artifacts. This will still be 
removed according to your build retention settings, and they should also 
be accessible via URL.


Eric


On 6/23/2016 7:10 AM, Maciej Gawinecki wrote:
My tests are taking screenshots. However, screenshots are taking a lot 
of space. So we have decided to store them within build directory, e.g.


/home/dev/jenkins/jobs/run-authng-sqa-phantomjs-tests-on-sqa/builds/26/screenshots

instead of workspace. This way, older builds are removed together with 
screenshots automatically. Now, when a screenshots is taken it says in 
the logs:


Screenshot taken to 
file:///var/lib/jenkins/jobs/run-authng-sqa-phantomjs-tests-on-sqa/builds/26/screenshots/2016-06-23T10:52:10.474+.png
 can be accessed at 
http://jenkins_server/job/run-authng-sqa-phantomjs-tests-on-sqa/26/screenshots/2016-06-23T10:52:10.474+.png

However, screenshots are no longer visible through a Web browser, i.e. 
there's no way to access URL.


Any workaround?

Regards,
Maciej

--
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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/dd64c508-a971-4706-9e8a-015221e29588%40googlegroups.com 
<https://groups.google.com/d/msgid/jenkinsci-users/dd64c508-a971-4706-9e8a-015221e29588%40googlegroups.com?utm_medium=email_source=footer>.

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 <mailto:eric.p...@cd-adapco.com>
http://www.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/8109284f-37ab-91fe-830a-b4499fa0e43d%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Pipeline Job sthrowing Error code 126 when trying to execute a sh command

2016-06-20 Thread Eric Pyle
I've been struggling with this same issue. It only seems to be a problem 
on Linux - Windows slaves work OK. One theory I have is that it could be 
related to the "Shell executable" setting in the main configuration page 
(Manage Jenkins->Configure System). I have the shell executable set as 
"bash". Do you have the same?


Eric


On 6/20/2016 2:21 PM, Mike Chmielewski wrote:

Hi all!

I have been banging my head on this for a while, and now hope the 
greater community can help me out. I am starting out with workflows, 
and almost immediately hit a snag.


I have the following setup:

Jenkins 2.7 on:

- CentOS 6.7 master
- CentOS 7.1 on agents

- Pipeline 2.1

I have the following script:

|
node ('agent_label') {
stage 'echo'
echo 'Hello!'
println env.getEnvironment()
stage 'sh'
sh 'echo hello sh!'
}
|

When I run this job manually, the job errors out on:

|
sh 'echo hello sh!'
|

With the following error:

|
[t1]Runningshell script 
sh:/t1@tmp/durable-ae020333/script.sh:bash:bad 
interpreter:Nosuch file ordirectory

|

Looking in the directory listed the t1@tmp/ directory is empty. This 
error happens with the Groovy Sandbox setting set to true or false.


Running a freestyle job with a shell script works without issue. Has 
anyone seen this and possibly even resolved 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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/fa080423-5ce6-4b10-8749-1126fccd8c4a%40googlegroups.com 
<https://groups.google.com/d/msgid/jenkinsci-users/fa080423-5ce6-4b10-8749-1126fccd8c4a%40googlegroups.com?utm_medium=email_source=footer>.

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 <mailto:eric.p...@cd-adapco.com>
http://www.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/242e8028-558f-2f50-ea75-091b6b7d4696%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: aborting the build not working

2016-04-12 Thread Eric Pyle
The build timeout plugin only looks at the time taken by the "Build Steps".
So if it takes 3 minutes to check out code from your repository, that would
not be included. Or if it takes 10 minutes to archive the artifacts, that's
not counted either because it's post-build. The timestamps plugin can help
you see where the time is spent during the build.

Eric

On Apr 12, 2016 6:10 PM, "Hector Magnanao"  wrote:
>
> I'm trying to use the abort build if it's stuck option in the build
section of my Jenkins job.  I set the 'Time out Strategy' to 'Absolute' and
I set the timeout option to 5 minutes for a job that I know takes more than
5 minutes.  And I set the action to Abort the Build.  And my job goes past
5 minutes and it doesn't abort.  Can you tell me what I could be doing
wrong ?
>
> I'm using Jenkins 1.625.2 on Windows
>
> --
> 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/00860c09-3678-49bb-9eda-79b6e7dfca78%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/CAPrXuH2%3DK7d_Zxip_V%3DcXigo6MmFcn442vEF23rznX%3DHTmPZ2g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Multi job build in different nodes

2016-03-23 Thread Eric Pyle
I think you could define the node parameter in job 1 as a string, but in 
job 2 as a node parameter. You would just have to explicitly pass that 
parameter to job 2.


On 3/23/2016 7:25 AM, steliosP wrote:

I am trying to have a multi job build in Jenkins.
The restriction is the following: Let's say we have 3 jobs that need 
to run sequentially (1,2,3). I want job 1 and 3 to run exclusively on 
master, and job 2 to run on a node that I,as user I will specify. The 
problem is that if you use NodeLabel Parameter Plugin, meaning 
creating a label variable, and the pass it to the job, if the node is 
not up at the time, the multi build will not start, even though you 
have restricted it to master, or the first phase is suppose to run in 
master anyways. Any ideas?

--
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/80f7c744-0fd7-4e83-b295-06067cb8c585%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/56F2BE67.2060400%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Variables from variables and replacing forward slash with backslash

2016-03-23 Thread Eric Pyle

Hi,

You say you know how to do this in a Windows batch file. Are you in an 
"execute shell" build step? If so this is just a shell question. Where 
do you need to use these new variables you define? If you need to 
reference them in a later build step, the Envinject plugin 
 may be 
helpful.


Eric

On 3/23/2016 9:30 AM, Aki K wrote:

Hello

I want to make variables from a variable that is in format of 
"projectname/projectfolder"


$PROJECT=projectname/projectfolder

is gotten as a environment variable from the trigger

I want to declare two other variables from this in this format:

$PROJECT_BS=projectname\projectfolder
$PROJECT_ID=projectname_projectfolder

How to do this? I've been googling for 2-3 hours now and cannot find 
answer for this.


I'm not a programmer but I do know how to do this in Windows batch file.

Jenkins is very nice but the documentation is A BIT lacking.


--
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/94ec5fba-996f-4e5a-880b-62c1f4e7d50a%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/56F2BB44.4050907%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Pipeline/Workflow node name as variable

2016-03-21 Thread Eric Pyle
It looks like the word 'ENVIRONMENT' is misspelled in the stacktrace - 
not sure if this is the problem. The stacktrace indicates the error 
occurs on line 56 of your script, so it would help to know what is on 
that line.


Eric

On 3/21/2016 5:48 AM, Frank Hask wrote:

@Baptiste

When i use this method i am also getting errors..

|
defNODE ='bla bla'


node(NODE){
//some code
}
|


I get the following stacktrace

groovy.lang.MissingPropertyException: No such property: ENVIRONMNET for class: 
WorkflowScript
at 
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
at 
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.getProperty(ScriptBytecodeAdapter.java:454)
at 
com.cloudbees.groovy.cps.sandbox.DefaultInvoker.getProperty(DefaultInvoker.java:25)
at 
com.cloudbees.groovy.cps.impl.PropertyAccessBlock.rawGet(PropertyAccessBlock.java:17)
at WorkflowScript.run(WorkflowScript:56)
at ___cps.transform___(Native Method)
at 
com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.get(PropertyishBlock.java:62)
at 
com.cloudbees.groovy.cps.LValueBlock$GetAdapter.receive(LValueBlock.java:30)
at 
com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.fixName(PropertyishBlock.java:54)
at sun.reflect.GeneratedMethodAccessor805.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
at 
com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)
at com.cloudbees.groovy.cps.Next.step(Next.java:58)
at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:154)
at 
org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:164)
at 
org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:277)
at 
org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$000(CpsThreadGroup.java:77)
at 
org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:186)
at 
org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:184)
at 
org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:47)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at 
hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112)
at 
jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Finished: FAILURE
--
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/e70dcf52-e349-4696-baa0-39eb2f9412e4%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/56F00178.8040005%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Start a job on slave / node that just connected to master server

2016-03-11 Thread Eric Pyle
Before the reboot, you could queue up the job you want to run right 
after reboot. If other jobs may be competing, you can give your special 
job a higher priority (priority sorter plugin).


Eric

On 3/11/2016 7:05 AM, Jakub Gladykowski wrote:


On Friday, March 11, 2016 at 1:01:01 PM UTC+1, Simon Richter wrote:

This seems like a good time to ask what you *actually* want to do[1].

   Simon

[1] http://xyproblem.info/


 I need to reboot slave few times during test. So whenever slave goes 
back online, I need to execute another job, and another and another,. 
I can always do it by using Python API. However it would be much 
nicer, to start job on that slave, which will handle things.

--
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/ffc35b09-4db5-419f-914d-fdd4ec2e7eb4%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/56E31B4E.1000101%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Conditional Step Regular Expression Match

2016-03-08 Thread Eric Pyle
I believe the * following the closing parentheses means "zero or more 
occurrences of", and in this case applies to the contents of the 
parentheses. So it's matching on zero occurrences. You probably want ").*"


Eric

On 3/1/2016 9:20 AM, Eric Fetzer wrote:
Thanks for the reply Eric!  Sorry, the square brackets are just from 
the Jenkins output.  My regex's look like this (4 single conditional 
steps based on the label passed in build.apps):


.*(NAP-Client|NAP-ALL)*
.*(NAP-Server|NAP-ALL)*
.*(NAP-Reports|NAP-ALL)*
.*(CAS|NAP-ALL)*

In this particular case, I passed in build.apps='NAP-Client,NAP-Server'

So it should go in and trigger the build associated with these two 
regex's.  But what it does is go into all 4 and build them.  I'm 
guessing I could put anything at all in the Label and it would match 
for all of these conditions because of a mistake I'm making in my regex.


Thanks,
Eric

On Monday, February 29, 2016 at 2:32:08 PM UTC-7, Eric Fetzer wrote:

I don't understand why the following is a match for my regex.  Can
someone tell me what makes it a match?

Regular expression run condition:
Expression=[.*(OIS-Reports|OIS-ALL)*], Label=[OIS-Client,OIS-Server]
Run condition [Regular expression match] enabling perform for step
[Trigger/call builds on other projects]

Thanks,
Eric

--
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/8b0a1962-9ebe-4623-bc34-9e9e20d1fbab%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/56D5ACDD.9000708%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Conditional Step Regular Expression Match

2016-03-01 Thread Eric Pyle
You need ".*" instead of "+" after the close parentheses. Otherwise you 
are only able to match the second entry in your label, because you are 
not allowing anything after the matched label.


Eric

On 3/1/2016 11:14 AM, Eric Fetzer wrote:
Thanks for your response Matthew!  With your change, we seem to be a 
lot closer.  I have from 1 to 4 conditional projects to call.  In this 
particular build, I'm telling it to do 2 of the 4.  Here's what it did 
based on the condition:


Regular expression run condition: 
Expression=[.*(NAP-Client|NAP-ALL)+], Label=[NAP-Client,NAP-Server]
Run condition [Regular expression match] preventing perform for step 
[Trigger/call builds on other projects] *Didn't go into this one which 
it should have*
Regular expression run condition: 
Expression=[.*(NAP-Server|NAP-ALL)+], Label=[NAP-Client,NAP-Server] 
*Went into this one as it should have*
Run condition [Regular expression match] enabling perform for step 
[Trigger/call builds on other projects]

Returning node parameter for master
Waiting for the completion of _NAP-Server_ 

_NAP-Server #98_  
completed. Result was SUCCESS
Regular expression run condition: 
Expression=[.*(NAP-Reports|NAP-ALL)+], Label=[NAP-Client,NAP-Server] 
*Didn't go in as it shouldn't have*
Run condition [Regular expression match] preventing perform for step 
[Trigger/call builds on other projects]
Regular expression run condition: Expression=[.*(CAS|NAP-ALL)+], 
Label=[NAP-Client,NAP-Server] *Didn't go in as it shouldn't have*
Run condition [Regular expression match] preventing perform for step 
[Trigger/call builds on other projects]
Warning: you have no plugins providing access control for builds, so 
falling back to legacy behavior of permitting any downstream builds to 
be triggered


Is it having a problem with the ".*" because NAP-Client occurs at the 
beginning of the line?



On Monday, February 29, 2016 at 2:32:08 PM UTC-7, Eric Fetzer wrote:

I don't understand why the following is a match for my regex.  Can
someone tell me what makes it a match?

Regular expression run condition:
Expression=[.*(OIS-Reports|OIS-ALL)*], Label=[OIS-Client,OIS-Server]
Run condition [Regular expression match] enabling perform for step
[Trigger/call builds on other projects]

Thanks,
Eric

--
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/6ec0376a-6168-49ca-b9e5-d80a85ffd4f3%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/56D5C662.6070109%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Conditional Step Regular Expression Match

2016-02-29 Thread Eric Pyle
Off the top of my head, the square brackets "[" and "]" are meaningful 
in RE syntax, representing a character class. Have you tried escaping them?


On 2/29/2016 4:32 PM, Eric Fetzer wrote:
I don't understand why the following is a match for my regex.  Can 
someone tell me what makes it a match?


Regular expression run condition: 
Expression=[.*(OIS-Reports|OIS-ALL)*], Label=[OIS-Client,OIS-Server]
Run condition [Regular expression match] enabling perform for step 
[Trigger/call builds on other projects]


Thanks,
Eric
--
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/0043b1a8-3d52-48b1-8009-074e66734783%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/56D4BC7A.20200%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: How do I configure a Jenkins build to push a file to a specific server on the network?

2016-02-01 Thread Eric Pyle
If I understand the question, you check "Restrict where this project can 
be run" in the job configuration to control where to run the job, 
assuming that the machine where you want to run it is a Jenkins slave.


Eric

On 2/1/2016 7:25 AM, Kiran wrote:
I have those installed.  I click "New Item."  I have some options.  
Where in the "New Item" options do I configure the machine (e.g., DNS 
name)?


On Sunday, January 31, 2016 at 12:16:25 PM UTC-5, Victor Martinez wrote:

You can use the below plugins:
-
https://wiki.jenkins-ci.org/display/JENKINS/Publish+Over+SSH+Plugin 

- https://wiki.jenkins-ci.org/display/JENKINS/SSH+plugin


Then you can configure your job to run certain scripts among
different machines.

I hope it helps

On Saturday, 30 January 2016 03:48:08 UTC, Kiran wrote:

I have Jenkins installed on a Linux server. It can run builds
on itself. I want to create either a Freestyle Project or an
External Job that transfers a bash script and runs it on two
separate linux servers. Where in the GUI do I configure the
destination server when I create a build? I have added "nodes"
in the GUI. I can see the free space of the servers in the
Jenkins GUI, so I know the credentials work. But when I create
a build, I see no field that would tell Jenkins to push the
bash scripts and run them on certain servers.

--
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/11cb70d5-813d-4006-8660-c52b03de12b3%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/56AF6287.6050505%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: No workspace variable during workflow / pipeline build?

2016-01-27 Thread Eric Pyle
WORKSPACE is documented as not being available in workflow/pipeline 
scripts. I found this when you select "env" under Global Variables in 
the snippet generator:


The following variables are currently unavailable inside a workflow script:

 * |EXECUTOR_NUMBER|
 * |NODE_LABELS|
 * |WORKSPACE|
 * SCM-specific variables such as|SVN_REVISION|



On 1/27/2016 4:14 AM, David Karlsen wrote:

I have this build definition:

node ('docker') {
  wrap([$class: 'TimestamperBuildWrapper']) {
stage 'checkout'
checkout scm: [$class: 'GitSCM', branches: [[name: '*/develop']], 
userRemoteConfigs: [[url: 'ssh://git@myserver:port/myrepo.git']]]


stage 'unit-test'
env.JAVA_HOME="${tool 'Oracle-JDK8-64bit'}"
def mvnHome = tool 'apache-maven-3.x'
def workSpace = env.WORKSPACE
def mvnCmd = "${mvnHome}/bin/mvn -B 
-Dmaven.repo.local=${workSpace}/.m2"

echo "workspace: ${workSpace} mvnCmd: ${mvnCmd}"
sh "${mvnCmd}/bin/mvn -B clean install"





But workspace is null:

Running: Print Message
*08:55:38* *workspace: null*  mvnCmd: 
/var/lib/jenkins/tools/maven/apache-maven-3.x/bin/mvn -B 
-Dmaven.repo.local=null/.m2

Should it not be assigned to the env.WORKSPACE var by default?
--
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/5d2f08e0-f692-4b6e-a657-dbb5bc66a251%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/56A9093B.5030403%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: No workspace variable during workflow / pipeline build?

2016-01-27 Thread Eric Pyle

Workaround:

sh 'pwd > pwd.txt'
workspace = readFile('pwd.txt')

On 1/27/2016 1:15 PM, Eric Pyle wrote:
WORKSPACE is documented as not being available in workflow/pipeline 
scripts. I found this when you select "env" under Global Variables in 
the snippet generator:


The following variables are currently unavailable inside a workflow 
script:


  * |EXECUTOR_NUMBER|
  * |NODE_LABELS|
  * |WORKSPACE|
  * SCM-specific variables such as|SVN_REVISION|



On 1/27/2016 4:14 AM, David Karlsen wrote:

I have this build definition:

node ('docker') {
  wrap([$class: 'TimestamperBuildWrapper']) {
stage 'checkout'
checkout scm: [$class: 'GitSCM', branches: [[name: '*/develop']], 
userRemoteConfigs: [[url: 'ssh://git@myserver:port/myrepo.git']]]


stage 'unit-test'
env.JAVA_HOME="${tool 'Oracle-JDK8-64bit'}"
def mvnHome = tool 'apache-maven-3.x'
def workSpace = env.WORKSPACE
def mvnCmd = "${mvnHome}/bin/mvn -B 
-Dmaven.repo.local=${workSpace}/.m2"

echo "workspace: ${workSpace} mvnCmd: ${mvnCmd}"
sh "${mvnCmd}/bin/mvn -B clean install"





But workspace is null:

Running: Print Message
*08:55:38* *workspace: null*  mvnCmd: 
/var/lib/jenkins/tools/maven/apache-maven-3.x/bin/mvn -B 
-Dmaven.repo.local=null/.m2

Should it not be assigned to the env.WORKSPACE var by default?
--
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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/5d2f08e0-f692-4b6e-a657-dbb5bc66a251%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/56A9114F.8080909%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: [workflow plugin] use case question

2016-01-21 Thread Eric Pyle
I think you would need the NodeLabel Parameter Plugin. And as Craig 
Rodrigues recently posted, that plugin is not yet compatible with 
Workflow, although he has proposed a fix:


==
*Re: [workflow-plugin] Example using NodeLabel Parameter plugin?*

It turns out that the NodeLabel Parameter plugin doesn't work with the 
workflow plugin:

https://issues.jenkins-ci.org/browse/JENKINS-32209

I submitted this fix:

https://github.com/jenkinsci/nodelabelparameter-plugin/pull/10

--
Craig
===

On 1/21/2016 11:53 AM, Patrick Bruneton wrote:

No because I would have to restrict the jobs on a particular slaves.
I have many windows slaves.
If job 'build' gets executed on windows-slave-1 I want the 'test' to 
be executed on the same slave (and be executed immediately)


Le jeudi 21 janvier 2016 17:21:33 UTC+1, Brian Ray a écrit :

Can you just set the *Restrict where this project can be run*
checkbox in conjunction with the *Label Expression* param on the
two subjobs?

On Thursday, January 21, 2016 at 2:16:39 AM UTC-8, Patrick
Bruneton wrote:

Hi all,

I am trying to implement a use case with the workflow plugin.
I have two jobs, say build & test, that I want to run inside a
pipeline. Sounds easy.
But I have a constraint:I want the two jobs to executed on the
same slave.
So I tried something like this:

|
node('windows'){
   stage name:'Build',concurrency:1
   build 'build'
   stage name:'Test',concurrency:1
   build 'test'
}
|


But 'build' and 'test' are executed in their own slave, which
is not the one allocated by 'node'. That seems logical.
Is there a way to force the builds to run a node?

I understand I could(/should) write the job logic directly in
the pipeline, e.g.

|
node('windows'){
   stage name:'Build',concurrency:1
// build stage details
   stage name: 'Test', concurrency: 1
   // test stage details
}
|

However, I am not sure I can do this, because my jobs exist
already, and use plugins that do not seem to be supported by
workflow (e.g. xUnit, Extended Email)

Any thought?

Thanks,
Patrick

--
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/413e8e29-f03c-406d-b1d1-7a8cc7964ee7%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/56A1310F.8010609%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Run job on ALL cloud (i.e. Docker) slaves including a given label

2016-01-19 Thread Eric Pyle
I believe the problem is that Jenkins will not run multiple instances of 
a job with identical parameters. There have been posts on this list 
recently of users who solve this problem by adding an extra parameter 
which is unique for each job instance.


Regards,
Eric

On 1/19/2016 11:13 AM, Julianus Pfeuffer wrote:

Hello everybody,

currently I am desperately looking for a way to create a Jenkins job 
that, when launched, will be executed concurrently

on ALL slaves matching a label (or better a set of labels).
Usually (but not exclusively) my slaves will be cloud based. That 
means they should be fired up automatically with the Docker plugin of 
Jenkins.


I tried some different configurations (e.g. Elastic Axis Plugin, 
Matrix plugin [and its label_expressions], Restricting job to certain 
slaves in its configuration) but either it does not work at all or 
Jenkins will only fire up the job on one slave (that matches the 
label) only.


The method I am looking for should work on labels because I do not 
want to click all the slaves that should be used for a certain job 
everytime my configuration changes (i.e. via a slaves axis).

Has anyone found a way of doing what I envision?

Your help is highly appreciated.
Regards,
Julianus
--
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/9dfd9ba5-052b-4f23-9a05-fe2ab3ce17c7%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/569E6B3B.8010504%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Issue while installing Jenkins plugin nodelabelparameter

2016-01-14 Thread Eric Pyle
It looks like you don't have installed the token-macro and jquery 
plugins, or perhaps not the right versions.


On 1/14/2016 3:36 AM, Tatzagata wrote:

Caused by: java.io.IOException: Dependency token-macro (1.11), jquery (1.7.2-1) 
doesn't exist
at 
hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:533)
at hudson.PluginManager.dynamicLoad(PluginManager.java:477)
... 6 more


--
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/5697B803.1020006%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is there a way to fail the build after it's finished?

2016-01-13 Thread Eric Pyle

Seems like this could be handled by build promotion?

On 1/13/2016 8:50 AM, Maciej Jaros wrote:

Hi.

I want to fail one of the builds to be able to mark it as something 
that should not be deployed.


My setup is that I have two task:

 1. One just builds project and saves artifacts (war files).
 2. Second copies artifacts of last successful build and deploys them.

Occasionally some build passes automatic tests, but then fails after 
deployment. If I can mark the build as failed, then re-deployment 
would use older, but working version.


Regards,
Nux.
--
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/56965633.6030301%40mol.com.pl 
.

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/56965C4E.2050803%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to set environment variable based on build parameter

2016-01-08 Thread Eric Pyle
In bash you could do something like this. Let's assume you have the 
property file mapping.properties in the workspace, and the user chose 
proj1 as the value of PROJECT_NAME.


. mapping.properties
echo ${!PROJECT_NAME}

or alternatively:
eval THEME_NAME=\$$PROJECT_NAME

Thanks to http://tldp.org/LDP/abs/html/ivr.html for the reference.

Eric

On 1/8/2016 1:26 PM, Marty Mickelson wrote:
I asked this in StackOverflow but thought this might be a more 
targeted place to get an answer...


I have a parameterized job where I need to set an environment variable 
based on a choice parameter the user chooses. Each project has a theme 
project dependency. I'd like to have the user choose the project and 
then load the theme name from a property file. Something like


|proj1=theme1 proj2=theme2 proj3=theme3 |

If the user chooses |proj1| from the |PROJECT_NAME| choice parameter, 
I want to automatically set |THEME_NAME| to be |theme1|. What would be 
the best way to go about this?


I don't want to modify the Jenkins job config whenever a new project 
is added. Instead, I want to have the mapping in a file so I can have 
it in version control.


--
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/f5afc3a1-7ba1-4c3d-94fe-542187e3788d%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/569022D8.3020509%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Why do I get this error message when I'm trying to save an artifact

2015-11-13 Thread Eric Pyle
This error occurs when you retrieve an artifact which does not have a 
fingerprint recorded. As you have observed, it does not indicate a 
failure in downloading the artifact.


Regards,
Eric

On 11/10/2015 10:50 PM, Rock.C wrote:

Hi guys,
I'm using the latest Jenkins 1.637 to create a 
software-project-building job for my company.
After the job finished, I use the tar tool to pack some libs into a 
tar.gz package and try to get it from user side via the latest version 
of JenkinsAPI(pythonhosted.org/jenkinsapi/ 
).
But I will get everytime an error message from the JenkinsAPI's 
Artifact.save() function:
"ERROR:root:Failed request 
athttp://xxx.xxx.xxx.xxx:xx/fingerprint//api/python with 
params: None"
Finally I can still find the artifact has been saved to the path I 
specified.

Just curious why I always get this error mesasge.
Could someone please help me?

Best Regards,
Huanyin
--
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/CAMH%2BkvX2kSRTqZFFEWs3ZXbjYOMqdoY5fVfDY1Mz%3DzKkEY_DGg%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/56434B1F.2020103%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Matrix job: execute a certain build step for only a subset of slaves

2015-11-05 Thread Eric Pyle
You should be able to use the variable $NODE_NAME in the condition for a 
build step. From 
https://wiki.jenkins-ci.org/display/JENKINS/Building+a+software+project.


On 11/5/2015 9:14 AM, David Aldrich wrote:


To re-phrase my question:

Using the Conditional Build Step Plugin, how would I specify a 
condition that checks whether the job is running on a specific slave?


Best regards

David

*From:*jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] *On Behalf Of *David Aldrich

*Sent:* 05 November 2015 09:43
*To:* jenkinsci-users@googlegroups.com
*Subject:* Matrix job: execute a certain build step for only a subset 
of slaves


Hi

I have a matrix job that builds our C++ project. I use a matrix job so 
that I can build simultaneously on various Linux distros, with 
differing versions of the g++ compiler. I have just one axis, which 
specifies the slaves.


One of the build artefacts requires a 3^rd party library that is 
available only on a subset of the slaves.  That artefact gets built by 
one build step.  How can I disable that build step for certain slaves?


Best regards

David

Click here 
 
to report this email as spam.


--
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/41302A7145AC054FA7A96CFD03835A0A0B9FB230%40EX10MBX02.EU.NEC.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/41302A7145AC054FA7A96CFD03835A0A0B9FB624%40EX10MBX02.EU.NEC.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/563BA418.90309%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Running a single job multiple times against a slave pool, taking a free slave if possible before queueing the next run

2015-10-30 Thread Eric Pyle
I think all you need to do is check the box "Execute concurrent builds 
if necessary" in the job configuration.


Eric

On 10/30/2015 9:59 AM, Jim wrote:

Hi all,

I've a couple of jobs that run against a pool of slaves, taking 
whichever slave is free at the time.
The problem is, if the job is already running on a slave in the pool 
Jenkins queues the next run, rather than using any of the pool's free 
slaves.


I would like Jenkins to start a new run of the job on a free slave 
each time until the pool is all in use if this is possible, so on a 
pool of two
slaves I could have the job running twice at the same time, with 
different set of tests on each run instance. If I then tried to run 
the job for a
third time Jenkins would queue it until a slave became free, at which 
point it would than be run.


Thnks for any help,
Jim.
--
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/0e0c3038-74d9-4172-a93f-b1cf846055e4%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/56339299.6030905%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Failt to build maven project in Jenkins, though it is successful by direct building with maven

2015-10-22 Thread Eric Pyle
The Jenkins process likely does not have drive Z: mapped. You may need 
to specifically issue the "net use" command in your slave startup or in 
your job. If so, I recommend using the /Y parameter to "net use", which 
will allow the command to succeed even if the drive is already mapped.


Eric

On 10/22/2015 4:54 AM, Wei Chen wrote:
I figure out the problem. It lies on the workspace directory: 
C:\Program Files (x86)\Jenkins\workspace\WebdriverTest


It seems the Jenkins doesn't accept the space character. I move the 
Jenkins to C:\Jenkins and it can go further.


But the build fails since I have another error as follow:
...
ERROR: Z:\Eigene_Dateien\Temp\MyProjects\WebdriverTest\pom.xml not found
...
I have now really no idea.
--
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/0a68f185-42c0-4dae-92cd-8dc139c55e2d%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/5628F6A0.5020402%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: python build script hanging

2015-10-21 Thread Eric Pyle
Try running Python with the -u option (unbuffered output). Otherwise the 
output from Python is not in sync with what is happening in real time.


On 10/21/2015 6:05 PM, Mishael Kim wrote:


Hi,

I was hoping someone could provide some tips on how to debug/fix this 
issue i'm seeing.


I'm launching a python build script from within Jenkins job and the 
console output just seems to hang on the call.  One of the first steps 
within the script is to call some perforce commands using p4.  When I 
go to the slave machine and check the running processes, I can see 
that a python process and p4 process is running (as expected).  I 
suspect that it's some odd perforce error that is causing the hang, 
but I cannot tell what's going on because of the hang and no output to 
the console.  If I copy and paste the command directly into the 
command prompt to bypass Jenkins, it seems to just work fine with the 
expected output.


After some googling, i've unsuccessfully tried using pycharm to attach 
to the already running python process in hopes to getting any clues.


Can anyone point me in the right direction on how to fix/debug this 
issue?  Has anyone seen something similar?



Thanks,
Mishael

--
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/CAMzA64kzua0QcsWi6rxuzyBs%2B-pThxe8FhGEjCRn4c4MGzs--g%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/56281D8E.2010609%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: python build script hanging

2015-10-21 Thread Eric Pyle
Depends what you're doing with Python but unless there's a lot of I/O I 
wouldn't expect a lot of difference. I use it all the time for software 
build scripting.


On 10/21/2015 7:41 PM, Mishael Kim wrote:
Awesome.  Getting some more info with the unbuffered output.  Are 
there any potential side effects when using this?  Performance?

Thanks!

On Wed, Oct 21, 2015 at 4:19 PM, Eric Pyle <eric.p...@cd-adapco.com 
<mailto:eric.p...@cd-adapco.com>> wrote:


Try running Python with the -u option (unbuffered output).
Otherwise the output from Python is not in sync with what is
happening in real time.


On 10/21/2015 6:05 PM, Mishael Kim wrote:


Hi,

I was hoping someone could provide some tips on how to debug/fix
this issue i'm seeing.

I'm launching a python build script from within Jenkins job and
the console output just seems to hang on the call.  One of the
first steps within the script is to call some perforce commands
using p4.  When I go to the slave machine and check the running
processes, I can see that a python process and p4 process is
running (as expected).  I suspect that it's some odd perforce
error that is causing the hang, but I cannot tell what's going on
because of the hang and no output to the console.  If I copy and
paste the command directly into the command prompt to bypass
Jenkins, it seems to just work fine with the expected output.

After some googling, i've unsuccessfully tried using pycharm to
attach to the already running python process in hopes to getting
any clues.

Can anyone point me in the right direction on how to fix/debug
this issue?  Has anyone seen something similar?


Thanks,
Mishael

-- 
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
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit

https://groups.google.com/d/msgid/jenkinsci-users/CAMzA64kzua0QcsWi6rxuzyBs%2B-pThxe8FhGEjCRn4c4MGzs--g%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
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit

https://groups.google.com/d/msgid/jenkinsci-users/56281D8E.2010609%40cd-adapco.com

<https://groups.google.com/d/msgid/jenkinsci-users/56281D8E.2010609%40cd-adapco.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 
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAMzA64nvxjOKQvDyaW5v16iQN2YqENHWp-SiBmaTMLjcq7c%3DKQ%40mail.gmail.com 
<https://groups.google.com/d/msgid/jenkinsci-users/CAMzA64nvxjOKQvDyaW5v16iQN2YqENHWp-SiBmaTMLjcq7c%3DKQ%40mail.gmail.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/562826D8.6000305%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Combining 3 Masters to One

2015-10-19 Thread Eric Pyle
I'd think it would be a lot easier to do using Jenkins CLI. Run get-job 
[job-name] on the separate master and pipe to create-job on the combined 
master. I've done this to move jobs from one master to another before.


Eric

On 10/19/2015 12:48 PM, Eric Naitove wrote:
I have 3 separate masters that I need to combine to ONE single master. 
 Has anyone ATTEMPTED to take the 3 (or 2 or more) configuration files 
and tried to manually combine them then restart a new server with the 
combined configuration file?


I know it sounds crazy BUT
--
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/45f037df-e3c3-4113-b24b-e0914998786f%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/56252348.5070605%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins reports The SDK directory 'H:\Android\android-sdk' does not exist

2015-10-14 Thread Eric Pyle
Assuming that H: is a network drive, if Jenkins is running as a service 
under the default Local System account, it will not have access to 
network resources. Jenkins needs to run as a user with network privileges.


Eric

On 10/13/2015 9:29 PM, Mark Elston wrote:
I am using Jenkins to build several related projects including an 
Android APK project.  If I execute the gradlew.bat file from within 
the android project directory on the build machine (on the command 
line) then everything builds just fine.  However, when using the 
Gradle Wrapper from Jenkins I get the error in the subject.


The H: drive is not where Jenkins is executing.  I don't know if that 
is the problem or not.  Unfortunately, the build machine has very 
limited space on the C drive so I can't put the Android SDK on it (6G 
is just too much).  So I installed it on H:.  As I said, Gradle finds 
it just fine when run from the command-line.


What is causing Jenkins to report that a directory that *does* exist 
doesn't exist?


Mark
--
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/67920d6b-c5c8-4cca-b789-0fdf476965bb%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/561E5515.7050806%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Aggregating Downstream test results - Not working though everything is setup fine

2015-09-17 Thread Eric Pyle
I think the way aggregation was intended to work, a job would produce 
some artifact, fingerprint the artifact, and trigger downstream builds 
to do something with the artifact. The test results would be aggregated 
by the upstream job which created the artifact. The fingerprint provides 
the link between a particular artifact build and the tests run on that 
artifact. You can give the main-aggregator job this pattern by having it 
create a simple artifact such as a timestamp and archive and fingerprint 
it, and have the downstream jobs retrieve the artifact.


Regards,
Eric

On 9/17/2015 11:02 AM, Gergely Brautigam wrote:

Hello guys.

I know this has been chewed upon many times, and I've read blogs after 
posts after questions and answers and descriptions and every damn 
thing I was able to find on the internetz, still, I can't get 
aggregation to work.


I have a project main-aggregator who has 6-10 other jobs configured as 
a downstream project which generate test results in junit test format. 
Configuration is handled through Jenkins DSL, but I tried without it 
as well, so that doesn't matter.


Jobs are configured to be downstream through this guy => Trigger / 
call builds on other projects. This has a list of jobs to trigger.


After that, the Aggregate Downstream Test result is added as post 
build task and enabled to Automatically Generate results ( I tried 
defining them by name as well ).


Next, the downstream projects have fingerprinting setup like this =>

publishers{
archiveJunit("project/build/${taskName}-results/TEST*xml")
fingerprint("project/build/${taskName}-results/TEST*xml")
}

This all works. I see the fingerprinted xml files, awesomeness.

But on the main calling build Jenkins says this =>


  Aggregated Test Result

Fingerprinting not enabled on this build. Test aggregation requires 
fingerprinting.


Well, of course it's not enabled. How would it be? This job isn't 
generating anything it should AGGREGATE. Or I'm missing a vital point 
here... But If I understand correctly aggregation requires tracked 
results which I'm tracking on the build which is creating the result. 
But I can't fingerprint anything on a build which is not doing 
anything else other than triggering these builds. There is no flag to 
set that says enable fingerprint and that's it, unless I'm missing 
something.


Could somebody please help me before I loose my mind over this?

Thank you very much!
Gergely.

--
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/d3466540-cc52-4130-8b9c-7e1c885ef1c5%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/55FAFA49.3070006%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Grails Jenkins CI not working

2015-08-19 Thread Eric Pyle
It also looks like there are two double quotes in the beginning right 
after the first single quote. I think there should only  be one double 
quote there, or the quoting will come out wrong. Also, I'm not sure you 
need the single quotes at all.


Eric

On 8/19/2015 8:38 AM, Mark Waite wrote:


Since work dir has a space in its path, you either need to quote the 
value or move work dir to a path which does not include a space.



On Wed, Aug 19, 2015, 6:12 AM Sanjay Lama sanjay.lama2...@gmail.com 
mailto:sanjay.lama2...@gmail.com wrote:


I am trying to implement jenkins for Continuous integration with
grails. But, I am getting following error every time:

[workspace] $ cmd.exe /C 'C:\Program Files (x86)\Jenkins\jobs\wrapperTest\workspace\grailsw.bat 
-Dgrails.work.dir=C:/Program Files (x86)/Jenkins/jobs/wrapperTest/workspace/target -Dserver.port=8111 war 
--non-interactive --plain-output --stacktrace --refresh-dependencies  exit %%ERRORLEVEL%%'
/Jenkins/jobs/wrapperTest/workspace/target was unexpected at this time.
Build step 'Build With Grails' marked build as failure
Finished: FAILURE

my grails version is : 2.4.5

and jenkins : 1.624

Grails app runs perfectly fine when i run via command line.

-- 
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
mailto:jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit

https://groups.google.com/d/msgid/jenkinsci-users/bd9cfe9b-a646-486e-93f2-37761b19def0%40googlegroups.com

https://groups.google.com/d/msgid/jenkinsci-users/bd9cfe9b-a646-486e-93f2-37761b19def0%40googlegroups.com?utm_medium=emailutm_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 
mailto:jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtFs6jZjyxREJ6i3MUy%3DWxTsok4OiypMemHRubsoNrNrcA%40mail.gmail.com 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtFs6jZjyxREJ6i3MUy%3DWxTsok4OiypMemHRubsoNrNrcA%40mail.gmail.com?utm_medium=emailutm_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/55D48138.3070305%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: 'cordova' command not recognised on Jenkins Windows slave

2015-08-17 Thread Eric Pyle
I'm not familiar with how to configure cordova, but if you are able to run
successfully when logged in interactively, then you must have the proper
settings in your user configuration. So yes, I think you are correct that
you should be able to use the node level configurations.

Eric
On Aug 17, 2015 6:34 AM, Shajimon Paremmal shajiparem...@gmail.com
wrote:

 Thanks for that input, Eric.
 I have the nodejs path set in the PATH variable and I can run the cordova
 commands from command line on the slave machine locally. \the problem
 occurs only when I run it from Jenkins.

 I've installed Envinject plugin. Being a newbie to Jenkins, I'm a bit
 confused as to how to use it.
 Can I use the node level configuration where I unset the system
 environment variable, copy the contents of my system PATH variable on to a
 .properties file and specify its path?

 In the properties file, should I specify the path to nodejs as
 CORDOVA_PATH?

 Can't see much help on the cordova-Jenkins on the net  too.

 Thanks,
 Shaji

 On Friday, 14 August 2015 21:46:39 UTC+1, Eric Pyle wrote:

 Hi,

 Apparently 'cordova' is not on the %PATH% for the user running Jenkins.
 You may want to manually add the appropriate PATH entries before calling
 cordova, or you can set build variables in the job definition (Build
 Environment section, requires Envinject plugin).

 Regards,
 Eric

 On 8/14/2015 1:08 PM, Shajimon Paremmal wrote:

 HI,
 I'm trying to build a sample mobile app using Apache CORDOVA in
 the Jenkins Master-Slave environment.
 The source files are present on a Jenkins slave running Windows Server
 2012.
 I've specified the cordova commands in a .bat file and specified its path
 in the Execute Windows batch command.

 The build fails saying that 'cordova' is not recognized as an internal
 or external command,operable program or batch file.

 I can very well run this batch file from cmd and it runs successfully.
 Can anyone help me with this issue?

 Additional info:
 Contents of the .bat file;

 echo Starting the CORDOVA Build process
 cd C:\Cordova_Projects\workshop
 call cordova platforms remove android
 call cordova platforms add android
 call cordova plugin add org.apache.cordova.device
 call cordova plugin add org.apache.cordova.console
 call cordova emulate android

 Jenkins work directory on slave - C:\Jenkins_Works
 Cordova project directory on slave - C:\Cordova_Projects\workshop

 Thanks,
 Shaji
 --
 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/bacd4605-bf42-4aa3-a1e6-9a0a9339a777%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/bacd4605-bf42-4aa3-a1e6-9a0a9339a777%40googlegroups.com?utm_medium=emailutm_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/638bb6bd-6dc6-4792-8b3d-a5215a181bb2%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/638bb6bd-6dc6-4792-8b3d-a5215a181bb2%40googlegroups.com?utm_medium=emailutm_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/CAPrXuH3ZmMi7dbqcKDOZwPr1vgVZ9eoLo8zbEXqo7MFC2z%2BQLA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Failure when building LibreOffice on Windows 7 via Jenkins

2015-08-04 Thread Eric Pyle
I wonder if you are getting the DOS sort command instead of Cygwin. 
Try giving the full Cygwin path to sort.


Eric

On 8/4/2015 4:44 AM, Jan-Marek Glogowski wrote:

Hi

I'm trying to build LibreOffice 5.0 32bit on Windows 7 64bit. The setup
was working for a long time, but failed to work after the last Cygwin
and Jenkins update from 1.596 = 1.619.

The general build is working, if I manually run it, but fails when
triggered using the Jenkins slave. I finally found the reason for the
failure, but I have no idea what causes it.

This is the output from my test Jenkins job, which is based on the
breaking configure code. The code itself is from 2014 and minimalized
for my test Jenkins job:

+ echo ' Test'
+ tr '\ ' '\n'
+ tr '\n' '\ '
+ hexdump -C
  20 54 65 73 74 20 | Test |
0006
+ echo

= Ok

+ echo ' Test'
+ hexdump -C
  20 54 65 73 74 0a | Test.|
0006
+ echo

= Ok

+ echo ' Test'
+ tr '\ ' '\n'
+ hexdump -C
  0a 54 65 73 74 0a |.Test.|
0006
+ echo

= Ok

+ echo ' Test'
+ tr '\ ' '\n'
+ sort
+ hexdump -C
  0d 0a 54 65 73 74 0d 0a   |..Test..|
0008
+ echo

= Error

So sort somehow changes the newlines from Unix to Windows - WTF.

If I run the command via SSH login or from the local Cygwin terminal in
Windows, it is working correct!

I have attached a diff of the environment. When investigating, I added
an CYGWIN=binmode export, but this didn't change the output.

Any other ideas?

Jan-Marek



--
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/55C0C498.9040705%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Forcing another job to run immediately on same node

2015-07-21 Thread Eric Pyle
One way to do this is using the Priority Sorter Plugin, and give jobB a 
high priority.


On 7/20/2015 10:38 AM, Porter Bassett wrote:
I am trying to break up a job into two smaller jobs, which I'll call 
jobA and jobB.


I want jobB to run *immediately* after jobA, and on the same node, 
just like they did when they were the same job.


I can use use the Parameterized Trigger plugin to make jobA trigger 
jobB on the same node.


However, this triggering of jobB doesn't force it to run immediately. 
 If there are other jobs in the queue, then jobB will just be put on 
the end of the queue.


How can I force jobB to always run immediately after jobA, and on the 
same node?


--
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 
mailto:jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/a02c83b4-0c1c-412d-83a2-006e8f57384d%40googlegroups.com 
https://groups.google.com/d/msgid/jenkinsci-users/a02c83b4-0c1c-412d-83a2-006e8f57384d%40googlegroups.com?utm_medium=emailutm_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/55AE784F.3080004%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: What Jenkins copies from slave to master when a build finishes?

2015-06-29 Thread Eric Pyle
The Jenkins book is correct, but the terminology can be misleading. 
Artifacts and build results will indeed be stored on the Jenkins master. 
However, build results include only success/failure, console log, and 
other things Jenkins and your plugins use to perform their functions. 
Artifacts will only include those files specifically designated as 
artifacts in Archive the artifacts under post-build steps. Any other 
files in the workspace will not be transferred. So although you may 
think of various files created by your build as artifacts, Jenkins has 
to be told which ones you want to archive (store on the master).


Eric

On 6/29/2015 10:32 AM, Alan Evangelista wrote:
RG Well I am not a Linux guy but is /srv/share a folder mapped to 
your Jenkins server? Then that would be a manual copy step.


No, there is no NFS setup between master and server.

RG If /srv/share is a local folder on your slave, then I do not know 
how it is getting to your master.


That's indeed the case.


Are you sure Jenkins does not copy the artifacts created in a job 
automatically from slave to master? I read differently in chapter 11 
(Distributed Builds) in a book named Jenkins - The Definitive Guide, 
author John Ferguson:


In all cases, the fact that a build job is being run on a slave, and 
how that slave is managed, is transparent for the end-user: the build 
results

and artifacts will always end up on the master server.
--
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 
mailto:jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f6a93535-bfc1-4011-beb9-7cb1f84daafd%40googlegroups.com 
https://groups.google.com/d/msgid/jenkinsci-users/f6a93535-bfc1-4011-beb9-7cb1f84daafd%40googlegroups.com?utm_medium=emailutm_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/55915AA9.2020602%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Matrix building and triggered builds on nodes with teh same OS

2015-06-19 Thread Eric Pyle

Hi Bob,

You should be able to configure the triggered builds to use a particular 
label, using the NodeLabel Parameter Plugin, which lets you pass a 
parameter indicating a label the job should run on.


Regards,
Eric

On 6/18/2015 5:50 PM, Bob Stafford wrote:

Hi All,

I'm new to Jenkins so I apologize if this is a simple question but 
I've been stuck on this issue for a few days and all the googling and 
experimenting has not got me to an answer.


I have a matrix configuration to clone and compile my application on 
Suse 12.2, Suse 13.2 and Centos 6 using nodes running on these OSes, 
that part works fine.


Once my compilation is complete I then want to trigger tests builds 
that can run in parallel on multiple nodes it is however important 
that code built on Suse 12.2 for example is only tested on slaves 
running 12.2 and I've not yet found a way to limit my triggered builds 
to run only on the nodes with the same OS (but not necessarily the 
same node as  the compilation). Currently Jenkins will happily try to 
run my Suse 12.2 code on Centos. I've managed to export the label 
value to my triggered builds but that does not limit them to running 
on the same OS as the build that triggered them.


I hope I've got my Jenkins terminology right the use of the word build 
to mean compile or test or anything else is a little foreign to me.


All help much appreciated.

Bob S.
--
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 
mailto:jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/e4787ec2-aeb9-47c6-9878-e7c1317b25c4%40googlegroups.com 
https://groups.google.com/d/msgid/jenkinsci-users/e4787ec2-aeb9-47c6-9878-e7c1317b25c4%40googlegroups.com?utm_medium=emailutm_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/55841FEF.2030201%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Matrix building and triggered builds on nodes with teh same OS

2015-06-19 Thread Eric Pyle

Bob,

You would need to pass the value Suse13.2 (or whatever OS label) as 
the Label parameter to the downstream job. So in the downstream job you 
define a parameter of type Label, and then you pass the desired label 
value as that parameter when invoking the downstream job. Do you have 
the Parameterized Trigger plugin? You would need that to be able to pass 
parameters to a downstream job.


I was going to try this but I'm having problems with Chrome right now 
and it won't let me configure a new job.


Eric

On 6/19/2015 1:47 PM, Bob Stafford wrote:

Hi Eric,

Thanks for the suggestion but I've not yet managed to make it work. 
From my matrix job when the compilation build  has finished from 
Suse13.2 I want to run the test build on the suse 13.2 nodes  and when 
the Centos compilation has finished I want to run the same test on the 
centos nodes.


With the NodeLabel plugin  I can specify a constant OS (e.g. Suse 
13.2) but I've not managed to make it dynamic, so if I specify ${OS} 
as the label and the matrix job exports the variable OS set to the 
appropriate either Suse13.2 or Centos it just fails.


Am I missing something?

Regards,

Bob S.


On Friday, June 19, 2015 at 8:59:43 AM UTC-5, Eric Pyle wrote:

Hi Bob,

You should be able to configure the triggered builds to use a
particular label, using the NodeLabel Parameter Plugin, which lets
you pass a parameter indicating a label the job should run on.

Regards,
Eric

On 6/18/2015 5:50 PM, Bob Stafford wrote:

Hi All,

I'm new to Jenkins so I apologize if this is a simple question
but I've been stuck on this issue for a few days and all the
googling and experimenting has not got me to an answer.

I have a matrix configuration to clone and compile my application
on Suse 12.2, Suse 13.2 and Centos 6 using nodes running on these
OSes, that part works fine.

Once my compilation is complete I then want to trigger tests
builds that can run in parallel on multiple nodes it is however
important that code built on Suse 12.2 for example is only tested
on slaves running 12.2 and I've not yet found a way to limit my
triggered builds to run only on the nodes with the same OS (but
not necessarily the same node as  the compilation). Currently
Jenkins will happily try to run my Suse 12.2 code on Centos. I've
managed to export the label value to my triggered builds but that
does not limit them to running on the same OS as the build that
triggered them.

I hope I've got my Jenkins terminology right the use of the word
build to mean compile or test or anything else is a little
foreign to me.

All help much appreciated.

Bob S.
-- 
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 javascript:.
To view this discussion on the web visit

https://groups.google.com/d/msgid/jenkinsci-users/e4787ec2-aeb9-47c6-9878-e7c1317b25c4%40googlegroups.com

https://groups.google.com/d/msgid/jenkinsci-users/e4787ec2-aeb9-47c6-9878-e7c1317b25c4%40googlegroups.com?utm_medium=emailutm_source=footer.
For more options, visit https://groups.google.com/d/optout
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 
mailto:jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b8398298-c4d0-4695-9e0d-72b9aa3c98ab%40googlegroups.com 
https://groups.google.com/d/msgid/jenkinsci-users/b8398298-c4d0-4695-9e0d-72b9aa3c98ab%40googlegroups.com?utm_medium=emailutm_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/55845763.2050806%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Running multiple build steps in a single job

2015-06-05 Thread Eric Pyle
I think you would have to set this up in a script and just call the 
script from Jenkins. Especially if you need to perform a clean-up action 
if one step fails. It could be a shell script, or you could look into 
Workflow.


Regards,
Eric

On 6/5/2015 6:57 AM, Rohit Sharma wrote:

Hi

I tried the conditional build step plugin but it is not marking the 
build as failure if the condition got failed.


Thanks
Rohit

On Thursday, 4 June 2015 21:11:32 UTC+5:30, Rohit Sharma wrote:

Hi

I need ti run multiple build steps in  a single job on condition
basis i.e. if the first build step fails or if there is some error
in first build step then the changes should be rolled back. Is
this possible with any plugin in jenkins.

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 
mailto:jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/7515b62a-23ac-4254-bc26-056a67cae094%40googlegroups.com 
https://groups.google.com/d/msgid/jenkinsci-users/7515b62a-23ac-4254-bc26-056a67cae094%40googlegroups.com?utm_medium=emailutm_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/5571BAD3.70304%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to test a machine that gets rebuilt as part of the test?

2015-06-03 Thread Eric Pyle
You can look at the Jenkins CLI - http://yourjenkins:port/cli. There are 
commands create-node and delete-node, as well as offline-node and 
online-node. It's possible you could reconnect to the re-created node 
without deleting and re-creating - I've never tried it. For an example 
of a script to create a new node, see 
https://gist.github.com/sergeyhush/4e892837cf5c31c3d242.


Also see https://wiki.jenkins-ci.org/display/JENKINS/Remote+access+API

Regards,
Eric

On 6/3/2015 11:42 AM, Steve K wrote:


Thanks Eric. No, the ISO image would not include Jenkins slave 
installation.  Where could I look for pointers on scripting the 
removal/addition of a slave?

--
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 
mailto:jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/52d7d935-f2f9-46fc-ae7b-0ba65eb10b5e%40googlegroups.com 
https://groups.google.com/d/msgid/jenkinsci-users/52d7d935-f2f9-46fc-ae7b-0ba65eb10b5e%40googlegroups.com?utm_medium=emailutm_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/556F2426.4040104%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to test a machine that gets rebuilt as part of the test?

2015-06-03 Thread Eric Pyle
I assume that the new ISO image includes Jenkins slave installation, or 
can it be made to do so? If not, you would need to script the Jenkins 
master creating a new slave (presumably after deleting the old one). 
This is assuming a slave setup you can configure solely from the master, 
such as starting with an ssh command. You can queue up a job that does 
this once the new slave is defined, assigning it to run on the new 
slave, and it will wait there until the slave is connected and then run.


Eric

On 6/3/2015 10:25 AM, Steve K wrote:

Hello,

In my case, the machines that are being tested are Windows.
A rough skeleton of the test process is:
 *) Tell the slave machine that it is time to start the test.
 *) Tell the slave machine the location of the .ISO file(s) it will 
use to re-install its OS.

 *) Slave machine installs a brand new OS from the .ISO(s).
 *) By now, the slave has broken communication with the Jenkins master.
 *) Slave machine reboots as part of the OS rebuild.
 *) At this point, we want the master to be able to tell the slave 
what tests to run, but the slave knows nothing about Jenkins.


So, how do we get that slave to talk with the Jenkins master again?

Thanks in advance.

Steve K.
--
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 
mailto:jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6861676a-142c-437b-ac48-0795d2793925%40googlegroups.com 
https://groups.google.com/d/msgid/jenkinsci-users/6861676a-142c-437b-ac48-0795d2793925%40googlegroups.com?utm_medium=emailutm_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/556F165C.3090808%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to run set of regression tests across multiple svn branches?

2015-05-29 Thread Eric Pyle

Would a multi-configuration (matrix) build work in this case?

On 5/29/2015 8:30 AM, David Aldrich wrote:


Hi

We develop an application that lives in a svn repository. New features 
are added in branches, which can be long-lived. I need to regularly 
run the same set of regression tests on each branch and the trunk.  
Currently, I create a new set of Jenkins jobs each time I create a new 
branch – one job for each regression test.


Is there a convenient way of running a single job across multiple 
branches?  Then, for each regression test, I could just add the new 
branch to the list of branches that must be tested.


Best regards

David

--
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 
mailto:jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/41302A7145AC054FA7A96CFD03835A0A0B97C2EA%40EX10MBX02.EU.NEC.COM 
https://groups.google.com/d/msgid/jenkinsci-users/41302A7145AC054FA7A96CFD03835A0A0B97C2EA%40EX10MBX02.EU.NEC.COM?utm_medium=emailutm_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/55688A2F.3080107%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: sh file permissions

2015-05-08 Thread Eric Pyle

Hi Ashish,

Assuming your .sh file is kept in source control, you need to make the 
file executable and commit that change to your source control system. Or 
you could just add the command chmod +x filename.sh before running 
the script.


Regards,
Eric

On 5/8/2015 12:24 PM, Ashish Yadav wrote:
I am trying to run a job can executes a .sh file and am getting 
permission denied. The file is owned by the jenkins user but doesn’t 
have execute permissions. If I update the file in the job workspace to 
have execute permissions, the file perms get overlaid every time the 
job the runs. How can Jenkins call and execute a .sh file in the 
workspace?

--
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 
mailto:jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/D1724D53.D14A%25ashish.yadav%40firemon.com 
https://groups.google.com/d/msgid/jenkinsci-users/D1724D53.D14A%25ashish.yadav%40firemon.com?utm_medium=emailutm_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/554CE3E3.7090109%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: ordering post build actions

2015-04-07 Thread Eric Pyle
In this case, I'd say you should archive the properties file as an
artifact, and then retrieve it in the downstream job using the Copy
Artifact plugin.

On Tue, Apr 7, 2015 at 10:43 AM, Arpit Gupta ar...@hortonworks.com wrote:

 Hi All

 I searched the group to see if ordering post build actions was possible
 and i found this jira https://issues.jenkins-ci.org/browse/JENKINS-7408.
 However i am noticing that the order in which the post build actions are
 executed does not seem to be the order in which they appear in the job
 config page.

 For example for some of the jobs i had the following 2 post build actions
 1. trigger downstream job
 2. delete workspace

 It would end up deleting the workspace first and thus the downstream job
 would fail as it was looking for a properties file in the workspace. I am
 working around it by not deleting the workspace but was curious if it is
 possible to order post build actions and if so is the above scenario a bug?
 I am on v1.607 but saw this in earlier versions as well. Do not recall the
 exact version.

 Thanks
 Arpit

 CONFIDENTIALITY NOTICE
 NOTICE: This message is intended for the use of the individual or entity
 to which it is addressed and may contain information that is confidential,
 privileged and exempt from disclosure under applicable law. If the reader
 of this message is not the intended recipient, you are hereby notified that
 any printing, copying, dissemination, distribution, disclosure or
 forwarding of this communication is strictly prohibited. If you have
 received this communication in error, please contact the sender immediately
 and delete it from your system. Thank You.

 --
 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/0786c896-83d9-4d95-ba38-c8b716d235a3%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/0786c896-83d9-4d95-ba38-c8b716d235a3%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.




-- 

*Eric Pyle*Build Manager
CD-adapco - Lebanon, NH Office
+1 603-643-9993 x24161 (T)
+1 603-359-8670 (M)
eric.p...@cd-adapco.comwww.cd-adapco.com[image: CD-adapco logo and social
media buttons]

-- 
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/CAPrXuH3rAEzzEEXEzKQUMV_W9f1yUa%3DoTr%3D2ETk%3DWtiTg4Viow%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Plugin: how do I trigger a preoperation plugin before saving any jobs?

2015-04-02 Thread Eric Pyle
You could probably look at the code for the JobConfigHistory plugin, 
because it records the config.xml each time you save or apply a job 
configuration.


Eric

On 4/2/2015 1:12 PM, Victor Martinez wrote:

Hi guys,

I wonder if you know if I can code some kind of plugin which will run every 
time someone saves/apply a particular job configuration, a kind of pre/post 
operation hooks.

Appreciate your help

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/551D8399.2050008%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins 1.596 script won't run with security configured

2015-04-02 Thread Eric Pyle
See Authenticating Scripted Clients 
https://wiki.jenkins-ci.org/display/JENKINS/Authenticating+scripted+clients 
page on the wiki.


On 4/2/2015 12:22 PM, Murthy Gandikota wrote:

Hi All

I am trying to run a shell script in a project as root. Without 
security enabled it runs fine.
With security using Jenkins database -- no fancy LDAP or 
anything--- enabled, the script fails thus:


$ /bin/sh -xe /tmp/hudson8715135757129650687.sh
+ echo root
root
+ chmod a+x ./myscript.sh
+ ./myscript.sh
--2015-04-01 23:35:54-- 
_http://ci.westechdev.org:8080/job//backup-jenkins-jobs/config.xml_

Resolving ci.mycom.org... 192.168.100.1
Connecting to ci.westechdev.org|192.168.100.1|:8080... connected.
HTTP request sent, awaiting response... 403 Forbidden
2015-04-01 23:35:54 ERROR 403: Forbidden.

Can anyone help?

Thanks
murthy
--
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 
mailto:jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/77fc4aec-b6ab-4828-9a83-01def2d05263%40googlegroups.com 
https://groups.google.com/d/msgid/jenkinsci-users/77fc4aec-b6ab-4828-9a83-01def2d05263%40googlegroups.com?utm_medium=emailutm_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/551D84F8.9000107%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can't Find MSBuild in configuration

2015-03-31 Thread Eric Pyle
You probably need to install the MSBuild Plugin 
https://wiki.jenkins-ci.org/display/JENKINS/MSBuild+Plugin. Check 
Manage JenkinsManage PluginsInstalled to see whether it's installed, 
use the Available tab to install it if needed.


Eric

On 3/31/2015 3:16 PM, Anthony Stavile wrote:


I ran jenkins-1.607.msi and can't find MSBuild in the configuration.

Please see the attached for what I respect to see vs. what's there.

I’m new to Jenkins so I have no idea with respect to what to do.

Thanks in advance for your help.

--
You received this message because you are subscribed to the Google 
Groups Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to jenkinsci-users+unsubscr...@googlegroups.com 
mailto:jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/a6e04665-60d7-47b0-8bec-e4f579a9abab%40googlegroups.com 
https://groups.google.com/d/msgid/jenkinsci-users/a6e04665-60d7-47b0-8bec-e4f579a9abab%40googlegroups.com?utm_medium=emailutm_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/551AF3D8.5000801%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: re-run build step if failed

2015-03-27 Thread Eric Pyle
You would need to configure the retry completely within the build step 
then, using a bash script or something similar. You would perform the 
build step, perhaps in a separate script, and check the status when it 
returns. If it failed, you could perform cleanup if needed and retry.


Eric

On 3/26/2015 8:53 AM, Shurik wrote:

Hi,

I have the job that has shell build step.

I want to re-run this build step if it failed on the first time.

I need to configure it on the same job ( I can't define other job for 
it or use the naginator plugin - project restriction )


How can I configure it?

Thanks,
Shurik
--
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 
mailto:jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c9c2d3d6-0656-482a-9f8a-b591d326b002%40googlegroups.com 
https://groups.google.com/d/msgid/jenkinsci-users/c9c2d3d6-0656-482a-9f8a-b591d326b002%40googlegroups.com?utm_medium=emailutm_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/55155EF6.2030001%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Cannot change width of Execute shell text box on configure page for a project

2015-03-25 Thread Eric Pyle
Although I know it's not the same thing, you could build up a string 
variable containing pieces of the command and then run that. You should 
also upgrade to 1.601 because there are some known issues with 1.600.


cmdline=blah ddd  xxx etc etc etc
cmdline=${cmdline} more command and args etc
$cmdline

Eric

On 3/25/2015 11:24 AM, Bryan Adams wrote:

I'd like to see this functionality come back as well.

On Wednesday, March 25, 2015 at 8:28:08 AM UTC-5, Aidan Semple wrote:

I'm running Jenkins 1.600 and am currently setting up a new
project with rather a long command to put in to one of the Execute
Shell text boxes.
Unfortunately the command is so long it extends the width of the
text box considerably messing up the display of the project in my
browser so it is harder to read. This happens in IE, Chrome and
Firefox. I am not able to shrink the width of the text box (only
the height).

However in Jenkins 1.544 I could change the width and the command
would wrap accordingly. Well this was using firefox but does not
work in IE or chrome.
Any ideas on what I need to do to fix this? It could be browser
related or even Jenkins, but would be grateful for any tips.
Thanks in advance
Aidan

--
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 
mailto:jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/e1ee4648-6e1c-4950-9fcf-6c87099d2d9d%40googlegroups.com 
https://groups.google.com/d/msgid/jenkinsci-users/e1ee4648-6e1c-4950-9fcf-6c87099d2d9d%40googlegroups.com?utm_medium=emailutm_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/5512D4EC.4070608%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Slave not connecting - Windows Server 2012 Message not found for errorCode: 0x80010105

2015-03-23 Thread Eric Pyle
Have a look at 
https://wiki.jenkins-ci.org/display/JENKINS/Windows+slaves+fail+to+start+via+DCOM. 
Also https://issues.jenkins-ci.org/browse/JENKINS-22314 may be helpful.


Eric

On 3/23/2015 11:31 AM, VFloyd wrote:

Message not found for errorCode: 0x80010105


--
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/55103935.9030606%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to add files as artifacts to a build

2015-02-11 Thread Eric Pyle
Can you run these additional batch jobs as a build step in your Jenkins 
job? Then you can archive their output in addition to whatever results 
are produced by the plugin.


Eric

On 2/11/2015 10:42 AM, bruno.mart...@liebherr.com wrote:

Hi everyone,
I'm currently using the PRQA plugin (a static code analysis tool), and 
some features are not available yet. Among other things, only one kind 
of report is generating. This specific report is placed as an artifact 
into the job workspace. I know how to generate more reports with a 
batch. But this batch doesn't belong to the plugin, and these 
additionnal reports won't be considered as artifacts. I can move them 
to the workspace of the job, but it doesn't change anything.
I would like to add these additionnal files to the related build, I 
would like them to be considered as artifacts of this build. So that I 
can find them by clicking on the build they belong to.
How to do this, how to link files to a build when these files are not 
artifacts ?

Thanks in advance,
Bruno
--
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 
mailto:jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b88c1cfa-96c3-4c98-aba2-9f80ff37a518%40googlegroups.com 
https://groups.google.com/d/msgid/jenkinsci-users/b88c1cfa-96c3-4c98-aba2-9f80ff37a518%40googlegroups.com?utm_medium=emailutm_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/54DB7F05.8060401%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: ssh plugin terminates and kills my daemon process

2015-01-21 Thread Eric Pyle

Perhaps you need to start the tomcat server with nohup?

On 1/21/2015 1:46 PM, Eric Wood wrote:

I'm using a ssh plugin to start a tomcat server.

I call a command that ends up calling the tomcat startup shell script. 
 Once the call to the startup script is made I call an additional 
script in the same ssh execution that  goes out and runs a curl 
command to see when the server is responding with a 200 status code. 
 Once that happens, I terminate the ssh connection.  At this point it 
seems to kill the tomcat server.  I can tail the catalina.out file and 
see when the server starts and then shuts down.


What is the proper process for keeping this process alive?


--
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 
mailto:jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/44378829.2770454.1421866017276.JavaMail.yahoo%40jws10036.mail.ne1.yahoo.com 
https://groups.google.com/d/msgid/jenkinsci-users/44378829.2770454.1421866017276.JavaMail.yahoo%40jws10036.mail.ne1.yahoo.com?utm_medium=emailutm_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/54C00391.3090505%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Simple way to temporary exclude job from running on a node in a label group

2014-12-19 Thread Eric Pyle
I'd think you can change jobA's label specification (in Restrict where 
this job can run) like this:


general!nodeA

Eric

On 12/19/2014 4:45 AM, Christian wrote:

Hi!

I wan't to be able to temporary exclude a specific job from running on 
a node in a label group.


jobA, jobB, jobC are tied to run on label general
nodeA,nodeB,nodeC have the label general on them.

Let's say that jobA starts to fail consistently on nodeA.
Is there some easy way to configure that jobA should temporarily only 
run on nodeB and node C and that jobB/C should still run on all nodes 
in label general?


The only solutions that I see today are taking nodeA offline for all 
jobs or reconfigure many jobs or nodes which is pretty time consuming.


An ideal situation would be to have a configuration on the node:
Exclude job with name: jobA

Thanks,
Christian



--
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 
mailto:jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAHcVhVkp4-bvfy2Ri6foTfuNpKATczVZxt6FFhT%2B-5SeBr%2BUeQ%40mail.gmail.com 
https://groups.google.com/d/msgid/jenkinsci-users/CAHcVhVkp4-bvfy2Ri6foTfuNpKATczVZxt6FFhT%2B-5SeBr%2BUeQ%40mail.gmail.com?utm_medium=emailutm_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/54943BCD.9040601%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Blocked Sign-Up to Jenkins JIRA

2014-12-17 Thread Eric Pyle
Seems like you should email that jenkinsci-...@googlegroups.com as 
mentioned in the message.


On 12/17/2014 11:09 AM, Tim Benke wrote:

Hello,

I'd like to comment on a  jenkins plugin JIRA issue 
https://issues.jenkins-ci.org/browse/JENKINS-21221, but JIRA doesn't 
accept new registrations with the message:




  Oops!

Due to the spam problem, we need additional verification for your 
sign-up request. Please contact jenkinsci-...@googlegroups.com 
mailto:jenkinsci-...@googlegroups.com



What to do?

Regards,

Tim Benke

--
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 
mailto:jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6321beeb-19fd-49cd-8eb6-b1275dd5b7fe%40googlegroups.com 
https://groups.google.com/d/msgid/jenkinsci-users/6321beeb-19fd-49cd-8eb6-b1275dd5b7fe%40googlegroups.com?utm_medium=emailutm_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/5491AAEF.6080901%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Job Creating Multiple Workspaces

2014-12-12 Thread Eric Pyle
Check and see if you have allowed concurrent builds on this job. That's
what Jenkins will do to avoid workspace collisions with concurrent builds.

Eric
On Dec 12, 2014 6:35 PM, Leah l...@wolfssl.com wrote:

 Hi, I have a Jenkins freestyle job that is creating a new workspace each
 time I run it. Each workspace is named workspace@number. I am not sure
 how to eliminate this procedure as I have trying to attach a file from the
 original workspace and it is not possible when it build in a new workspace
 each time. Does anyone know why this is happening?


 --

 Leah Thompson
 www.wolfssl.com
 l...@wolfssl.com
 406-570-1389
 Skype: lchristina26


  --
 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/CAL0pqZ34q2rW9n1utWL9XUH4iu1h9%3D2svBHWJwiU25%2B%2B3B7a2Q%40mail.gmail.com
 https://groups.google.com/d/msgid/jenkinsci-users/CAL0pqZ34q2rW9n1utWL9XUH4iu1h9%3D2svBHWJwiU25%2B%2B3B7a2Q%40mail.gmail.com?utm_medium=emailutm_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/CAPrXuH0ja-h9ycm4A-%2B7fL-fUoAmNh2_HKz5%3DFLO%3D%2B%2BCx39dCA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Errors with Mailer on 1.580.1

2014-11-18 Thread Eric Pyle
I think you misread the versions of the Mailer plugin. 1.12 (one dot 
twelve) is a higher version than 1.8 because 12  8. And from the errors 
you are getting after disabling the mailer plugin, it sounds like the 
Jenkins security depends on something in the mailer plugin, which makes 
sense because Mailer is bundled. So I would go back and install the 
mailer plugin 1.12 and then you should be able to work with security again.


Eric

On 11/18/2014 1:08 PM, S Day wrote:
we recently upgraded our jenkins to 1.580.1  from version 1.532.2 and 
have had lots of issues with mailer,


we have 1.8 installed, however when I go into jenkins I get

This version of Jenkins comes with new versions of the following 
plugins that are currently pinned 
https://wiki.jenkins-ci.org/display/JENKINS/Pinned+Plugins in the 
plugin manager http://cc.velir.com:8080/pluginManager/. It is 
recommended to upgrade them to at least the version bundled with Jenkins.


  * Jenkins Mailer Plugin

When I go into plugins though it says I can upgrade to 1.12 and I have 
(1.8) in parentheses installed


(it seems like it wants me to go back versions?)

So next I went into instealled plugins and tried to disabled mailer

after doing that in restarting jenkins I now get a screen that says I 
can't even start jenkins!!


http://cc.velir.com:8080/j_acegi_security_check

java.lang.NoClassDefFoundError: hudson/tasks/Mailer$UserProperty
at 
hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:296)
at 
hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:193)
at 
hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:137)
at 
org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:122)
at 
org.acegisecurity.providers.ProviderManager.doAuthentication(ProviderManager.java:200)
at 
org.acegisecurity.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:47)
at 
org.acegisecurity.ui.webapp.AuthenticationProcessingFilter.attemptAuthentication(AuthenticationProcessingFilter.java:74)
at 
org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:252)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:86)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
at 
hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at 
hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at 
org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at 
hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474)
at 
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at 
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)
at 
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at 
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
at 
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
at 
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at 
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:370)
at 
org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
at 
org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:960)
at 

Re: groovy script problem

2014-10-22 Thread Eric Pyle
It's true - you can't actually update a parameter list in-place. You 
have to create a new one to replace the old one. Here's how I did it, 
based on some code I found from a 2012 question 
https://groups.google.com/forum/#%21topic/jenkinsci-users/szhuDfCvpiE 
on this group. This code will update existing parameters.


def setBuildParameters(parmMap) {
  // only supports StringParameterValue
  def npl = new ArrayListStringParameterValue()
  for (k in parmMap.keySet()) {
 npl.add(new StringParameterValue(k, parmMap.get(k)))
  }//end for
  def newPa = null
  def oldPa = build.getAction(ParametersAction.class)

  if (oldPa != null) {
for (oldp in oldPa) {
  if (! parmMap.containsKey(oldp.name)) {  //oldp was not 
overridden by the new list

npl.add(oldp)
  }//end if
}//end for
build.actions.remove(oldPa)
  }//end if
  newPa = new ParametersAction(npl)
  build.actions.add(newPa)
}

new_params = new java.util.HashMap();
new_params.put('INSTALL_HOME',install_home);
new_params.put('COMPILER',compiler);
new_params.put('COMPILER_OPT',compiler_opt);
setBuildParameters(new_params);





On 10/22/2014 1:36 PM, Ginga, Dick wrote:


I am admittedly a novice at Groovy but this script does not complain 
about the put operation but does not apparently perform it:


label-name is a parameter in that build.

*Dick Ginga, Informatics RD*

*PerkinElmer Inc. **| For the Better
**HUMAN HEALTH **|ENVIRONMENTAL HEALTH*
940 Winter Street, Waltham MA 02451

_dick.ging...@perkinelmer.com mailto:ed.cof...@perkinelmer.com_

Mobile -- 508-847-1434

Office -- 781-663-6947

--
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 
mailto:jenkinsci-users+unsubscr...@googlegroups.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.
For more options, visit https://groups.google.com/d/optout.


Re: Removing old jobs from Jenkins

2014-09-20 Thread Eric Pyle
I should mention I tested this in Manage Jenkins/Script Console. If you 
run it from there you don't need any imports.


Documentation is in the Jenkins Javadoc http://javadoc.jenkins-ci.org.


On 9/19/2014 6:39 PM, Alex Brodov wrote:


Do you know where can I find some documentation for this ?
What packages should i import?


Thanks,
Alex

On Sep 18, 2014 11:37 PM, Eric Pyle eric.p...@cd-adapco.com 
mailto:eric.p...@cd-adapco.com wrote:


Something like this. For safety, I've written this to print out
the list of builds it would delete. Uncomment the delete() line to
actually delete builds. As written this would delete the 10 oldest
builds of all jobs. If you wanted to delete a specified range of
builds of a particular job, it would be a matter of adding a
condition of $item.name http://item.name == theJob, then use a
for loop corresponding to the desired range. You would not need to
sort the builds if you know specific build numbers.

Eric

for (item in Hudson.instance.items) {
  builds = item.getBuilds().sort {it.number}
  for (i = 0;i  10  i  builds.size();i++) {
bli = builds[i];
if (bli != null) {
  b = item.getBuildByNumber(bli.number);
  //if (b != null) {b.delete()}
  if (b != null) {println Deleting $item.name
http://item.name build # $b.number;}
}
  }
}

On 9/18/2014 1:36 PM, Alex Brodov wrote:

Hi Eric,
I want to delete in every job the first 10 [1-10] builds but i
don't wnat to go over every job (i have more then 150 jobs) and
do that, there is any way to do that using a script or  jenkins
CLI command or groovy script?
2nd thing is how can i delete a specified range of builds in a
specific job with a provided job name


On Thu, Sep 18, 2014 at 6:23 PM, Eric Pyle
eric.p...@cd-adapco.com mailto:eric.p...@cd-adapco.com wrote:

If you want to save only the 10 most recent builds, go into
the job configuration and check the Discard Old Bulds box,
and set Max # of builds to keep to 10. Be sure to save your
changes. No builds will be deleted until the next time the
job is run.

Regards,
Eric

On 9/18/2014 11:05 AM, Alex Brodov wrote:

I have a lot of jobs in jenkins, i'd like to know how can i
shelve them, as far as i know there is a way tu run a script
in Jenkins that will do that, for example if i have job 'x'
that has 100 builds and job 'y' that has 120 builds and i
want to make a rule that will delete all the builds log
untill 10, any idea how should i do that ?
-- 
You received this message because you are subscribed to the

Google Groups Jenkins Users group.
To unsubscribe from this group and stop receiving emails
from it, send an email to
jenkinsci-users+unsubscr...@googlegroups.com
mailto:jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to a

topic in the Google Groups Jenkins Users group.
To unsubscribe from this topic, visit

https://groups.google.com/d/topic/jenkinsci-users/4YoeGZSaDT8/unsubscribe.
To unsubscribe from this group and all its topics, send an
email to jenkinsci-users+unsubscr...@googlegroups.com
mailto:jenkinsci-users+unsubscr...@googlegroups.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
mailto:jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to a topic in

the Google Groups Jenkins Users group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/jenkinsci-users/4YoeGZSaDT8/unsubscribe.
To unsubscribe from this group and all its topics, send an email
to jenkinsci-users+unsubscr...@googlegroups.com
mailto:jenkinsci-users+unsubscr...@googlegroups.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.
For more options, visit https://groups.google.com/d/optout.


Re: Removing old jobs from Jenkins

2014-09-20 Thread Eric Pyle

And the language is Groovy http://groovy.codehaus.org/Documentation.

On 9/19/2014 6:39 PM, Alex Brodov wrote:


Do you know where can I find some documentation for this ?
What packages should i import?


Thanks,
Alex

On Sep 18, 2014 11:37 PM, Eric Pyle eric.p...@cd-adapco.com 
mailto:eric.p...@cd-adapco.com wrote:


Something like this. For safety, I've written this to print out
the list of builds it would delete. Uncomment the delete() line to
actually delete builds. As written this would delete the 10 oldest
builds of all jobs. If you wanted to delete a specified range of
builds of a particular job, it would be a matter of adding a
condition of $item.name http://item.name == theJob, then use a
for loop corresponding to the desired range. You would not need to
sort the builds if you know specific build numbers.

Eric

for (item in Hudson.instance.items) {
  builds = item.getBuilds().sort {it.number}
  for (i = 0;i  10  i  builds.size();i++) {
bli = builds[i];
if (bli != null) {
  b = item.getBuildByNumber(bli.number);
  //if (b != null) {b.delete()}
  if (b != null) {println Deleting $item.name
http://item.name build # $b.number;}
}
  }
}

On 9/18/2014 1:36 PM, Alex Brodov wrote:

Hi Eric,
I want to delete in every job the first 10 [1-10] builds but i
don't wnat to go over every job (i have more then 150 jobs) and
do that, there is any way to do that using a script or  jenkins
CLI command or groovy script?
2nd thing is how can i delete a specified range of builds in a
specific job with a provided job name


On Thu, Sep 18, 2014 at 6:23 PM, Eric Pyle
eric.p...@cd-adapco.com mailto:eric.p...@cd-adapco.com wrote:

If you want to save only the 10 most recent builds, go into
the job configuration and check the Discard Old Bulds box,
and set Max # of builds to keep to 10. Be sure to save your
changes. No builds will be deleted until the next time the
job is run.

Regards,
Eric

On 9/18/2014 11:05 AM, Alex Brodov wrote:

I have a lot of jobs in jenkins, i'd like to know how can i
shelve them, as far as i know there is a way tu run a script
in Jenkins that will do that, for example if i have job 'x'
that has 100 builds and job 'y' that has 120 builds and i
want to make a rule that will delete all the builds log
untill 10, any idea how should i do that ?
-- 
You received this message because you are subscribed to the

Google Groups Jenkins Users group.
To unsubscribe from this group and stop receiving emails
from it, send an email to
jenkinsci-users+unsubscr...@googlegroups.com
mailto:jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to a

topic in the Google Groups Jenkins Users group.
To unsubscribe from this topic, visit

https://groups.google.com/d/topic/jenkinsci-users/4YoeGZSaDT8/unsubscribe.
To unsubscribe from this group and all its topics, send an
email to jenkinsci-users+unsubscr...@googlegroups.com
mailto:jenkinsci-users+unsubscr...@googlegroups.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
mailto:jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to a topic in

the Google Groups Jenkins Users group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/jenkinsci-users/4YoeGZSaDT8/unsubscribe.
To unsubscribe from this group and all its topics, send an email
to jenkinsci-users+unsubscr...@googlegroups.com
mailto:jenkinsci-users+unsubscr...@googlegroups.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.
For more options, visit https://groups.google.com/d/optout.


  1   2   >