Jenkins / Unity / Guthub integration

2023-07-28 Thread 'andrew stillie' via Jenkins Users
I am novice to using Unity and Jenkins. I have setup a Jenkins Server on an AWS server. This is integrated with github, such that when I commit code to the repo, it triggers jenkins to run my Unity test scripts. However, if I introduce a bug to force the unity test to fail, the console output

Re: Gerrit publish just run one build

2022-03-08 Thread Andrew Grimberg
On 3/7/22 09:22, jimsearle wrote: Thanks, appreciate the response. Sorry if my terminology is not correct as I am still pretty new to Gerrit.  We do have many times where someone will do multiple commits for different reasons, then do one publish to regress all those distinct commits together

Can't find recommended version 2.222.2.1 rev2

2020-05-13 Thread Andrew Smith
Looking at this security advisory, it recommends upgrading to version 2.222.2.1 rev2, and I also see a warning in my Jenkins admin UI. But I've already run "sudo apt-get update" and "sudo apt-get upgrade" and I don't see that v

Re: [Jenkins Kubernetes Plugin] Issues building plugin from source

2019-10-21 Thread 'Andrew Douglas' via Jenkins Users
Thanks Carlos, "Some integration tests run a local jenkins" is it possible that this is not starting correctly? I can't see a copy of Jenkins running anywhere during testing. I'm using minikube on hyperkit for testing Andrew On Monday, October 21, 2019 at 11:14:11 AM U

[Jenkins Kubernetes Plugin] Issues building plugin from source

