Re: Build Not failing when Jmeter test in Jenkins fail

2017-02-03 Thread Fritz Elfert
When executing a shell, jenkins uses the exit code for determining
success/failure. So:

=> Change your shell script so that it exits with an non-zero exitcode
in case of failure.

CU
 -Fritz

On 04.02.2017 07:45, ssitaramasas...@gmail.com wrote:
> Hi,
> 
> I have Jenkins running as Container in docker, I have setup Jmeter
> environment with one test case and ran it from Jenkins 'Execute Shell',
> it runs fine but I intentionally set the test case to fail, so it fails.
> My expectatation was that Jenkins would stop build and throw an error
> but it says build success. How can I make it to fail ?
> 
> [JMeterTest] $ /bin/sh -xe /tmp/hudson1222895905918381553.sh
> + cd apache-jmeter-3.1/bin
> + sh jmeter.sh -n -t TestCases/TestLoop.jmx -l TestCases/results.jtl
> Writing log file to: 
> /var/jenkins_home/workspace/JMeterTest/apache-jmeter-3.1/bin/jmeter.log
> Creating summariser 
> Created the tree successfully using TestCases/TestLoop.jmx
> Starting the test @ Sat Feb 04 06:39:39 UTC 2017 (1486190379864)
> Waiting for possible Shutdown/StopTestNow/Heapdump message on port 4445
> summary =  1 in 00:00:00 =3.3/s Avg:72 Min:72 Max:72 
> *Err: 1 (100.00%)*
> Tidying up ...@ Sat Feb 04 06:39:40 UTC 2017 (1486190380235)
> ... end of run
> Finished: SUCCESS
> 
> 
> 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/43119f00-6d23-4272-a693-f1cf5f4d56cd%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/09859e1c-abdc-e812-253a-14cdf4435b3c%40fritz-elfert.de.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Build Not failing when Jmeter test in Jenkins fail

2017-02-03 Thread ssitaramasastri
Hi,

I have Jenkins running as Container in docker, I have setup Jmeter 
environment with one test case and ran it from Jenkins 'Execute Shell', it 
runs fine but I intentionally set the test case to fail, so it fails. My 
expectatation was that Jenkins would stop build and throw an error but it 
says build success. How can I make it to fail ?

[JMeterTest] $ /bin/sh -xe /tmp/hudson1222895905918381553.sh
+ cd apache-jmeter-3.1/bin
+ sh jmeter.sh -n -t TestCases/TestLoop.jmx -l TestCases/results.jtl
Writing log file to: 
/var/jenkins_home/workspace/JMeterTest/apache-jmeter-3.1/bin/jmeter.log
Creating summariser 
Created the tree successfully using TestCases/TestLoop.jmx
Starting the test @ Sat Feb 04 06:39:39 UTC 2017 (1486190379864)
Waiting for possible Shutdown/StopTestNow/Heapdump message on port 4445
summary =  1 in 00:00:00 =3.3/s Avg:72 Min:72 Max:72 *Err:  
   1 (100.00%)*
Tidying up ...@ Sat Feb 04 06:39:40 UTC 2017 (1486190380235)
... end of run
Finished: SUCCESS


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/43119f00-6d23-4272-a693-f1cf5f4d56cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline, parallel, and junit = broken

2017-02-03 Thread Daniel Beck

> On 03.02.2017, at 17:48, Thorsten Meinl  wrote:
> 
> also sometimes the display is just wrong (depending on which parallel branch 
> is collected the last).

This could be https://github.com/jenkinsci/junit-plugin/pull/63 which will be 
fixed in the next JUnit plugin release.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/2641DB23-1843-4704-B87C-0100BEC5F5F4%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Problem with build step - Windows Batch Command

2017-02-03 Thread ssitaramasastri
Hi,

I got you. Thank you so much for your help.

Sitaram.

On Friday, February 3, 2017 at 1:51:18 AM UTC-6, Daniel Beck wrote:
>
>
> > On 03.02.2017, at 05:39, ssitara...@gmail.com  wrote: 
> > 
> > I gave a basic command echo "Hello" but I am getting the following 
> error... I believe it is expecting cmd.exe to be in my work space??? 
>
> Windows batch scripts need to run on Windows nodes -- as you can see from 
> the workspace path, it's a Linux system. 
>
>

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


