Re: No more PR build after latest upgrades for BitBucket branch source plugin(2.2.3) and its BB side webhook

2017-10-19 Thread Dan Tran
Let me rephase is there anyone able to configure bitbucket team/project job to build PRs Do you have a special setting to get PR build show up? Thanks -Dan On Monday, October 9, 2017 at 9:45:31 PM UTC-7, Dan Tran wrote: > > Hi > > Under what condition and setting would trigger this issue? >

Re: using ssh agent and github SCM

2017-10-19 Thread 'Jurgen Weber' via Jenkins Users
issue link: https://issues.jenkins-ci.org/browse/JENKINS-47463 -- 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

How to detect a merge and perform a cleanup action with multibranch pipelines

2017-10-19 Thread red 888
This is what I have now: 1. Create a feature branch with jenkinsfile in it 2. Commit to your new feature branch and the pipeline kicks off 3. The pipeline deploys the app to a new VM/environment/container/whatever 4. The environment/VM persists after the deploy so you can touch/test it physical

Re: Checking if params.FOO is undefined

2017-10-19 Thread Robert Hales
There are a lot of different ways to do this, but it depends on how your pipeline script is written, whether you are using declarative or scripted pipeline, what do you want to do when it is null vs. not. In a scripted pipeline this is a basic programming question: if (params.FOO) { } else {

Re: Linux jenkins .net core build appends windows paths to file locations

2017-10-19 Thread Hardtraxx
For future reference: I solved the issue by passing the --runtime variable to the dotnet command in the build script. For some reason this is required when building from Jenkins. Building from command line doesn't require using the --runtime variable. -- You received this message because you a

Re: BlueOcean JavaScript Error

2017-10-19 Thread 'Mark Woodland' via Jenkins Users
I've submitted pull request https://github.com/jenkinsci/junit-plugin/pull/84 which should prevent the ClassCastException from happening. On Thursday, 28 July 2016 14:29:52 UTC+1, John D. Ament wrote: > > Removing cucumber did fix it. > > On Thursday, July 28, 2016 at 7:11:02 AM UTC-4, John D. A

Jenkins.createProject - ACL

2017-10-19 Thread Shaun Thompson
Running into an issue where I'm programmatically creating a job when the user installs it's corresponding plugin. The Jenkins instance has security enabled with either logged in users can do anything or matrix based security. If those are set, it will fail with Anonymous does not have create a

Checking if params.FOO is undefined

2017-10-19 Thread jbrooks
Hi all, Let's say I have a Jenkinsfile for a job that is normally built with Build Parameters, and so has params.FOO in it. Then let's say that I want to also be able to automatically build this using a ultibranch pipeline job. Obviously, params.FOO will be undefined, causing the job to fail;

RE: Declarative script: 'bat' command fails but job succeeds

2017-10-19 Thread David Aldrich
Thanks for your answer. From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of jer...@bodycad.com Sent: 19 October 2017 15:36 To: Jenkins Users Subject: Re: Declarative script: 'bat' command fails but job succeeds Not sure about declarative pipeline (I hav

Re: How to change the jenkins job status to PASS/FAIL?

2017-10-19 Thread Viacheslav Dubrovskyi
Hi Neel, It depends what type of job do you have. For pipeline you can look to this article https://support.cloudbees.com/hc/en-us/articles/218554077-How-to-set-current-build-result-in-Pipeline- 19.10.2017 16:31, Neel Desai пишет: Hello All, I want to change the status of my jenkins job b

Re: Declarative script: 'bat' command fails but job succeeds

2017-10-19 Thread jerome
Not sure about declarative pipeline (I haven't played with them yet). but for normal pipeline I use it this way: bat returnStatus: false, script: "\"${bcad.msbuild_current}\" ${bcad.msbuild_solution_name} ${bcad.msbuild_default_arg} /t:Build" You can find the doc here: https://jenkins.io/doc/pip

Re: How to execute a jar file as a post build jenkins step?

2017-10-19 Thread itchymuzzle
What was the error? -- 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 http

How to change the jenkins job status to PASS/FAIL?

2017-10-19 Thread Neel Desai
Hello All, I want to change the status of my jenkins job based on the result of other parameter's value. How can I do that? I would prefer the through Jenkins REST API. If I can change with rest api, then it would be best solution. THanks, Neel Desai -- You received this message because you

How to execute a jar file as a post build jenkins step?

2017-10-19 Thread Neel Desai
Hello, I've a jar file on my local machine. I have shell script ready to execute it. If I run that shell script locally, it works completely fine but whenever I try to run that from jenkins it gives me error. Just FYI, In jenkins for now I am pointing a jar file location to my local machine's

Re: AW: Help with NotSerializableException in pipeline

2017-10-19 Thread Viacheslav Dubrovskyi
Hi Reinhold, Thank you for answer. >I think it is the usage of the (default?) map in pipeline code, e.g. "def enviroments = [:]" which according to the StackTrace results in a LinkedHashMap? Hm. If I use empty map suites_time = [:] in function sortSuites(), everything working good. But al

Unable to reset password on jenkins.io

2017-10-19 Thread Martijn Verburg
Hi there, I keep getting a connection timeout from this service with the originating exception: Caused by: java.net.ConnectException: Operation timed out (Connection timed out) at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(

RE: Declarative script: 'bat' command fails but job succeeds

2017-10-19 Thread David Aldrich
Thanks very much for your reply. > Take care batch error level only is valid for the last command and not a > cumulative flag. Yes, that was exactly the issue. I followed your advice and the script works correctly now. > Also make sure you give the proper  bat argument returnStatus into your