2019-10-17 Thread 'Andrew Douglas' via Jenkins Users
e ``` I'm building off the last good version (1.20.0), on a Mac, and have not changed anything. Could someone give me a pointer to get started please? Thanks Andrew -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsu

Remote logging Kubernetes agents dying due to channel closed exception

2019-04-25 Thread Andrew Feller
We've been trying to troubleshoot OpenShift-support Jenkins Kubernetes agents terminating due to closed channel exceptions and reaching for straws here. We're considering enabling remote logging

Build Triggers - Build periodically plugins

2019-03-07 Thread Andrew Poage
Hi, Anyone know of any plugins that can replace the cron job scheduler with simpler more robust scheduler. Essential looking to run jobs every 2nd and every 4th Saturday of the month. Since that tends to fluctuate a lot using the cron scheduler gets pretty dicey. -- You received this message

Re: POSTing zip file using httpRequest in Jenkinsfile

2019-03-05 Thread Andrew Gray
Did you end up working out how to post a file to a url in Jenkins pipeline? On Wednesday, 1 February 2017 01:55:26 UTC+11, Christopher Burke wrote: > > Are you referring to the bug that was identified in a comment on that > stackoverflow question? If so, it has been resolved so I assume I'm now

Using variables or closures to define pipeline agent

2019-01-09 Thread Andrew Feller
Is there any way to use a variable or closure to configure a pipeline's agent? We have cases where a pipeline has to run on a VM and others when it runs on Kubernetes, however we don't want to duplicate the entire pipeline. All of the documentation shows this as being hardcoded

Kubernetes-based Jenkins worker pipeline fails because it hasn't started yet error

2018-12-06 Thread Andrew Feller
I'm using Jenkins on OpenShift with the kubernetes plugin for creating Jenkins workers. Occasionally we get the following error whenever the pipeline first runs but can't explain what is going on; simply rerun it and the 2nd time will work. Many thanks for someone who can point out to what is goi

Troubleshooting deadlocking between Jenkins plugins

2018-12-04 Thread Andrew Feller
Appreciate any thoughts on how to address these: Found one Java-level deadlock: = "RMI TCP Connection(39)-172.23.4.92": waiting to lock monitor 0x7feae80062c8 (object 0xebbd7358, a java.util.logging.StreamHandler), which is held by "GitSCM.onLoaded"

Subscribe

2018-12-04 Thread Andrew Feller
-- [image: BandwidthMaroon.png] Andy Feller • Sr DevOps Engineer 900 Main Campus Drive, Suite 500, Raleigh, NC 27606 e: afel...@bandwidth.com -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiv

Pipeline Authoring SIG is now live!

2018-11-02 Thread Andrew Bayer
https://jenkins.io/sigs/pipeline-authoring/ - tada! If you'd like to participate, you can join the mailing list ( jenkins-pipeline-authoring-...@googlegroups.com) and/or the Gitter chat ( https://gitter.im/jenkinsci/pipeline-authoring-sig). A. -- You received this message because you are subscr

Announcing the Pipeline Authoring SIG

2018-10-31 Thread Andrew Bayer
Hey all! Now that DevOps World/Jenkins World season has wrapped up, I'm officially kicking off the Pipeline Authoring SIG. I proposed it in https://groups.google.com/forum/#!topic/jenkinsci-dev/nJ1XWyzBMSw, but now I've started creating the infrastructure for the SIG, including the jenkins-pipelin

Re: Pipeline checkout persistence issue

2018-10-17 Thread Andrew Bayer
complete > the default checkout reverts the directory and it then becomes > "lightweight", so only the Jenkinsfiles remain and the source I'm trying to > build evaporates. > > I added the skipDefaultCheckout() directive (thanks for that, Andrew, I > didn't know

Re: Pipeline checkout persistence issue

2018-10-17 Thread Andrew Bayer
You might want to add "skipDefaultCheckout(true)" to your options - it could be that the automatic checkout that happens whenever you enter an agent is messing things up. A. On Wed, Oct 17, 2018 at 11:40 AM James Chapman wrote: > Hello Jenkins users, > > I have a pipeline job that run across a

Re: Pipeline build not stopping when stage marked as failed

2018-10-16 Thread Andrew Bayer
4:56 PM Paul D'Ambra wrote: > I think I've stripped out everything that I shouldn't share :) > > not doing anything fancy. the dependency check runs and fails the build > but the steps after it run even though it failed. > > On Monday, 15 October 2018 15:28:19

Re: Pipeline build not stopping when stage marked as failed

2018-10-15 Thread Andrew Bayer
Can you attach your Jenkinsfile? Thanks. On Mon, Oct 15, 2018 at 10:59 AM Paul D'Ambra wrote: > Hi, thanks for the link? > > I find the pipeline documentation a bit limited... there are no examples > of usage in that link. Are you saying I need to "wrap" the dependency check > stage in some way

Re: Does the Declarative Pipeline Plugin Assume /bin/sh for Shell Command Step (sh) when Running on Agent Node?

2018-09-27 Thread Andrew Bayer
It uses the default shell, yes - i.e., "sh -c ...", as you can see at https://github.com/jenkinsci/durable-task-plugin/blob/c1ee6607c6939e8917762419c8474fecec06172c/src/main/java/org/jenkinsci/plugins/durabletask/BourneShellScript.java#L141-L165. The actual content of the step, i.e., "ls -la" in "s

Re: Declarative pipeline - override pipeline level agent

2018-09-27 Thread Andrew Bayer
Top level docker agents can't be overridden - but you can use the kubernetes plugin in Declarative ( https://github.com/jenkinsci/kubernetes-plugin/blob/master/src/test/resources/org/csanchez/jenkins/plugins/kubernetes/pipeline/declarative.groovy e.g.) which may be what you're looking for. A. On

Re: Declarative script: How to escape 'Program Files (x86)'?

2018-04-18 Thread Andrew Bayer
I'd guess you need to escape the spaces in the original string? I dunno - I don't have a Windows environment handy to test on. A. On Wed, Apr 18, 2018 at 6:28 AM, David Aldrich wrote: > My declarative script contains: > > > > environment { > > VSMSBUILDCMD_14_0 = 'C:\\Program Files (x86)\

Re: Bitbucket Branch Source URI

2018-01-09 Thread Andrew Spiers
Thank you! This plugin is great :-D On Tuesday, 9 January 2018 18:41:56 UTC+11, Stephen Connolly wrote: > > Define the list of servers in the global config. Once you have more than > one server then a drop-down will appear to allow selecting > > On Tue 9 Jan 2018 at 07:17, And

Bitbucket Branch Source URI

2018-01-08 Thread Andrew Spiers
Hi, I'm trying to use the Bitbucket Branch Source plugin to scan for jobs in a bitbucket server instance. For the life of me I can't see where to add the URL for the Bitbucket Server instance. The new job / new item configuration window does not look much like the screenshots on the User Guide [

Re: What to do since PostBuild Script is deprecated

2017-11-10 Thread Andrew Grimberg
On 11/10/2017 08:13 AM, john.peterson wrote: > We have been using PostBuild Script to execute the following command on > the remote machine (as Build Steps > Execute Windows Batch Command): > > Shutdown  -s  -t:0 (I think I have that correct) > > We have to do this to make sure that NO MATTER

Re: Creating Threads in Jenkins Pipeline

2017-10-12 Thread Andrew Bayer
No, that's why we have parallel. On Oct 12, 2017 11:53, "Nitish Kumar" wrote: > Hi, > > Is there anyway by which I can run multiple threads in Jenkins Pipeline > without using parallel construct? > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Jen

Re: Centralized logging of Jenkins build output.

2017-10-11 Thread Andrew Grimberg
On 10/11/2017 07:41 AM, JJ wrote: > We have many pipelines.  Jenkins stores the logs in each job's build > directory under the build number.  We would like to group all of a > pipeline's logs together by PIPELINE_VERSION and store them in a > centralized location, with a dashboard into the logs. Is

Can't sign up at accounts.jenkins.io

2017-10-11 Thread Andrew Brock
Hi, If I visit https://accounts.jenkins.io/signup and fill out the form, clicking the Sign Up button gets me a stack trace like so: HTTP ERROR 500 Problem accessing /doSignup. Reason: Server Error Caused by: javax.servlet.ServletException: javax.servlet.ServletException: javax.mail.Au

ruby-runtime plugin interfering with classpath of Maven projects

2017-10-11 Thread Andrew Brock
es: with the Jenkins plugin or the Maven plugin itself. I wouldn't have expected that a Ruby Jenkins plugin should be put on the classpath of a Maven build - or at the very least, that it should be appended last? Any suggestions as to how to proceed? Thanks, Andrew -- You received thi

JClouds with EC2 ignoring specified subnets?

2017-10-05 Thread Andrew Grimberg
Greetings folks, I'm trying to get the JClouds plugin to bring up instances on EC2 under a different VPC than the default. I've got a specific security group configured attached to the correct VPC and the when the instance is being brought up it tries to use that, however no matter what I do, spec

Re: Does 'trigger' directive in pipeline actually mean only retrigger?

2017-09-22 Thread Andrew Bayer
Yeah, the job has to run at least once after you've added the triggers directive for it to register, and then it'll be fine. A. On Fri, Sep 22, 2017 at 12:54 PM, Vineet Naik wrote: > Hi, > > I have created a job (Jenkins ver. 2.60.3) using pipeline definition and > it's 'triggers' directive for

Re: Derative Pipeline: unstable build / best practices

2017-09-18 Thread Andrew Bayer
What's the output of your tests? If they're generating either junit output or another format that can be read by https://wiki.jenkins.io/display/JENKINS/xUnit+Plugin, and you're using junit or xunit to add those test results to your build, any test failure will result in the build being set to unst

Re: build user id in declarative pipeline

2017-09-13 Thread Andrew Bayer
Put the rest of your steps inside the {} A. On Tue, Sep 12, 2017 at 3:09 PM Russ Cox wrote: > Hi, I'm using Jenkins to run a bunch of self service jobs and need to be > able to determine the user id of the person who ran a job. > > We've been doing this with the scripted pipeline up until now b

Re: GitHub pull request for pipelines

2017-09-13 Thread Andrew Bayer
I think you'll find that multi branch does the trick - I had been using various pull request builder plugins previously, and multi branch gave me just about everything that the pull request builders did with a much smoother experience overall. A. On Tue, Sep 12, 2017 at 7:28 PM Sharon Grubner wr

Re: Invoking a declarative pipeline from shared libraries

2017-09-13 Thread Andrew Bayer
See https://issues.jenkins-ci.org/browse/JENKINS-46547 - this will probably make it into Declarative 1.3, landing hopefully end of October. On Wed, Sep 13, 2017 at 2:25 PM Sebastien Crete wrote: > Where you define your shared libraries ? > > with shared-lib in DP i think is ncessary define

FYI: Declarative 1.2 beta available in experimental update center

2017-08-29 Thread Andrew Bayer
Just a heads up - Declarative Pipelines has a beta for the upcoming 1.2 release available in the experimental update center now, 1.2-beta-4. You can learn about what's in this release at https://wiki.jenkins.io/display/JENKINS/Pipeline+Model+Definition+Plugin, but the main changes are the additiona

offline windows jenkins installation

2017-07-01 Thread Andrew
Hi, I may have asked this before, but it really didn't get anywhere. I am trying to get the latest Jenkins up and running on a windows box on a closed network (no internet access). It doesn't appear that there are any plugins bundled with the war file anymore. Is there a way to download a tarbal

Re: Growing config.xml with GitLab plugin

2017-06-18 Thread Andrew Bayer
You only specifically need to upgrade Pipeline: Model Definition. A. On Fri, Jun 16, 2017 at 10:30 AM Qiang wrote: > Hi, Dan , Thanks for the hint, and I did find the job recreatd by job DSL > didn't have the problem > > Hi, Andrew, thanks for the good news! Do we just upgrad

Re: Growing config.xml with GitLab plugin

2017-06-16 Thread Andrew Bayer
KINS-44809?focusedCommentId=302837&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-302837 in the Jenkins Script Console to manually clean up the bogus properties. A. On Fri, Jun 16, 2017 at 10:07 AM, Andrew Bayer wrote: > Yup, that was entirely my bad, but is now fixed.

Re: Growing config.xml with GitLab plugin

2017-06-16 Thread Andrew Bayer
Yup, that was entirely my bad, but is now fixed. Sorry about that! A. On Fri, Jun 16, 2017 at 1:09 AM, Dan Tran wrote: > we encounter similar issue with declarative pipeline upgrade > https://groups.google.com/forum/#!topic/jenkinsci-users/lAyx4kof0wU > > For you case, you may need drop and re

Re: Can environment directive be used in post?

2017-06-15 Thread Andrew Bayer
Fwiw, in this case, you'd want to use withCredentials rather than withEnv. A. On Jun 15, 2017 8:18 AM, "Idan Adar" wrote: > Thanks. I ended doing what I needed doing as part of the last stage > instead of in post. > > On Wednesday, June 14, 2017 at 9:54:06 PM UTC+3, Kevin Burnett wrote: >> >> i

Re: Declarative multibranch pipeline: StackOverflowException after trying to specify agent label

2017-06-12 Thread Andrew Bayer
; On Sunday, June 11, 2017 at 9:46:31 PM UTC-7, Dan Tran wrote: >> >> looking forward for a fix. The issue comes back to our Jenkins >> >> @Andrew, you have a list of plugins we can use the downgrade back? >> >> -Dan >> > -- > You received this mes

Re: Declarative multibranch pipeline: StackOverflowException after trying to specify agent label

2017-06-11 Thread Andrew Bayer
So this ended up being an actual bug in Declarative. Sigh. Working on it. A. On Sun, Jun 11, 2017 at 8:12 AM ST wrote: > FYI: Downgrading didn't help, not sure what you mean by "dashboard or > monitor". The only similar plugin names I've installed are > >- "Dashboard for Blue Ocean" plugin

Re: Checkout from multiple SCMs/repos in declarative pipeline?

2017-06-08 Thread Andrew Bayer
Yeah, you can use something like stages { stage("foo") { steps { dir("some-dir") { checkout ... } } } On Thu, Jun 8, 2017 at 12:02 PM, Mark Waite wrote: > The scripted pipeline has a dir() and a ws() command which can be used as > a wrapper around a checkout. I have

Re: declarative: how can agent { docker { image 'foo:latest' }} really get the latest version?

2017-05-24 Thread Andrew Bayer
It's running on the agent. If the behavior here is wrong, please do open a JIRA. Thanks! A. On Fri, May 19, 2017 at 1:30 PM Matt Stave wrote: > If you run such a job the 1st time, all is well. > If you run it again, it may or may not decide to grab the latest version > vs. use the one it alrea

Re: fileExists on declarative pipeline

2017-05-24 Thread Andrew Bayer
If statements, variable assignment, and the like are only allowed in Declarative if they're within a script {...} block inside the steps {...} block. A. On Mon, May 22, 2017 at 9:43 AM Thiago Carvalho Davila < thiago.dav...@serpro.gov.br> wrote: > Hello, > > I want to run unit tests only if file

Re: Declarative script: specify build trigger in GUI or script?

2017-05-24 Thread Andrew Bayer
A couple questions - is this being specified in a Jenkinsfile coming from SCM? Have you run the build once? A. On Mon, May 22, 2017 at 10:00 AM David Aldrich wrote: > Hi, > > I'm confused about how to specify a build trigger for a declarative > script. I want the job to be triggered by an SCM c

Re: Request to be Maintainer of AWS Device Farm Plugin

2017-04-19 Thread Andrew Hawker
so I cannot pass on permissions. On Wednesday, April 19, 2017 at 9:08:17 AM UTC-7, Bommas, Chandra wrote: > > Hello, > > I would like to be the maintainer of the AWS Device Farm Plugin ( > https://wiki.jenkins-ci.org/display/JENKINS/AWS+Device+Farm+Plugin) > Andrew Hawker, the cu

Re: sshagent with Declarative Jenkinsfile

2017-04-18 Thread Andrew Bayer
I believe it should be - just use the standard sshagent syntax inside the steps block. A. On Mon, Apr 17, 2017 at 7:09 PM, Svend Sorensen wrote: > Is it possible to use the SSH Agent Plugin with a declarative Jenkinsfile? > I haven't found any examples online. > > Svend > > -- > You received th

Re: Groovy Security Advisory

2017-04-14 Thread Andrew Bayer
Basically, the Groovy plugin (and a bunch of other plugins with Groovy scripting involved) now go through the script security process. So by default, not everything is white listed in a system Groovy script. There are no changes to non-system Groovy scripts, and you can approve scripts or signature

Re: Declarative pipelines per branch and reusable stages (keeping it DRY)

2017-04-13 Thread Andrew Bayer
That is the case, yes. And that validation is expecting to find pipeline { ... } at the top-level of the Jenkinsfile - pretty much everything else depends on that. A. On Thu, Apr 13, 2017 at 1:28 PM, Kenneth Brooks wrote: > Got a chance to play around with some of the options for DRYing out my

Re: Declarative Syntax: ability to run multiple stages inside a single agent

2017-04-12 Thread Andrew Bayer
Are you wanting to use the same node for most, if not all, of the pipeline? If so, just use the top level agent directive. A. On Wed, Apr 12, 2017 at 1:18 PM Kenneth Brooks wrote: > As a user, I want to run multiple stages inside a single agent. > > Today we use the mesos plugin and spin up and

Re: How to replace withCredentials([usernamePassword ... with credentials(...)

2017-04-06 Thread Andrew Bayer
FOO = credentials('id') will create environment variables FOO_USR and FOO_PWD On Apr 6, 2017 8:42 AM, "Idan Adar" wrote: Perhaps Robert (CCed) can help? On Thursday, April 6, 2017 at 6:26:00 PM UTC+3, Idan Adar wrote: > > In declarative pipeline, one can use credentials() instead > of withCred

Re: Valid use of environment directive

2017-04-06 Thread Andrew Bayer
No, that's definitely not intended to work that way, and it probably won't work. On Apr 6, 2017 9:09 AM, "Idan Adar" wrote: > Yes, that's how I do it in my actual Jenkinsfile, but I thought maybe in a > Declarative pipeline this works differently... > > On Thursday, April 6, 2017 at 6:57:13 PM U

plugin download question

2017-03-22 Thread Andrew
Hi, I am lucky enough to work in an environment where Jenkins doesn't get to see the internet, ever. Is there any way to easily download a snapshot of >all< of the plugins for offline usage? It is a bit painful at times to update and maintain things. It would make my life much easier. Thanks --

Re: Access build duration inside declarative pipeline

2017-03-21 Thread Andrew Bayer
Correct! A. On Tue, Mar 21, 2017 at 1:56 PM, Nick Le Mouton wrote: > Thanks Andrew, looks good. So with this patch currentBuild.duration should > be non 0 and there should be currentBuild.durationString, is that correct? > > Nick > > On Tuesday, March 21, 2017 at 2:19:18

Re: Access build duration inside declarative pipeline

2017-03-20 Thread Andrew Bayer
And a PR up at https://github.com/jenkinsci/workflow-support-plugin/pull/33 On Mon, Mar 20, 2017 at 6:11 PM, Andrew Bayer wrote: > This is more of a general Pipeline matter than just Declarative, fwiw. > I've opened https://issues.jenkins-ci.org/browse/JENKINS-42952 for this > and

Re: Access build duration inside declarative pipeline

2017-03-20 Thread Andrew Bayer
This is more of a general Pipeline matter than just Declarative, fwiw. I've opened https://issues.jenkins-ci.org/browse/JENKINS-42952 for this and will get a PR up shortly. A. On Mar 20, 2017 15:41, "Nick Le Mouton" wrote: Hi, My current jobs use the Slack plugin which notifies a channel when

Re: Future of 'pipeline' in the context of Blue Ocean?

2017-03-12 Thread Andrew Bayer
The Blue Ocean visualization works equally well for any Pipeline, whether Scripted or Declarative. The Pipeline editor in Blue Ocean only works with Declarative, but that's the only difference. On Mar 12, 2017 17:19, "Gardell, Steven" wrote: > Not surprisingly the Blue Ocean site is full of refe

Re: Shared files in pipeline library?

2017-03-07 Thread Andrew Bayer
You can use the libraryResource("some/file/in/library") step to read the contents of a file from a shared library, which you can then write out to a file in the workspace, etc. A. On Tue, Mar 7, 2017 at 8:31 AM, Thorsten Meinl wrote: > Most of our jobs use a bunch of common shell functions whic

Re: Interactive input with new DSL

2017-03-06 Thread Andrew Bayer
Actually, "agent none" on a stage does nothing. I'm still trying to find an effective way to solve this use case in Declarative. A. On Mon, Mar 6, 2017 at 2:25 PM R. Tyler Croy wrote: > (replies inline) > > On Mon, 06 Mar 2017, Travis Camechis wrote: > > > So if you define an agent of none with

Security question

2017-03-02 Thread andrew . lucas
Hi, We have a Jenkins installation running under windows, pulling from SVN, that is building some VS2010/VS2015 projects. Those projects are using google test for automated testing. How does one prevent those google test projects from accessing the build server from outside of the build wor

Re: Double changes in Declarative Pipeline job

2017-02-27 Thread Andrew Bayer
This isn't Declarative specific, fwiw. I'll try to take another look at the change log logic this week. A. On Sun, Feb 26, 2017 at 9:33 PM Andreas Magnusson < andreas.ch.magnus...@gmail.com> wrote: > We happily using Declarative Pipeline here, however I've noticed from the > very beginning that

Stage-level updates in cc.xml

2017-02-24 Thread Andrew Langhorn
c.xml rather than only the full output of the pipeline? Whilst knowing when a pipeline has failed is handy, it would be even better if we could see exactly which stage has failed. Cheers, Andrew -- You received this message because you are subscribed to the Google Groups "Jenkins Users&

Re: Jenkins configuration from script

2017-02-20 Thread Andrew Hammond
st it automatically before going in production. > > On Friday, 17 February 2017 00:44:03 UTC+1, Andrew Hammond wrote: >> >> I'm doing something similar. My current "solution" is as follows: >> >> 1) Jenkins master is run in a docker container. The dockerfile

Re: Git credentials and scm-sync-configuration plugin

2017-02-16 Thread Andrew Hammond
I have this problem, too. I assume there must be a more modern solution to the problem of configuration management and tracking, because this is shockingly bad. On Thursday, May 14, 2015 at 5:07:41 PM UTC-7, dougla...@gmail.com wrote: > > I couldn't find any way of entering Git credentials that

Re: Jenkins configuration from script

2017-02-16 Thread Andrew Hammond
I'm doing something similar. My current "solution" is as follows: 1) Jenkins master is run in a docker container. The dockerfile includes a RUN /usr/local/bin/install-plugins.sh your plugins listed here Currently I have only the following plugins: blueocean (I know it's beta, but it make jenkin

Re: Building docker images with declarative pipeline

2017-02-14 Thread Andrew Bayer
Right now, we don't have a great answer for this other than to use Scripted Pipeline docker.build(...) within a script { } block - we don't allow "foo.bar()" or "foo = bar()" syntax in steps blocks in Declarative unless they're within a script block. Anything within a script block doesn't go throug

Re: [Declarative Pipeline] Configure System -->Pipeline Model Definition reset after restart

2017-02-14 Thread Andrew Bayer
Actually, I've created the JIRA - https://issues.jenkins-ci.org/browse/JENKINS-42027 On Tue, Feb 14, 2017 at 12:40 PM, Andrew Bayer wrote: > Verified - per-folder config settings persist, but global config settings > do not. Whacky. We'll fix it, but please do open that JIRA. &

Re: [Declarative Pipeline] Configure System -->Pipeline Model Definition reset after restart

2017-02-14 Thread Andrew Bayer
Verified - per-folder config settings persist, but global config settings do not. Whacky. We'll fix it, but please do open that JIRA. A. On Tue, Feb 14, 2017 at 12:36 PM, Andrew Bayer wrote: > Ah, the label and registry settings - could you please open a JIRA for > that? > &g

Re: [Declarative Pipeline] Configure System -->Pipeline Model Definition reset after restart

2017-02-14 Thread Andrew Bayer
Ah, the label and registry settings - could you please open a JIRA for that? On Tue, Feb 14, 2017 at 11:50 AM, Dan Tran wrote: > > all the settings at Manage Jenkins --> Configure System --> Pipeline > Model Definition are empty after jenkins restart > > The jobs are still available > > Tha

Re: [Declarative Pipeline] currentBuild.result is not set

2017-02-11 Thread Andrew Bayer
Yup - currentBuild.result isn't actually set until either something is explicitly setting the status (like a failure or unstable) or the build ends, at which point it's set to success if still null. So basically null is equivalent to success. A. On Sat, Feb 11, 2017 at 9:49 AM Dan Tran wrote: >

Re: [Declarative pipeline] Setting environment variable based on other environment var

2017-02-08 Thread Andrew Bayer
I'm on a plane right now so can't find it, but there's an open ticket for this and we'll be looking into it shortly. A. On Feb 8, 2017 08:19, "Staffan Forsell" wrote: > Using the following declarative pipeline: > > pipeline { > agent any > environment { > WSROOT = "${env.WORKSPACE}" >

Re: [Declarative Pipeline] Using Dockerfile not in root of checkout

2017-02-06 Thread Andrew Bayer
I've got a PR up for this now - https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/107 A. On Sun, Feb 5, 2017 at 9:01 PM, Staffan Forsell wrote: > Hmmm, of course I found https://issues.jenkins-ci.org/browse/JENKINS-41668 > a couple of minutes later... > > On Sunday, 5 February

Re: [Declarative Pipeline] Running all stages under a sub directory

2017-01-31 Thread Andrew Bayer
Seems related to https://issues.jenkins-ci.org/browse/JENKINS-41118 but distinct - open a JIRA and we'll triage it when we go through feature requests late next week or the week after to figure out what comes next. =) A. On Mon, Jan 30, 2017 at 10:45 PM, Dan Tran wrote: > Hi > > My DP runs unde

Re: how to setup pipeline {agent} from the private Docker hub repo?

2017-01-27 Thread Andrew Bayer
We recently added registry support to Declarative - register the credentials needed for the private registry in Jenkins' UI and then you can do: agent { docker { image "image name" registryUrl "https://wherever"; registryCredentialsId "credsId" } } On Fri, Jan 27, 2017 at 9:43 AM

Jenkins and Docker With Windows Containers

2017-01-23 Thread Andrew Gray
Hey, I am trying to use Docker Containers as build slaves for our Jenkins environment using the Docker Plugin. From Jenkins, I am able to provision a slave, and the docker container appears on my Jenkins Executor list, however it stays "offline". I appears like the the container is being starte

Re: Timeout message unclear. Bug?

2017-01-17 Thread Andrew Bayer
Can you post your full pipeline? It looks like there are other errors going on here. A. On Tue, Jan 17, 2017 at 10:31 AM, Sam K wrote: > In declarative pipeline, I've created a timeout block like so > > timeout(time:1, unit:'HOURS') { > > // Do something here > > } > > When the timeout occurre

Re: [Declarative Pipeline] Non-executed stages report success

2017-01-11 Thread Andrew Bayer
That's a good question - I'll look into that. A. On Wed, Jan 11, 2017 at 3:00 PM Chris Carson wrote: > https://issues.jenkins-ci.org/browse/JENKINS-41009 > > Is there a way to access these failure tags from rest api? > > > On Wednesday, January 4, 2017 at 11:50:10

Re: [Declarative pipepipe] Reusable stages ?

2017-01-08 Thread Andrew Bayer
No, it is not. You can put the contents of the steps block into a library function and call that, but not the entire stage or stages blocks. A. On Sat, Jan 7, 2017 at 10:52 PM Dan Tran wrote: > > Hi > > is it doable to place "stages" block into a jenkinsfile lib for reuse > purpose? if possible

Re: [Declarative Pipeline] TestNg report

2017-01-06 Thread Andrew Bayer
That should still work - though it'd be great if the testng plugin could get a "@Symbol("testng")" annotation added to its descriptor! A. On Thu, Jan 5, 2017 at 2:17 AM, Dan Tran wrote: > > Hi > > Current pipeline, this is the snippet for testng report > > step([$class: 'Publisher', reportFilen

Re: Jenkins not starting and killing Tomcat on Solaris VM

2017-01-05 Thread Andrew
Julien No, no fix, no update. Ended up retaining on physical kit. :-( On Wednesday, August 5, 2015 at 8:51:37 PM UTC+10, Julien Verger wrote: > > Hello Andrew, > > did you hav any update since this post? I've a same problem to solve. > > Regards > -- You received th

Re: [Declarative Pipeline] Non-executed stages report success

2017-01-04 Thread Andrew Bayer
That's actually addressed with Blue Ocean - we mark failed stages with a special tag that Blue Ocean knows to treat as a failure. I think we could probably do the same in stage view - could you possibly open a JIRA for that? Thanks! A. On Jan 3, 2017 15:52, "Chris Carson" wrote: > I am trying o

Re: Jenkins Pipeline - fail a stage but continue the build

2017-01-03 Thread Andrew Bayer
There's no *easy* way to do this - in Declarative + Blue Ocean, we now have this capability, but it relies on adding some additional metadata to the "failed" stage that Blue Ocean reads. That said, if you don't care about the visualization (i.e., the stage is marked as passed in Blue Ocean or the S

Re: [Declarative Pipeline] default params not working after checkout

2017-01-02 Thread Andrew Bayer
This is using param.xyz? That should be getting the default value - if it's not, definitely open a JIRA. On Jan 2, 2017 18:21, "Dan Tran" wrote: > Hi > > My Jenkinsfile has a few parameters with default values and are fed into > maven step via -Dxxx=${param.yyy} > > the Maven job bails right a

Re: declarative pipeline with File Data Provider

2017-01-02 Thread Andrew Bayer
Could you open a JIRA regarding configFileProvider support in Declarative? Feels like this is something we should make more elegant. A. On Jan 1, 2017 01:16, "Dan Tran" wrote: Hi, I am experimenting with declarative pipeline and try to port this configFileProvider([configFile(fileId: 'mav

Re: Declarative Piepline: conditional execution of stage/steps depending on branch

2016-12-23 Thread Andrew Bayer
I think that should be doable already? Just remember that if "currentBuild.result == null", that's success. A. On Wed, Dec 21, 2016 at 1:54 PM, Omeka wrote: > Thanks andrew it works very well. > > do you have any intention to make failire/success/etc... usable in

Is there any way of hosting an internal Jenkins plugins repository?

2016-12-20 Thread Andrew Ducker
Jenkins plugins are downloaded from a wide variety of sources (as the Jenkins downloads site actually forward you on to a mirror). Our security people aren't willing to open up arbitrary locations to allow Jenkins to pull in updated plugins, and managing them by hand is a massive pain (particul

Running a local Jenkins plugin repository?

2016-12-20 Thread Andrew Ducker
Jenkins plugins are downloaded from a wide variety of sources (as the Jenkins downloads site actually forward you on to a mirror). Our security people aren't willing to open up arbitrary locations to allow Jenkins to pull in updated plugins, and managing them by hand is a massive pain (particul

Jenkins - Git error: FATAL ERROR: Disconnected: No supported authentication methods available (server sent: publickey)

2016-12-19 Thread Andrew
to remove spaces as a cause, I'm at a loss on how to proceed. There is no debugging I can see on the git.exe that might report exactly what is going wrong. Thanks ... Andrew -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group.

Re: Block Jobs from running on same nodes

2016-12-09 Thread Andrew Bayer
Yup, that's exactly the use case Throttle Concurrent Builds plugin was written for. =) On Dec 8, 2016 07:59, "Andrew Gray" wrote: > Hey all, > > Is there a known way to be able to block a job from running on some node > ONLY IF there are other specified jobs running

Block Jobs from running on same nodes

2016-12-08 Thread Andrew Gray
Hey all, Is there a known way to be able to block a job from running on some node ONLY IF there are other specified jobs running on that same node? For example, pretend you have 2 different build jobs ( Master build and CI build ), and two nodes with two executors Jenkins can assign jobs to. Sa

Re: Declarative Piepline: conditional execution of stage/steps depending on branch

2016-11-21 Thread Andrew Bayer
Hi - In the latest release of Declarative Pipelines (0.6), we've got a new "when" section on stages to do exactly what you want - https://github.com/jenkinsci/pipeline-model-definition-plugin/wiki/Advanced#controlling-when-stages-execute A. On Wed, Oct 26, 2016 at 9:09 AM, Eddard wrote: > I re

Re: Trigger from pipeline model definition plugin

2016-11-21 Thread Andrew Bayer
So the symbol on SCMTrigger was originally "scm", which turned out not to work in Pipeline due to overlapping with the auto-generated "scm" global variable. I changed the symbol to "pollScm" as of core Jenkins 2.22, but that means it won't work in Declarative on earlier core versions. In scripted P

Re: New version of Declarative Pipelines (pipeline-model-definition-plugin) released

2016-11-04 Thread Andrew Bayer
Wiki page restored, and I already did the incompatible version thingie. =) A. On Thu, Nov 3, 2016 at 1:15 PM, James Dumay wrote: > Thanks Andrew for all your work to improve the ease-of-use for Pipeline! > > > On Thursday, November 3, 2016 at 4:29:02 AM UTC+11, Andrew Bayer wrot

New version of Declarative Pipelines (pipeline-model-definition-plugin) released

2016-11-02 Thread Andrew Bayer
FYI - I've released version 0.5 of Declarative Pipelines today, and it does have a significant syntax change that breaks compatibility with earlier versions. See https://github.com/jenkinsci/pipeline-model-definition-plugin/wiki/Version-History-and-Changes#version-05 for more info, but the gist is

Re: New Pipeline plugin: Pipeline Model Definition

2016-10-08 Thread Andrew Bayer
and the existing > jenkinsfile's starting working again. It appears the installation of the > plugin force adopts all jenkinsfile's to use configuration over code, is > this expected? is there a way to differentiate between the two options for > certain jenkinsfiles? > >

How can I set the RequestHeaderSize for the built-in copy of Jetty?

2016-10-06 Thread Andrew Ducker
If I use the Kerberos authentication of the plugin at https://wiki.jenkins-ci.org/display/JENKINS/Negotiate+SSO+for+Windows then it causes Jenkins to return a 413 (Request entity too large). This is because the client sends a Kerberos ticket in the request headers, and that makes the size much

Re: How to parametrize credentials for Git Plugin?

2016-09-30 Thread Andrew Pashkin
Ooops, a duplicate thread, please ignore this one and use: https://groups.google.com/d/msg/jenkinsci-users/IW7jHlDDshs/TPB0v1VqAQAJ -- 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

How to parametrize credentials for Git Plugin?

2016-09-30 Thread Andrew Pashkin
Hello, everybody! I'm using Git Plugin for my project and it's possible to parametrize many of it's options though the regular way of using environment variables substitution, like " Repository URL: ${MY_PARAMETER}". But this is not t

How to parametrize credentials for Git Plugin?

2016-09-30 Thread Andrew Pashkin
x27;s possible to set it using Java API? So I would be able to write in my script something like jenkinsProject.setSetting('credentialsID', 'c9a78310-3bae-4747-b964-aff9a451c513')? -- With kind regards, Andrew Pashkin. cell phone - +375 (44) 492-16-85 Skype - waves_in_fluids e-mail - andrew.p

  1   2   3   4   >