Need Java Lead with Testing ( Automation - Selenium ), Bellevue WA 98008 - Infosys

2017-02-03 Thread shankar gyara
Hello Professionals, Hope you doing great.



This is in reference to the below job opportunity for you as *Java Lead
with Testing ( Automation - Selenium  ), Bellevue WA 9800*, USA if you are
interested and comfortable then please respond  with your updated word
format resume along with your contact information so that I can give you a
call at your convenient time to discuss further in regards to the position.



Request ID: 5012-1

Work Location: Bellevue, WA 98008



Job Title: IT - Technology Lead | Java | J2EE





Work Location & Address* Bellevue WA 98008



Are you flexible on the rate? (Yes/ No)* Yes



Contract duration (in  months)* 6+ Months



Job Details:



Must Have Skills (Top 3 technical skills only) * 1. Automation Testing

2. Selenium 3. Java Nice to have skills (Top 2 only) 1.

2.

Detailed Job Description:

Must have Java core Java with mandatory on Servlets, Filters, JS,

JQuery, HTML5, CSS competencies. Competency in Angular.JS is also

required Dev lead would have high competency in hybrid apps with some

experience in native app design and development Android and iOS. The

Dev lead wont be writing native app code, but they will be interfacing

with the team that does so that is why I am requesting some

experience. Dev lead should also be able to demonstrate high competency in
Oath Experience in lead



Desired years of experience*:

Above 8 years

Education/ Certifications (Required): BE







Thanks & Regards,

Shankar Gyara
Agile Enterprise Solutions Inc

PH: 972-427-1842
E-mail:  shankar_gy...@aesinc.us.com || www.aesinc.us.com

Note: If you have received this mail in error or prefer not to receive such
emails in the future, please reply with "REMOVE" in the subject line and
the email id(s) to be removed. All removal requests will be honored ASAP.
We sincerely apologize for any inconvenience caused.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CACacYuOOWgLXRcR8ctDaAih9g07FQNR4G9qpVdfuTg2XZ%2B6X%3DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Diagnosing memory leaks

2017-02-03 Thread Jacob Weber
I'm running Jenkins 2.3.7 on CentOS 6.8. Lately Jenkins has started running 
out of heap space repeatedly. I've increased the max heap size, but it 
still eventually fills it up. I've installed the Monitoring plugin, and I 
can see the "used memory" steadily increasing after every restart.

Is there any way to help figure out what's causing this? I assume it's a 
plugin, or it would be happening to more people. Do I just need to keep 
disabling plugins until I find the culprit, or is there an easier way?

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


