Re: Is there any environment variable for the current build directory?

2018-03-06 Thread 'Björn Pedersen' via Jenkins Users
Hi, how does the file end up there in the first place? I guess that is copied there by the junit publisher (or by archiveArtifacts?), the original file should still be in the workspace. Björn Am Dienstag, 6. März 2018 10:12:18 UTC+1 schrieb Markus Neifer: > > Hi all, I want to process the JUni

Re: Possible bug creating items

2018-03-06 Thread 'Björn Pedersen' via Jenkins Users
Hi, actually this seems like this is a job that is easily ported to modern pipeline style. Maybe this now a good point to switch directly? Then the xml would be quite generic... Björn Am Dienstag, 6. März 2018 10:12:50 UTC+1 schrieb David Quirós Pérez: > > Hello Jenkins Team, > > I discovered

Re: Why is Forgot password link not displayed in Jenkins login page ?

2018-03-06 Thread 'Björn Pedersen' via Jenkins Users
Hi, not all authentication backends could support this, so it depends on what is configured in your case... If it is using only external authentication (ldap/AD, oauth, servlet container,...) then you would need to reset the password in the parent system. Björn Am Mittwoch, 7. März 2018 05:31

Why is Forgot password link not displayed in Jenkins login page ?

2018-03-06 Thread Poovaraj
Hi Team, Forgot password link is not displayed in Jenkins login page. Could you please let me know why it is not displayed ? ⁣Regards, Poovaraj Sent from Blue ​ -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group

Using StaplerRequest to configure a plugin?

2018-03-06 Thread Guy Matz
Hi! Does anyone know how to automate the configuration of a plugin using a StaplerRequest object? I'm trying to configure scm-sync-configuration with: import net.sf.json.JSONObject import org.kohsuke.stapler.StaplerRequest import hudson.plugins.scm_sync_configuration.ScmSyncConfigurationPlugin

Re: Possible bug creating items

2018-03-06 Thread Mark Waite
Another alternative is to use the new Jenkins version to define a job interactively with the post-build actions you want. Compare the config.xml file from that job with the XML of the job you're trying to create. You may identify important differences between the two. Mark Waite On Tue, Mar 6,

Re: Possible bug creating items

2018-03-06 Thread Baptiste Mathus
IMO, what would strongly help everyone including you, is that you narrow down the version with which the issue started. Also, you're doing a very big jump of 2.5 years and dozens of versions. You should probably try to upgrade in some bumps: to the closest LTS, and then from one to the next one, l

Re: Jenkins Multi-configuration project: Skip master checkout

2018-03-06 Thread Mark Waite
I don't know. I didn't do the research to understand precisely why it behaves that way. Mark Waite On Tuesday, March 6, 2018 at 11:26:59 AM UTC-7, Dan wrote: > > What technical requirement does the master checkout satisfy? > Listing the SCM Changes doesn't require a full checkout. > And the Wor

Re: Is there any environment variable for the current build directory?

2018-03-06 Thread Mark Waite
On Tuesday, March 6, 2018 at 2:12:18 AM UTC-7, Markus Neifer wrote: > > Hi all, I want to process the JUnit result file junitResult.xml for the > current build. I have found this file in path > $JENKINS_HOME/jobs//branches//builds//junitResult.xml > > . Now I want to use the current path in m

Re: Bash variables defined during a step

2018-03-06 Thread Samuel Mutel
Yes it is what I did and I think it is the best way. Thanks. Le 6 mars 2018 5:48 PM, "Victor Martinez" a écrit : > GString might be a bit crazy to escape some chars, maybe it's worthy to > create a sh file somewhere and just call it? Then you get the benefits of > being able to call/use it witho

Re: Jenkins Multi-configuration project: Skip master checkout

2018-03-06 Thread Dan
What technical requirement does the master checkout satisfy? Listing the SCM Changes doesn't require a full checkout. And the Workspace can be viewed for the nodes as well as the master. On Tuesday, March 6, 2018 at 12:45:49 PM UTC-5, Mark Waite wrote: > > No, it can't be turned off. > > If your

Re: Jenkins Multi-configuration project: Skip master checkout

2018-03-06 Thread Mark Waite
No, it can't be turned off. If your repositories are large or bandwidth to the git server is low, you might consider the hints from "Git in the Large ". Those are the slides I presented at the Jenkins World 2017 community booth. A Jenkins Onl

Jenkins Multi-configuration project: Skip master checkout

2018-03-06 Thread Dan
We use Jenkins multi-configuration projects exclusively to build on both Windows and Linux on a variety of compilers. The builds are executed on several Virtual Machines. However, Jenkins always performs a checkout on the master node *before* doing an SCM checkout for each matrix job. Why i

Re: Logs inside BlueOcean do not get updated automatically

2018-03-06 Thread Christian Ciach
This happens for me with Firefox and with Chromium. Also, it doesn't matter how long the tab has been open; it happens with freshly opened tabs, too. As I see, there is already a pull request that supposedly fixes that. I really wonder that noone else reported this in the several weeks I've ex

Re: Bash variables defined during a step

