Re: not able to change string value in Jenkinsfile

2018-04-19 Thread Somshekar C Kadam
Hi Slide, Sorry for the delay got some personal work had to step out. Here is the full script for test stage Here verify script writes to "result" file 0 on success and 1 on failure. I am checking on the machine its value is 0, but still when i compare value of output as mentioned by you it is ti

How do I npm install inside a container slave?

2018-04-19 Thread red 888
Trying to install an npm module: stage('stage') { agent { docker { image "library/node:alpine" args "-u root" } } steps{ sh 'npm install aws-sam-local -g' sh 'sam --help' I get a permissions error: > + npm install aws-sam-loca

Re: Windows - 'newman' is not recognized as an internal or external command

2018-04-19 Thread alexgordonchr
Achi, any solution to this issue?> On Sunday, January 7, 2018 at 9:02:57 AM UTC-6, Nir Tal wrote: > > Hi all, > tried to run a newman API test on my windows 10 > from cmd it works well > but when i run it from jenkins > it is not recognized > > try to add it to jenkins path > like: > %AppData

Re: Stuck build numbers

2018-04-19 Thread Ritica R
I am having a similar issue with Jenkins. I have been trying to solve it for days now. I posted my issue in Stack overflow below: https://stackoverflow.com/questions/49661191/jenkins-symlinks-permalinks-broken-after-restart Do you have any suggestions on how to fix this? On Monday, September 15

Triggered build does not receive parameters from property files

2018-04-19 Thread Alexandru Băluț
I set up job A which has a single *Trigger/call builds on other projects *build step which *For every property file, invoke one build* of job B. The *File Pattern* is /var/lib/jenkins/cases/* Job B is started as expected, but the DATASET parameter is not passed through even though it's specifie

Re: Java exception when copying artifacts

2018-04-19 Thread Baptiste Mathus
Also if I didn't miss it: did you specify the version you were upgrading from? Le jeu. 19 avr. 2018 à 19:28, Devin Nusbaum a écrit : > Permissions can only be changed by the owner of the file, so my guess > would be that the agent isn’t running as root (which is good), but then > it’s not clear

Re: Java exception when copying artifacts

2018-04-19 Thread Devin Nusbaum
Permissions can only be changed by the owner of the file, so my guess would be that the agent isn’t running as root (which is good), but then it’s not clear to me why the file would be owned by root in the first place. I guess to take a step back, did you see the error immediately after upgradi

RE: Java exception when copying artifacts

2018-04-19 Thread David Aldrich
-rwxrwxrwx. 1 root 101 1077 Apr 19 16:12 From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Devin Nusbaum Sent: 19 April 2018 16:59 To: jenkinsci-users@googlegroups.com Subject: Re: Java exception when copying artifacts It looks like the failure comes w

Re: Java exception when copying artifacts

2018-04-19 Thread Devin Nusbaum
It looks like the failure comes when changing permissions to match the original file after the file has been copied. What are the permissions on /net/rsdprojects/SeraDL/Zodiac/Linux/HtmlDoc/Algorithms/html/Algorithms.html currently? > On Apr 19, 2018, at 11:40, David Aldrich wrote: > > > Doe

RE: Java exception when copying artifacts

2018-04-19 Thread David Aldrich
> Does the user that Jenkins is running as on the agent have access to the > destination directory? Yes, I have demonstrated that from the command line. From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Slide Sent: 19 April 2018 16:29 To: jenkinsci-us

Re: Java exception when copying artifacts

2018-04-19 Thread Slide
Does the user that Jenkins is running as on the agent have access to the destination directory? On Thu, Apr 19, 2018 at 8:22 AM David Aldrich wrote: > With Jenkins 2.107.2 LTS I am getting a Java exception when executing a > ‘Copy artifacts from another project’ build step. I know that the > de

Java exception when copying artifacts

2018-04-19 Thread David Aldrich
With Jenkins 2.107.2 LTS I am getting a Java exception when executing a 'Copy artifacts from another project' build step. I know that the destination directory is mounted and that my Jenkins user account has permission to write to the destination directory. Any suggestions what may cause this

Re: Publish over ssh error

2018-04-19 Thread Slide
It looks like you are using commands in the exec area of the publish-over-ssh plugin. If the status of those commands is non-zero (the normal success exit code on *NIX systems), then the exec will cause the build to change to unstable. You just need to make sure the exit code for the commands is ze

Publish over ssh error

2018-04-19 Thread Chris McCallan
I'm running an ansible playbook with jenkins using the Publish Over SSH Plugin. The jenkins jobs pulls the source code down from a bitbucket repository, transfers the files over to the remote server and runs the playbook. Some of the tasks in the playbook will fail, which is fine as the playboo

Re: Access environment variable in email ext template using Jenkins pipeline

2018-04-19 Thread srivathsa . puliyala
Issue solved : https://stackoverflow.com/questions/49884904/access-variable-in-email-ext-template-using-jenkins-pipelin e -- You received this message because you are subscribed to the G

Re: Access environment variable in email ext template using Jenkins pipeline

2018-04-19 Thread srivathsa . puliyala
Issue resolved and answered at : https://stackoverflow.com/questions/49884904/access-variable-in-email-ext-template-using-jenkins-pipeline On Friday, April 13, 2018 at 7:11:57 PM UTC-4, srivathsa...@gmail.com wrote: > > I am trying to attach the template file using Jenkins pipeline, emailext. >

Re: not able to change string value in Jenkinsfile

2018-04-19 Thread Slide
Post your full script On Thu, Apr 19, 2018, 06:52 Somshekar C Kadam wrote: > Hi Slide, > > I meant always the result file has 0, using above readfile when I compare > in if cond it always says 1, I have even echoed tha value its shows 1, not > sure why > > regards > Somshekar > > Regards > Somsh

Re: not able to change string value in Jenkinsfile

2018-04-19 Thread Somshekar C Kadam
Hi Slide, I meant always the result file has 0, using above readfile when I compare in if cond it always says 1, I have even echoed tha value its shows 1, not sure why regards Somshekar Regards Somshekar C Kadam 9036660538 On Thu, Apr 19, 2018 at 7:21 PM, Somshekar C Kadam wrote: > Hi Slide,

Re: not able to change string value in Jenkinsfile

2018-04-19 Thread Somshekar C Kadam
Hi Slide, Thanks for the inputs. I did check the value of output its returning always 1, actually it has value 0. not sure why? one more clarification can we call awk in script { } block ? regards Somshekar Regards Somshekar C Kadam 9036660538 On Thu, Apr 19, 2018 at 7:12 PM, Slide wrote:

Re: not able to change string value in Jenkinsfile

2018-04-19 Thread Slide
Ok, then my suggestion is fine, after readFile, the variable output has the value, so just use an if check directly in the script block of the pipeline. script blocks are groovy scripts, so you can use most of the functionality of groovy to do what you want. On Thu, Apr 19, 2018 at 6:24 AM Somshek

Re: not able to change string value in Jenkinsfile

2018-04-19 Thread Somshekar C Kadam
Hi Slide, You got it right. result file contains either 0 or 1 as a unittest pass or fail. I need to read this file which contains 0 or 1 and proceed next stage. thanks in advance regards Somshekar Regards Somshekar C Kadam 9036660538 On Thu, Apr 19, 2018 at 6:52 PM, Slide wrote: > Well, it

Re: not able to change string value in Jenkinsfile

2018-04-19 Thread Slide
Well, it depends on what you are expecting to happen with these lines: awk '{ if ($1 == 0 ) { $res = "passed" } else $res = "fail" }' result awk '{ if ($1 == 0 ) { print "Success"; } else print "failure" }' result The shell scripts don't take parameters, so what are you expecting to be in $1? Wh

Re: not able to change string value in Jenkinsfile

2018-04-19 Thread Somshekar C Kadam
Hi Slide, First of thanks for the response. Ok understood Am not finding any documentation to do the same in jjenkinsfile. Please can you point to it or any example will help regards Somshekar Regards Somshekar C Kadam 9036660538 On Thu, Apr 19, 2018 at 6:39 PM, Slide wrote: > You can't set

Re: Jenkins Vulnerability Scan

2018-04-19 Thread Eric Fetzer
Thanks Daniel! We do have the Ant plugin installed, but our version is updated beyond the affected patch level. On Thu, Apr 19, 2018 at 6:57 AM, Daniel Beck wrote: > > > On 18. Apr 2018, at 16:33, Mark Waite wrote: > > > > Likewise, I would assume that the other plugins mentioned in the > 2018

Re: Jenkins Vulnerability Scan

2018-04-19 Thread Eric Fetzer
Thanks Mark! That's good info. I'll break it down and see where we stand. On Tue, Apr 17, 2018 at 2:36 PM, Mark Waite wrote: > Your mail doesn't tell us what security vulnerability is believed to exist. > > Can you explain further what the report means and what you believe should > be done? >

Re: not able to change string value in Jenkinsfile

2018-04-19 Thread Slide
You can't set res inside a shell script and have it set in the pipeline. It seems like you are trying to use shell scripts to do things that could be done directly in the Jenkinsfile as well. Is there a reason you are using shell scripts for that? On Thu, Apr 19, 2018 at 1:41 AM Somshekar wrote:

Re: Pipeline: BUILD_URL for Blue Ocean

2018-04-19 Thread Daniel Beck
Append /display/redirect to the URL. > On 18. Apr 2018, at 13:29, Sverre Moe wrote: > > We have the following content to mail notifications. > def content "Check console output at ${env.BUILD_URL} to view the results." > > Where env.BUILD_URL has the following URL > https://build-ci.company.com

Re: Jenkins Vulnerability Scan

2018-04-19 Thread Daniel Beck
> On 18. Apr 2018, at 16:33, Mark Waite wrote: > > Likewise, I would assume that the other plugins mentioned in the 2018-01-22 > advisory need to be upgraded to at least those versions. Just a quirk of our advisory format. Unless another plugin is specifically mentioned as affected by this, i

Groovy script success via script console but fails as a job

2018-04-19 Thread Sunshine
I got this working. My bad forgot to import the necessary packages. Any idea on how can't I send mails to the owner of the build in the above scenarios of stock jobs in que. I couldn't find any owner option in the /yourhost/queue/API/xml -- You received this message because you are subscribed

not able to change string value in Jenkinsfile

2018-04-19 Thread Somshekar
Hi All, I am trying to change the value of string dependign upon the unittest cases passed by reading a file. For next stage to proceed I want to set the string depending upon the value next stage qa or other stage can proceed. but not able to change value f string in jenkins file. value of

Groovy script success via script console but fails as a job

2018-04-19 Thread Sunshine
Hi all , I tried writing a groovy script to list builds in queues assigned to offline slaves and it gives me list when I execute via script console but not via a Jenkins job. I'm just a beginner in groovy but tried this below code which works fine in the script console but fails with below err

How to debug plugin

2018-04-19 Thread htsn wijesuriya
Dear team, I"m new for plugin development ,I tried to created Jenkins plugin support in blue ocean as well,my blocking point is I can"t find the way to debug it. Can I know the how to debug my plugin? Thanks HTSN -- You received this message because you are subscribed to the Google Groups "Jen