Re: How to get ip(public or private of one EC2 node and pass it to second

2017-02-03 Thread Moshe Zuisman
Some additional thought. 
If there is some way to pass to slave information about jenkins server, 
that manages it - it could give a kind of workaround. For example I can 
start some web server or my_sql db server at jenkins node. And bootstrup 
script that deploy slaves can when deploying sserver node put its ip at 
those server, and client bootstrup script get from there server's ip..

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4263d2b2-d525-4412-a2a7-60c416fbdb74%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get ip(public or private of one EC2 node and pass it to second

2017-02-03 Thread Moshe Zuisman
Some additional thought. 
If there is some way to pass to slave information about jenkins server, 
that manages it - it could give a kind of workaround. For example I can 
start some web server or my_sql db server at jenkins node. And bootstrup 
script that deploy slaves can when deploying sserver node put its ip at 
those server, and client bootstrup script get from there server's ip... 

пятница, 3 февраля 2017 г., 0:37:46 UTC+2 пользователь Moshe Zuisman 
написал:
>
> I am quite a new bee in jenkins. So - it can happen , that  I ask 
> something that already was asked. While - I did not find anything on those 
> or another forums or documentation.
>
> I have 2 jobs on my jenkins server. 
> One creates node (EC2 amazon Windows machine) with application server 
> installed on it.
> Second should create secondary fail-over instance, thay have to "know" 
> host of primary host (and keep it in application database).
> At batch script, that I have put in primary job definition I have run 
> power shell job that prints public host name of primary host into stdout. 
> So - when I look at job stdout - I can copy from there those public IP.
> Than I edit job definition of secondary node and put there primary host 
> ip...
> So - I can run my tests half automatically , but it require manual 
> involvement in secondary node job, and prevent automatic execution of tests.
> Is there any way to store those primary host ip during run of primary job 
> run(in some jenkins intenal variables , storage , whatever) of even let us 
> say file/local db - at machine running jenkins server. So - that later 
> secondary job whould be able to get it automatically without human 
> involvement...
>
> To get it clear. I can not run primary job in advance and keep it alive 
> with constant IP. Since all those test is test of ongoing development 
> builds - both instances have to be each time recreated from scratch, since 
> they are each time installed from last development build.
> Thanks in advance 
>

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


Re: Pipeline problem after upgrading

2017-02-03 Thread Guy Knights
I just found this jira ticket:
https://issues.jenkins-ci.org/browse/JENKINS-41339. Using the
PATH+EXTENSION=/extension syntax in my System config -> Environment
Variables fixed the problem for me.

On Thu, Feb 2, 2017 at 4:27 PM, Guy Knights  wrote:

> I upgraded some of my pipeline plugins (there were some groovy module
> upgrades I believe, unfortunately I don't have a list of what was upgraded)
> and suddenly my build pipelines no longer work and are throwing the
> following error:
>
> Running on master in /var/jenkins_home/jobs/Project1/jobs/API -
> Deploy/workspace
> [Pipeline] {
> [Pipeline] sh
> [workspace] Running shell script
> nohup: failed to run command ‘sh’: No such file or directory
> [Pipeline] }
> [Pipeline] // node
> [Pipeline] }
> [Pipeline] // stage
> [Pipeline] End of Pipeline
> ERROR: script returned exit code -2
> Finished: FAILURE
>
> Does anyone know why?
>
> Thanks,
> Guy
>

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


Re: User not passing to job history if submitted by URL?

2017-02-03 Thread Don Alcombright
how do I tell it what do build without the build token? I thought that was 
required for remote building?

On Friday, February 3, 2017 at 10:21:43 AM UTC-5, Daniel Beck wrote:
>
> Could be related to use of the build token. Try without, and make sure 
> your user has Build permission. 
>
> > On 03.02.2017, at 16:01, Don Alcombright  > wrote: 
> > 
> > 
> http://username:TOKEN@MACHINENAME:8080/job/CATRADER%20Suite%20Builder/buildWithParameters?token=ctbuild=False=True=False=False=Nightly=Automation=Nightly=\\PATHTOFOLDER=2015_Recipients=
> bl...@blah.com  
> > 
> > All it says next to the user is N/A, if I login to jenkins and kick it 
> off it gets my AD user like it should. 
>
>

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


Blueocean - Cloud Foundry plugin for Jenkinsfile pipeline

2017-02-03 Thread Sekhar Kari
Installed Blueocean from the docker image docker pull jenkinsci/blueocean. 
I wanted to include a Cloud Foundry Deployment step(sh cf push) in my 
pipeline and stuck with the error 
script.sh: line 1: cf: not found

I knew what's happening - as there is no compatiable CF CLI plug-in the 
script command CF is not working. And I tried different things,

1)  In my Jenkinsfile, I Tried using the the Cloud foundry plug-in(
CloudFoundryPushPublisher) which is supported in non-pipeline build. And 
that didn't help.
step([$class: 'com.hpe.cloudfoundryjenkins.CloudFoundryPushPublisher',

target: 'https://api.ng.bluemix.net',

organization: '',

cloudSpace: 'x',

credentialsId: 'xx',

selfSigned: true,

resetIfExists: true]); - that failed with 'Invalid Argument 
exception'



My question is, I heared Cloudbee's has a commericial version that supports 
CF CLI, but that ability is missing from blueocean. So how should I be able 
to push the deployments to cloud foundry using Pipleline job.


Thanks,

Sekhar.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ce6a27c1-3e6d-49c9-856a-6950e147fd84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Build pipeline plugin can't find downstream job for manual trigger

2017-02-03 Thread Guy Knights
Right, sorry - I'm using the folders plugin:

https://wiki.jenkins-ci.org/display/JENKINS/CloudBees+Folders+Plugin

That's what I was referring to.

Regards,
Guy

On Wed, Feb 1, 2017 at 7:59 AM, Peter Nelissen 
wrote:

> What do you mean with the folder? The project name? Pipeline name?
>
> Thanks!
> Peter
>
> On Monday, 18 July 2016 21:38:58 UTC+2, Guy Knights wrote:
>>
>> For anyone else dealing with this issue, I found the solution. I recently
>> moved to using folders in Jenkins 2.x, and it's necessary to specify the
>> folder name in the downstream job text field for the post-build action, but
>> only for the manual trigger. I found this info here:
>> https://issues.jenkins-ci.org/browse/JENKINS-34099.
>>
>> On Thursday, July 14, 2016 at 4:04:30 PM UTC-7, Guy Knights wrote:
>>>
>>> In Jenkins 2.7.1 with build-pipeline plugin 1.5.3.1 I'm trying to set a
>>> manual downstream trigger for a job using the "Build other projects (manual
>>> step)" post-build action, but it can't seem to find any projects in the
>>> same folder, and if I type the name in manually it gives me a "No such
>>> project" error like so:
>>>
>>> *No such project ‘CLIENT - Deploy to production’. Did you mean ‘CLIENT -
>>> Deploy to production?*
>>>
>>> As you can see, the name it suggests is the same as the name it says it
>>> can't find, which is perplexing. I try copying the name it suggests into
>>> the downstream project names box, but it still gives me the same error.
>>>
>>> If I use the "Trigger parameterized build on other projects" post-build
>>> action instead, it finds all the projects fine and I can use this method,
>>> but of course it executes without manual intervention, which is not what
>>> I'm after. I used to run Jenkins 1.65 and this worked fine, so I'm
>>> wondering if it's a bug related to this new Jenkins version. Does anyone
>>> know how to fix this?
>>>
>>> Thanks,
>>> Guy
>>>
>>> --
> 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/0XUAK0Imvn8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/15f2207c-bf43-46b9-86dd-9f0d80144687%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/CANNH9msFcvnT%2Bhk9Vcu6t_RmRSDds9FLziz_%3DgB%3D8s_32kpqCw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Pipeline, parallel, and junit = broken