2018-03-06 Thread 'Björn Pedersen' via Jenkins Users
Am Dienstag, 6. März 2018 12:53:06 UTC+1 schrieb Samuel Mutel: > > Hello, > > I would like to define a variable in shell and to use it. > How can I do this? > > For example: > > sh "find packages -name internal-* -type d -exec bash -c 'for arg; do > export VERSION=\$(grep \${arg##*/} nexus-cicd-

Re: Bash variables defined during a step

2018-03-06 Thread Victor Martinez
In your case you just need to escape \$VERSION to avoid the GString to be interpolated. sh "find packages -name internal-* -type d -exec bash -c 'for arg; do export VERSION=\$(grep \${arg##*/} nexus-cicd-versions.txt | cut -d: -f2);sed -i \'s/#VERSION#/\${VERSION}/g\' \$arg/0/package.json; don

Re: Bash variables defined during a step

2018-03-06 Thread Victor Martinez
GString might be a bit crazy to escape some chars, maybe it's worthy to create a sh file somewhere and just call it? Then you get the benefits of being able to call/use it without the need to be in the pipeline itself. My two cents -- You received this message because you are subscribed to th

Re: "Bitbucket Team/Project"

2018-03-06 Thread Kevin Ford
Having same issue, been trying to figure out for almost 2 weeks On Monday, March 5, 2018 at 10:54:25 PM UTC-5, Christian Gagneraud wrote: > > I'm trying the "Bitbucket Team/Project" (which uses the "multibranch > Pipeline"). > Using "jenkinsci/blueocean:latest" docker image. > > When i create a

Re: JNLP agent startup not working after upgrade from 2.4x to 2.89.4

2018-03-06 Thread Dan zaWhite
Ok found the issue. NOTE: For anyone else having issues similar to this...triple check the version of java to be 64 bit...not 32 bit, also never reuse legacy machines On Tuesday, March 6, 2018 at 1:10:29 PM UTC+2, Dan zaWhite wrote: > > I managed to reproduce the problem. > > Take a brand n

RE: Confused about svn checkout with externals in declarative pipeline

2018-03-06 Thread David Aldrich
Hi This is fixed. The GUI configuration was sufficient but I wrongly had the ‘ignore externals’ option checked. Best regards David From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of David Aldrich Sent: 06 March 2018 11:50 To: jenkinsci-users@googlegr

Re: Jenkins Pipeline Groovy Script for TFS as SCM

2018-03-06 Thread Mark Waite
I'm sorry, but I can't provide detailed configuration instructions for TFS. On Tue, Mar 6, 2018, 4:42 AM Sharon Cohen George wrote: > Hi Mark, > > I am also trying to work with the TFS plugin on Jenkins builds. > > We use Jenkins ver. 2.89.4 with the tfs plugin 5.126.0 > I can see that the build

Bash variables defined during a step

2018-03-06 Thread Samuel Mutel
Hello, I would like to define a variable in shell and to use it. How can I do this? For example: sh "find packages -name internal-* -type d -exec bash -c 'for arg; do export VERSION=\$(grep \${arg##*/} nexus-cicd-versions.txt | cut -d: -f2);sed -i \'s/#VERSION#/${env.VERSION}/g\' \$arg/0/packa

Confused about svn checkout with externals in declarative pipeline

2018-03-06 Thread David Aldrich
Hi I have a declarative pipeline that is to checkout a Subversion project and build it (on Windows with msbuild). Until now, I have specified the checkout solely in the project's configuration page i.e. using the GUI. However, the project has changed and now uses svn externals. I specified 'A

Jenkins Multi Job dead lock

2018-03-06 Thread santhosh soma
Hi All, We have Jenkins Setup to run Test Cases on the Master node machine. We have defined multi job configurations for each product. All the jobs will run only on Master node itself. The number of executors defined max as 2 so that it will pickup main job and one down stream job at a time.

Re: Jenkins Pipeline Groovy Script for TFS as SCM

2018-03-06 Thread Sharon Cohen George
Hi Mark, I am also trying to work with the TFS plugin on Jenkins builds. We use Jenkins ver. 2.89.4 with the tfs plugin 5.126.0 I can see that the build detects successfully the last change set available, but it keeps failing on the stage of get latest sources: Getting version 'C9477' to '/v

Re: JNLP agent startup not working after upgrade from 2.4x to 2.89.4

2018-03-06 Thread Dan zaWhite
I managed to reproduce the problem. Take a brand new windows 2012 machine and install java jre 8u161 on it. Run the jnlp file and it will not run... Other slaves that got upgraded to java 8 don't reproduce. Is this a regression on the jenkins side maybe? On Tuesday, March 6, 2018 at 8:52:48 AM

Is there any environment variable for the current build directory?

2018-03-06 Thread Markus Neifer
Hi all, I want to process the JUnit result file junitResult.xml for the current build. I have found this file in path $JENKINS_HOME/jobs//branches//builds//junitResult.xml . Now I want to use the current path in my Jenkins file as parameter like this stage ("Process test result") {

Fwd: Possible bug creating items

2018-03-06 Thread David Quirós Pérez
Hello Jenkins Team, I discovered the next issue when we updated from Jenkins 1.620 to Jenkins 2.89.4. We were using a script to create job items doing a POST of a config.xml to our jenkins url like this: http://our-site.com/job/Project/createItem?name={job_name} This config.xml describe a quie