Re: How to only build one directory in a pipeline job?

2017-06-14 Thread Mark Allison
It's still building both projects. Anyone got any ideas? On Wednesday, 14 June 2017 14:36:06 UTC+1, Mark Allison wrote: > > I just noticed a potential bug. > > I changed these: > >Included Regions: Project1\/.+ >Excluded Regions: > > On Wednesday, 14 June 2017 11:44:43 UTC+1, Mark Allison

Re: How to set environment variable in multibranch pipeline?

2017-06-14 Thread Dan Tran
Please vote for this https://issues.jenkins-ci.org/browse/JENKINS-42906 -- You received this message because you are 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...@googlegrou

Re: How to set environment variable in multibranch pipeline?

2017-06-14 Thread Cuong Tran
Why? On Wednesday, June 14, 2017 at 5:33:26 AM UTC-7, Mark Allison wrote: > > Thanks for the reply, but I need to set the variable outside the pipeline > script similar to the Environment Injector plugin. Is there a way to do > that? > > On Tuesday, 13 June 2017 13:36:07 UTC+1, Kevin Burnett wro

Re: SSH Slave crashing immediately after start

2017-06-14 Thread Peter Berghold
Changing the version of Java to 1.8 did the trick. The slave is back online. On Wed, Jun 14, 2017 at 7:53 AM Peter Berghold wrote: > Okay I guess I'm going to have to investigate how to get the newer version > of Java on Redhat. Redhat 6 at that. Thanks for the pointers. > > On Wed, Jun 14, 201

Re: Can environment directive be used in post?

2017-06-14 Thread Kevin Burnett
i don't believe you can use the environment instruction in post, no. but you can use withEnv: https://jenkins.io/doc/pipeline/steps/workflow-basic-steps/#code-withenv-code-set-environment-variables On Wednesday, June 14, 2017 at 8:43:43 AM UTC-4, Idan Adar wrote: > > In a stage I can do the fol

Re: Blue Ocean and NGiNX

2017-06-14 Thread Cliff Meyers
Hi Robson, Some other users have reported a similar issue which we are tracking in JIRA here: https://issues.jenkins-ci.org/browse/JENKINS-44881 We're investigating the issue now; perhaps if you join in the conversation there we can help reproduce the issue faster. Thanks, Cliff On Wed, Jun 1

Re: Job Scheduling per 10 secs

2017-06-14 Thread Ashish Kaushik
This worked like charm. Thanks for sharing this. It saved my loads of time as I decided to write a wrapper script to handle of this. Pipeline plugin came to rescue. Thanks again Bill! On Thursday, June 8, 2017 at 3:53:16 PM UTC+5:30, Bill Dennis wrote: > > I don' t think the Jenkins CRON spec h

Blue Ocean and NGiNX

2017-06-14 Thread Robson Peixoto
Hi, When I try to access the Blue Ocean it start a infinite loop =/ This screenshot show the browser error: Info about plugins version, jenkins version, comman

Re: AWS Simple AD Issue

2017-06-14 Thread Hafizullah Nikben
Experiencing the same issue as you Brian! :( any insight will be appreciated. I have raised ticket with AWS to see if anything have changed on their side. On Wednesday, 7 June 2017 08:21:05 UTC+1, Brian Mills wrote: > > I've been using Active Directory plugin for years in an AWS environment,

Re: Locking doesn't work across multiple nodes?

2017-06-14 Thread Thomas Rambrant
I have the same problem so I'm very interested in a solution... I have tried everything I can think of. I'm currently locking on the outmost level, so that every stage and node blocks is inside the lock. I previously had it inside a node block but got the impression that the lock only worked

JIRA-Plugin comments huge loads of issues since Update

2017-06-14 Thread Dieter Guthmann
Hello there,   we've got problems with the JIRA-Plugin for Jenkins since we've updated our Jenkins-Master from 1.609.3 to 2.46.3 (both LTS). We've updated also the JIRA-Plugin-Version to 2.3.1.   For many of our Jobs the Post-Build-Action "JIRA: Update relevant issues" is enabled (in our previ

Re: SonarQube and Declarative Pipeline

2017-06-14 Thread Kirill Peskov
OK, I went a bit further, wrapping scripted pipeline syntax pieces in script{} pseudo-step, so I actually created this: stage('Submit the sources to SonarQube') { environment { SONAR_SCANNER_OPTS = "-Xmx2G -Xms256m" } steps { script { def scannerHome = tool

Re: How to only build one directory in a pipeline job?

2017-06-14 Thread Mark Allison
I just noticed a potential bug. I changed these: Included Regions: Project1\/.+ Excluded Regions: On Wednesday, 14 June 2017 11:44:43 UTC+1, Mark Allison wrote: > > I have a github repo called multibranch-test with two sub-directories > Project1, Project2. > > PS C:\Repos\multibranch-tes

Can environment directive be used in post?

2017-06-14 Thread Idan Adar
In a stage I can do the following: stage ("Merge pull request") { environment { JENKINSBOT = credentials('${JENKINSBOT_GHE_ACCESS_TOKEN}') } ... ... steps { } } Can this done also in post? post { success { enviro

Re: How to set environment variable in multibranch pipeline?

2017-06-14 Thread Mark Allison
Thanks for the reply, but I need to set the variable outside the pipeline script similar to the Environment Injector plugin. Is there a way to do that? On Tuesday, 13 June 2017 13:36:07 UTC+1, Kevin Burnett wrote: > > here's an example Jenkinsfile that sets an environment variable (REPO_URL) >

Re: SSH Slave crashing immediately after start

2017-06-14 Thread Peter Berghold
Okay I guess I'm going to have to investigate how to get the newer version of Java on Redhat. Redhat 6 at that. Thanks for the pointers. On Wed, Jun 14, 2017, 07:04 James Nord wrote: > > java -version returned 1.7.0_75. > > > Jenkins 2.58+ only support java8 or higher, this includes your agents

SonarQube and Declarative Pipeline

2017-06-14 Thread Kirill Peskov
Hi All! Has anyone manage to get SonarQube Scanner and Quality Gateway working in a Declarative Pipeline? I'm actually stuck with that, because the only examples on both Jenkins and SonarQube docs are examples for the scripted pipeline, not declarative one... SonarQube document: https://docs.son

Re: SSH Slave crashing immediately after start

2017-06-14 Thread James Nord
> java -version returned 1.7.0_75. Jenkins 2.58+ only support java8 or higher, this includes your agents JVM. /James On Tuesday, June 13, 2017 at 9:05:40 PM UTC+1, Peter Berghold wrote: > > I'm trying to re-establish connectivity to an SSH slave that used to work > when I was running a muc

How to only build one directory in a pipeline job?

2017-06-14 Thread Mark Allison
I have a github repo called multibranch-test with two sub-directories Project1, Project2. PS C:\Repos\multibranch-test> tree . Folder PATH listing for volume Windows Volume serial number is 2085-6D3D C:\REPOS\MULTIBRANCH-TEST ├───Project1 └───Project2 Each sub-directory has a Jenkinsfile and th

stdout is null when executing a command from a shared library

2017-06-14 Thread Francis Pereira
When executing commands from a shared library, stdout is always null. How do I get an handle on it ? This only happens when calling the shared library from a pipeline. If I run it in the 'Script Console' (with modification to make it execute), I get content from stdout. Example: *Shared libra