2017-02-03 Thread Thorsten Meinl
I've read on several places that matrix jobs in pipeline are replaced by 
the "parallel" step. However, this doesn't work at all with junit tests. We 
have a bunch of JUnit tests that are tested on different OS. They are 
exactly the same tests for all OS, hence also the output file names are 
identical. This wasn't a problem with matrix jobs because every axis was 
treated as an independent job and you could easily browser the tests for 
every configuration. With a parallel pipeline this isn't possible because 
all result files collect by "junit" are thrown together which makes it 
impossible to distinguish and also sometimes the display is just wrong 
(depending on which parallel branch is collected the last). In short, 
parallel is totally useless in such cases.
Now I'm wondering if there are any plans to address this issue (I guess 
many users have the same problem) or if there is another approach to run 
the same tests on several OS with a pipeline job.

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


Re: Slave hang

2017-02-03 Thread jerome
Finally find the problem. Seem like my mount drive under Linux was under 
heavy usage (the polling was occurring at the same time the IT was doing 
big backup) and therefor the Master Disk IO could not follow to write the 
jobs and the RAM vm.dirty_ was flooded. Making the build to hang.

So I changed the polling cron to avoid the conflict, but still a little 
weird that it doesn't suspend the slave until it can recover. So if the 
salve can flood the master disk IO the build hang and never recover.

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


Re: GoogleRobotPrivateKeyCredentials AccountIdNotSetException

2017-02-03 Thread work monitored
I have verified that the json file contains the client_email key and the 
private key so I am a bit clueless at this point about why it is 
complaining about the accountIdNotSetException. Is there a debug flag I can 
use to see what's going behind the scenes?

On Friday, 3 February 2017 08:57:56 UTC-7, work monitored wrote:
>
> I am having trouble with Jenkins Google Oauth Credentials Plugin. I have 
> created a storage account service account and downloaded the JSON but I am 
> getting an accountIdNotSetException. What was the credential you picked to 
> fix it?
>
> On Wednesday, 16 September 2015 23:45:46 UTC-6, Andreas Schuldei wrote:
>>
>> aparently i had created the wrong type of credential for this kind of 
>> interaction. selecting an other credential helped over this hurdle.
>>
>> On Wednesday, September 16, 2015 at 2:16:04 PM UTC+2, Andreas Schuldei 
>> wrote:
>>>
>>> hi,
>>>
>>> i am setting up a CI pipeline that creates docker images, uploads them 
>>> to my google docker registry/repository and then redeploys my webapp. 
>>>
>>> Right now I work on the docker push step, which fails with this stack 
>>> trace:
>>>
>>>  ERROR: Build step failed with exception
>>>
>>> com.google.jenkins.plugins.credentials.oauth.GoogleRobotPrivateKeyCredentials$AccountIdNotSetException
>>> at 
>>> com.google.jenkins.plugins.credentials.oauth.GoogleRobotPrivateKeyCredentials.getGoogleCredential(GoogleRobotPrivateKeyCredentials.java:181)
>>> at 
>>> com.google.jenkins.plugins.credentials.oauth.GoogleRobotPrivateKeyCredentials.getGoogleCredential(GoogleRobotPrivateKeyCredentials.java:45)
>>> at 
>>> com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials.getAccessToken(GoogleRobotCredentials.java:100)
>>> at 
>>> com.google.jenkins.plugins.googlecontainerregistryauth.GoogleContainerRegistryCredentialModule.getToken(GoogleContainerRegistryCredentialModule.java:73)
>>> at 
>>> com.google.jenkins.plugins.googlecontainerregistryauth.GoogleContainerRegistryCredential.getPassword(GoogleContainerRegistryCredential.java:224)
>>> at 
>>> com.google.jenkins.plugins.googlecontainerregistryauth.GoogleContainerRegistryTokenSource.convert(GoogleContainerRegistryTokenSource.java:48)
>>> at 
>>> com.google.jenkins.plugins.googlecontainerregistryauth.GoogleContainerRegistryTokenSource.convert(GoogleContainerRegistryTokenSource.java:32)
>>> at 
>>> jenkins.authentication.tokens.api.AuthenticationTokens.convert(AuthenticationTokens.java:148)
>>> at 
>>> jenkins.authentication.tokens.api.AuthenticationTokens.convert(AuthenticationTokens.java:110)
>>> at 
>>> org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint.getToken(DockerRegistryEndpoint.java:179)
>>> at 
>>> org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint.newKeyMaterialFactory(DockerRegistryEndpoint.java:201)
>>> at 
>>> org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint.newKeyMaterialFactory(DockerRegistryEndpoint.java:193)
>>> at 
>>> com.cloudbees.dockerpublish.DockerBuilder$Perform.executeCmd(DockerBuilder.java:381)
>>> at 
>>> com.cloudbees.dockerpublish.DockerBuilder$Perform.executeCmd(DockerBuilder.java:359)
>>> at 
>>> com.cloudbees.dockerpublish.DockerBuilder$Perform.buildAndTag(DockerBuilder.java:305)
>>> at 
>>> com.cloudbees.dockerpublish.DockerBuilder$Perform.exec(DockerBuilder.java:252)
>>> at 
>>> com.cloudbees.dockerpublish.DockerBuilder$Perform.access$100(DockerBuilder.java:233)
>>> at 
>>> com.cloudbees.dockerpublish.DockerBuilder.perform(DockerBuilder.java:208)
>>> at 
>>> hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
>>> at 
>>> hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
>>> at hudson.model.Build$BuildExecution.build(Build.java:205)
>>> at hudson.model.Build$BuildExecution.doRun(Build.java:162)
>>> at 
>>> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
>>> at hudson.model.Run.execute(Run.java:1741)
>>> at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
>>> at 
>>> hudson.model.ResourceController.execute(ResourceController.java:98)
>>> at hudson.model.Executor.run(Executor.java:408)
>>>
>>>
>>> This started happening after i deleted some unused and unrelated 
>>> credentials from the global credentials. 
>>>
>>> I am speculating that the credentials store got confused because the 
>>> AccountID is encoded in the credentials, isnt it? if not, where can i 
>>> supply it?
>>>
>>> (Before I got this error: 
>>>
>>> The push refers to a repository [
>>> eu.gcr.io/founderschair-website-01-981/website-image] (len: 1)
>>> Sending image list
>>> Error: Status 403 trying to push repository 
>>> founderschair-website-01-981/website-image: "Access denied."
>>>
>>> but i do hope I created the 

Re: GoogleRobotPrivateKeyCredentials AccountIdNotSetException

2017-02-03 Thread work monitored
I am having trouble with Jenkins Google Oauth Credentials Plugin. I have 
created a storage account service account and downloaded the JSON but I am 
getting an accountIdNotSetException. What was the credential you picked to 
fix it?

On Wednesday, 16 September 2015 23:45:46 UTC-6, Andreas Schuldei wrote:
>
> aparently i had created the wrong type of credential for this kind of 
> interaction. selecting an other credential helped over this hurdle.
>
> On Wednesday, September 16, 2015 at 2:16:04 PM UTC+2, Andreas Schuldei 
> wrote:
>>
>> hi,
>>
>> i am setting up a CI pipeline that creates docker images, uploads them to 
>> my google docker registry/repository and then redeploys my webapp. 
>>
>> Right now I work on the docker push step, which fails with this stack 
>> trace:
>>
>>  ERROR: Build step failed with exception
>>
>> com.google.jenkins.plugins.credentials.oauth.GoogleRobotPrivateKeyCredentials$AccountIdNotSetException
>> at 
>> com.google.jenkins.plugins.credentials.oauth.GoogleRobotPrivateKeyCredentials.getGoogleCredential(GoogleRobotPrivateKeyCredentials.java:181)
>> at 
>> com.google.jenkins.plugins.credentials.oauth.GoogleRobotPrivateKeyCredentials.getGoogleCredential(GoogleRobotPrivateKeyCredentials.java:45)
>> at 
>> com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials.getAccessToken(GoogleRobotCredentials.java:100)
>> at 
>> com.google.jenkins.plugins.googlecontainerregistryauth.GoogleContainerRegistryCredentialModule.getToken(GoogleContainerRegistryCredentialModule.java:73)
>> at 
>> com.google.jenkins.plugins.googlecontainerregistryauth.GoogleContainerRegistryCredential.getPassword(GoogleContainerRegistryCredential.java:224)
>> at 
>> com.google.jenkins.plugins.googlecontainerregistryauth.GoogleContainerRegistryTokenSource.convert(GoogleContainerRegistryTokenSource.java:48)
>> at 
>> com.google.jenkins.plugins.googlecontainerregistryauth.GoogleContainerRegistryTokenSource.convert(GoogleContainerRegistryTokenSource.java:32)
>> at 
>> jenkins.authentication.tokens.api.AuthenticationTokens.convert(AuthenticationTokens.java:148)
>> at 
>> jenkins.authentication.tokens.api.AuthenticationTokens.convert(AuthenticationTokens.java:110)
>> at 
>> org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint.getToken(DockerRegistryEndpoint.java:179)
>> at 
>> org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint.newKeyMaterialFactory(DockerRegistryEndpoint.java:201)
>> at 
>> org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint.newKeyMaterialFactory(DockerRegistryEndpoint.java:193)
>> at 
>> com.cloudbees.dockerpublish.DockerBuilder$Perform.executeCmd(DockerBuilder.java:381)
>> at 
>> com.cloudbees.dockerpublish.DockerBuilder$Perform.executeCmd(DockerBuilder.java:359)
>> at 
>> com.cloudbees.dockerpublish.DockerBuilder$Perform.buildAndTag(DockerBuilder.java:305)
>> at 
>> com.cloudbees.dockerpublish.DockerBuilder$Perform.exec(DockerBuilder.java:252)
>> at 
>> com.cloudbees.dockerpublish.DockerBuilder$Perform.access$100(DockerBuilder.java:233)
>> at 
>> com.cloudbees.dockerpublish.DockerBuilder.perform(DockerBuilder.java:208)
>> at 
>> hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
>> at 
>> hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
>> at hudson.model.Build$BuildExecution.build(Build.java:205)
>> at hudson.model.Build$BuildExecution.doRun(Build.java:162)
>> at 
>> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
>> at hudson.model.Run.execute(Run.java:1741)
>> at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
>> at 
>> hudson.model.ResourceController.execute(ResourceController.java:98)
>> at hudson.model.Executor.run(Executor.java:408)
>>
>>
>> This started happening after i deleted some unused and unrelated 
>> credentials from the global credentials. 
>>
>> I am speculating that the credentials store got confused because the 
>> AccountID is encoded in the credentials, isnt it? if not, where can i 
>> supply it?
>>
>> (Before I got this error: 
>>
>> The push refers to a repository [
>> eu.gcr.io/founderschair-website-01-981/website-image] (len: 1)
>> Sending image list
>> Error: Status 403 trying to push repository 
>> founderschair-website-01-981/website-image: "Access denied."
>>
>> but i do hope I created the proper OAuth credentials by now. -- is there 
>> a tutorial for that part with both the google and the jenkins side 
>> explained? i followed  
>> https://groups.google.com/forum/#!searchin/jenkinsci-users/docker$20container/jenkinsci-users/3DiEV7qQ7CM/1wHn3XzKrD4J
>>  
>> - is that state-of-the-art?)
>>
>> /andreas
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" 

Re: User not passing to job history if submitted by URL?

2017-02-03 Thread Daniel Beck
Could be related to use of the build token. Try without, and make sure your 
user has Build permission.

> On 03.02.2017, at 16:01, Don Alcombright  wrote:
> 
> http://username:TOKEN@MACHINENAME:8080/job/CATRADER%20Suite%20Builder/buildWithParameters?token=ctbuild=False=True=False=False=Nightly=Automation=Nightly=\\PATHTOFOLDER=2015_Recipients=b...@blah.com
> 
> All it says next to the user is N/A, if I login to jenkins and kick it off it 
> gets my AD user like it should.

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


Re: User not passing to job history if submitted by URL?

2017-02-03 Thread Don Alcombright
http://username:TOKEN@MACHINENAME:8080/job/CATRADER%20Suite%20Builder/buildWithParameters?token=ctbuild=False=True=False=False=Nightly=Automation=Nightly=\\PATHTOFOLDER=2015_Recipients=b...@blah.com

All it says next to the user is N/A, if I login to jenkins and kick it off 
it gets my AD user like it should.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/28683d6f-45d4-439f-aa13-90a8d6cd5ee2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How can I add builds to the queue a little at a time?

2017-02-03 Thread Chris Overend
I am beginning the process of changing to pipelines.
We currently use flows to run thousands of jobs(builds).

Say we have 6000 builds to run on 100 Windows virtual machines and 6000 
builds to run on 100 Linux virtual machines.
To reduce available virtual machines with no jobs to run we try to keep the 
queue as full as possible.
Each job takes between 1 - 20 min to execute. 

I need a way to not over load Jenkins. 
With our current workflow we have to restart Jenkins every couple of days 
as it becomes sluggish (we just purchased and are using a new server). 
We have not determined if Flows with Flows is a contributing factor but are 
beginning testing with Pipelines next week.

We believe the number of jobs in the queue is the cause of our problems, 
but we have not found a better solution than having that many jobs.

My thought was to try and trickle jobs to the queue. I would like to add a 
new job to the queue only if it drops below say 1000.

I am open to other suggestions.

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


What's the best way to get average build queue time for a job

2017-02-03 Thread Jori
So my situation is this: I have multiple jobs and multiple computers (some 
with multiple executors).
Sometimes there are lots of builds and computers are not enough so builds 
start to get stacked into the queue. 

What I'd like to do is to monitor Jenkins status in a way that I could 
write on a website e.g "Test job 1 has now a queue of approximately 50 
minutes". 
I didn't find a good way to do this using Python API at least (using jenkinsapi 
library). I can only get info 
about all the builds in queue but no way to approximate time left. 
Do you have some suggestions on how to do this in case I'm missing some 
obvious clear way. 

Thanks in advance,
Jori

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/31fff7cc-9897-4cf1-860c-3bd26deb6269%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to initialize some bash helper function in all bash scripts

2017-02-03 Thread stanley . shen
Hello, all

I am having a requirement to share some bash script function in nearly all 
jobs.
Right now I defined them as environment variable, and eval them in jobs as 
needed.

I was trying to find a more elegant way but got no lucky, for example in 
some where I can define some bash functions and they will be evaluated for 
all jobs.

Any suggestion on this?


Thanks

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