Re: Jenkins pipeline : GitHub PR and Multibranch

2022-07-27 Thread Fahad Ijaz
try this link for more understanding.GitHub On Tue, Jul 26, 2022 at 11:51 AM Balaji Lalapeta wrote: > Please go through the below url# > https://www.youtube.com/watch?v=fo36b23cpIU > > On Tue, Jul 2

Re: Jenkins pipeline : GitHub PR and Multibranch

2022-07-25 Thread Balaji Lalapeta
Please go through the below url# https://www.youtube.com/watch?v=fo36b23cpIU On Tue, Jul 26, 2022 at 12:04 PM Albert Shamsiyan < albert.shamsi...@gmail.com> wrote: > Hi > > Trying to implement a hook between GitHub and Jenkinsfile which shall be > executed once created PR and will be a condition

Re: Jenkins pipeline hangs when pod deleted

2020-11-19 Thread Miquel Catany
``` def worker_pipeline(){ try{ node("") { stage('Checkout SCM'){ git branch: '', credentialsId: 'xxx', url: 'https://github.com/x/.git' } container(''){ stage('Run Builds'){ "base_image": { sh 'gcloud buil

Re: Jenkins pipeline hangs when pod deleted

2020-11-19 Thread Miquel Catany
Cannot contact ci-worker-dind-jsvbh: hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@13b5e548:JNLP4-connect connection from 10.251.13.10/10.251.13.10:48846": Remote call on JNLP4-connect connection from 10.251.13.10/10.251.13.10:48846 failed. The channel is closing down

Re: Jenkins pipeline Dependency-Check Plugin v5 migration

2020-06-22 Thread Adam Horn
Did you figure out how to do this? I just updated to v5 and am running into the same issues. On Tuesday, August 6, 2019 at 8:01:48 AM UTC-7, ya wrote: > > Hi all. > We use jenkins pipelines and want start migrate to new version of OWASP > Dependency-Check plugin, but can't understand new synt

Re: Jenkins Pipeline Error

2020-05-08 Thread Gajanan Mahajan
when directive is to execute if stage should be executed or not. You might have when directive at wrong place. Please refer to document for more details - -https://www.jenkins.io/doc/book/pipeline/syntax/#when On Fri, May 8, 2020 at 5:40 PM MANISH JOSHI wrote: > Please help out > > java.lang.NoS

Re: Re: Jenkins pipeline Testing

2020-03-24 Thread Jan Monterrubio
*To: *jenkinsci-users@googlegroups.com > *Subject: *Re: Jenkins pipeline Testing > > > > We unit test our pipelines with : > > > > https://github.com/jenkinsci/JenkinsPipelineUnit > > > > We have some integration tests for them that require the Jenkins Test Rul

RE: Re: Jenkins pipeline Testing

2020-03-24 Thread Jheison Rodriguez
Thanks for your response, Do you have any repo where I can find more examples?. Do you know if it’s possible to test declarative pipelines Best regardsJheison Rodriguez From: Jan MonterrubioSent: Tuesday, March 24, 2020 6:53 PMTo: jenkinsci-users@googlegroups.comSubject: Re: Jenkins pipeline

Re: Jenkins pipeline Testing

2020-03-24 Thread Jan Monterrubio
We unit test our pipelines with : https://github.com/jenkinsci/JenkinsPipelineUnit We have some integration tests for them that require the Jenkins Test Rule and a docker agent that we configure as an external resource (junit4) Overall the pipeline unit is super nice! We also use the Jenkins pl

Re: Jenkins pipeline git branch push trigger

2020-02-23 Thread Ramanathan Muthaiah
On Tuesday, November 12, 2019 at 3:58:41 AM UTC+5:30, Jerome Godbout wrote: > > Hi, > I'm using my Jenkins file pipeline to checkout and build, I have a > pipeline project I would like to get triggered only when a push to a > specific branch occur. The Git repos is host on bitbucket cloud service

Re: Jenkins pipeline jobs being triggered by github webhooks from wrong repository

2020-02-23 Thread Ramanathan Muthaiah
On Wednesday, February 12, 2020 at 10:22:30 PM UTC+5:30, James Robson wrote: > > I have 1 code repo that should be triggering jobs, and a separate repo for > a jenkins pipeline library. There are 2 jenkins jobs that use the ‘GitHub > hook trigger for GITScm polling’ build trigger, both are pipeli

Re: Jenkins pipeline generates NoSuchFileException when started twice in parallel

2019-12-16 Thread 'monger_39' via Jenkins Users
Hi Ivan,totally missed the answer before ...Reason I am loading from the '@script' folder is actually mostly just historic; this code was handed to me as example howto do things. I am aware of the 'shared-libraries' feature, but never really got around to migrating the code to that. Apparentlyt

Re: jenkins pipeline scripts are blank in the UI after upgrade

2019-12-03 Thread kochrist
The same issue has been reported here: https://issues.jenkins-ci.org/browse/JENKINS-59145 The solution was to skip upgrading the "Prometheus metrics" plugin. If you have already updated the plugin, then downgrade it and restart JS. On Thursday, October 17, 2019 at 8:22:26 PM UTC+3, kochrist wrote

Re: jenkins pipeline scripts are blank in the UI after upgrade

2019-10-25 Thread kochrist
I've just updated Jenkins again from from 2.176 to 2.190.1, this time I didn't update the plugins and the issue didn't come up. -- 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, s

Re: jenkins pipeline scripts are blank in the UI after upgrade

2019-10-17 Thread kochrist
Right, I have only updated the suggested plugins, the ones that were marked eligible for update. No I didn't try updating then all before reverting back. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop r

Re: jenkins pipeline scripts are blank in the UI after upgrade

2019-10-17 Thread Mark Waite
Can you explain what you mean by "the ones without dependencies"? I would guess you mean that you updated some of the plugins when you switched to the new release, but did not update all of the plugins. If so, then you may have detected an incomplete or incorrect definition of dependencies betwee

Re: jenkins pipeline - how to add another parallel to 2 other parallel.

2019-09-12 Thread Prashanth Linga
Thanks and I appreciate your reply. Do you have a example to build this up in both scripted and declarative pipeline. Best regards, Prashanth On Wednesday, September 11, 2019 at 4:59:17 AM UTC-5, Prashanth Linga wrote: > > Hello friends / Jenkins Users, > I want stage 9 to be parallel to first

RE: jenkins pipeline - how to add another parallel to 2 other parallel.

2019-09-11 Thread Beushausen, Christian
Hi Prashanth, my understanding: What you want to achieve is not possible with declarative pipeline. You should be able to get this done with a scripted pipeline though. Note: Blue Ocean is not able to represent it. Mit freundlichen Gruessen/Best regards, Christian Beushausen I S&T PD SW SWF Int

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

2019-09-02 Thread Raz Lubinsky
right now there is a new option read first comment here: https://stackoverflow.com/questions/40600621/continue-jenkins-pipeline-past-failed-stage/45815702 although I must admit that I had a problem with it and if you can help me there I will be more than happy: https://stackoverflow.com/question

Re: Jenkins Pipeline Maven Plugin - Always skipping downstream job

2019-08-05 Thread Cyrille Le Clerc
You're welcome -- 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 https://g

Re: Jenkins Pipeline Maven Plugin - Always skipping downstream job

2019-08-04 Thread drpm
Hello, Sorry for late response. I tested the new release and it worked :) It's now using the SYSTEM user instead of anonymous. upstreamPipeline (, visibleByDownstreamBuildAuth: true), > downstreamPipeline (, visibleByUpstreamBuildAuth: true), > upstreamBuildAuth: > org.acegisecurity.provide

Re: Jenkins Pipeline Maven Plugin - Always skipping downstream job

2019-08-04 Thread Cyrille Le Clerc
@drpm can you please verify that version 3.8.1 fixes your problem of downstream pipelines not being triggered when using the Authorize Project Plugin https://github.com/jenkinsci/pipeline-maven-plugin/releases/tag/pipeline-maven-3.8.1 On Friday, August 2, 2019 at 4:04:26 PM UTC+2, Cyrille Le Cl

Re: Jenkins Pipeline Maven Plugin - Always skipping downstream job

2019-08-02 Thread Cyrille Le Clerc
@drpm can you test https://github.com/jenkinsci/pipeline-maven-plugin/pull/224 ? @daniel could you kindly review the code of https://github.com/jenkinsci/pipeline-maven-plugin/pull/224 it is a simple change ? On Friday, August 2, 2019 at 12:12:01 PM UTC+2, Cyrille Le Clerc wrote: > > Thank you

Re: Jenkins Pipeline Maven Plugin - Always skipping downstream job

2019-08-02 Thread Cyrille Le Clerc
Thank you very much Daniel, I'll have a look On Friday, August 2, 2019 at 12:04:04 PM UTC+2, Daniel Beck wrote: > > > > > On 2. Aug 2019, at 11:49, Cyrille Le Clerc > wrote: > > > > Do you understand why the downstream pipeline is seen as > unauthenticated? Could there be a configuration glitc

Re: Jenkins Pipeline Maven Plugin - Always skipping downstream job

2019-08-02 Thread Daniel Beck
> On 2. Aug 2019, at 11:49, Cyrille Le Clerc wrote: > > Do you understand why the downstream pipeline is seen as unauthenticated? > Could there be a configuration glitch on your setup? > My guess, not having debugged this further: Pipeline Maven Plugin seems to have copied code from Revers

Re: Jenkins Pipeline Maven Plugin - Always skipping downstream job

2019-08-02 Thread Cyrille Le Clerc
Thanks, Could you by any chance create a bug on https://issues.jenkins-ci.org with the label pipeline-maven-plugin detailing the problem so that it will be easier to manage and easier to share knowledge with other users? Do you understand why the downstream pipeline is seen as unauthenticated?

Re: Jenkins Pipeline Maven Plugin - Always skipping downstream job

2019-08-02 Thread drpm
Oh It is using the anonymous user for it. isUpstreamBuildVisibleByDownstreamBuildAuth(org.jenkinsci.plugins.workflow.job.WorkflowJob@3e3adefa[], > org.jenkinsci.plugins.workflow.job.WorkflowJob@7b2c0800[]): > taskAuth: > org.acegisecurity.providers.UsernamePasswordAuthenticationToken@1f: > Us

Re: Jenkins Pipeline Maven Plugin - Always skipping downstream job

2019-08-02 Thread Cyrille Le Clerc
Can you please enable FINER on org.jenkinsci.plugins.pipeline.maven.service.PipelineTriggerService ? I am interested by the message of isUpstreamBuildVisibleByDownstreamBuildAuth https://github.com/jenkinsci/pipeline-maven-plugin/blob/pipeline-maven-3.8.0/jenkins-plugin/src/main/java/org/jenkins

Re: Jenkins Pipeline Maven Plugin - Always skipping downstream job

2019-08-01 Thread drpm
Hello, Thank you for your reply. Yes I do have Jenkins Authorize Project plugin. I tried running it as a SYSTEM and user with admin privileges and still having the same error. *As SYSTEM user: * > > upstreamPipeline (, visibleByDownstreamBuildAu

Re: Jenkins Pipeline Maven Plugin - Always skipping downstream job

2019-08-01 Thread Cyrille Le Clerc
Hello, Could you be using the Jenkins Authorize Project Plugin and impersonate your builds with a user different from SYSTEM? What is the "" displayed in the log message "upstreamPipeline... Username: "? When not using the Jenkins Authorize Proje

Re: Jenkins Pipeline: Variable expansion issues

2019-03-12 Thread Mike Craig
Good thinking, I'll try to do a strip on them and see if that clears it up. On Tuesday, March 12, 2019 at 7:18:14 AM UTC-7, Reinhold Füreder wrote: > > Hi Mike, > > > > it looks like the variables are actually strings with a line break at the > end, and not integers? > > > > HTH Reinhold > >

RE: Jenkins Pipeline: Variable expansion issues

2019-03-12 Thread Reinhold Füreder
Hi Mike, it looks like the variables are actually strings with a line break at the end, and not integers? HTH Reinhold From: jenkinsci-users@googlegroups.com On Behalf Of Mike Craig Sent: Montag, 11. März 2019 23:33 To: Jenkins Users Subject: Jenkins Pipeline: Variable expansion issues Hell

Re: Jenkins pipeline - Remove @tmp folder

2019-02-13 Thread Cos Bug
Hi, Does anyone know exacly what the @tmp forlders are used for ? Regards, Constantin -- 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

Re: Jenkins pipeline

2018-10-03 Thread Mark Waite
You might also consider the detailed Jenkins and npm tutorial at https://jenkins.io/doc/tutorials/build-a-node-js-and-react-app-with-npm/ Mark Waite On Wed, Oct 3, 2018 at 6:52 AM Jan Monterrubio wrote: > Secrets: > > https://support.cloudbees.com/hc/en-us/articles/203802500-Injecting-Secrets-i

Re: Jenkins pipeline

2018-10-03 Thread Jan Monterrubio
Secrets: https://support.cloudbees.com/hc/en-us/articles/203802500-Injecting-Secrets-into-Jenkins-Build-Jobs?mobile_site=true I believe they’d be environment variables. Compiling: if you’re using maven just run mvn clean package or you could have mvn deploy push the artifact to some repository an

Re: Jenkins Pipeline code to run remote shell scripts

2018-09-17 Thread David Karr
On Mon, Sep 17, 2018 at 4:51 AM Arianrhod wrote: > Thanks David, I'm sure you're probably right but I've found so many > different versions of what the 'simple' answer is that I have no real idea > of the correct syntax for the command. Referencing credentials that are > already stored within th

Re: Jenkins Pipeline code to run remote shell scripts

2018-09-17 Thread Arianrhod
Thanks David, I'm sure you're probably right but I've found so many different versions of what the 'simple' answer is that I have no real idea of the correct syntax for the command. Referencing credentials that are already stored within the Jenkins store, for example; some say this is necessar

Re: Jenkins Pipeline code to run remote shell scripts

2018-09-15 Thread David Karr
On Fri, Sep 14, 2018 at 8:49 AM Arianrhod wrote: > Hi, I have to run two shell scripts on a remote server as part of a > pipeline job (scripted, not via the GUI). > > They're both run on the same remote server, but one has to run when the > first finishes, and they run as different users. There

Re: Jenkins pipeline build use Jenkins file from current branch that's being built

2018-08-06 Thread Lance Lyons
unsubscribe On Mon, Aug 6, 2018 at 8:50 AM, Daniel Anechitoaie wrote: > Hi, > > I'm using Jenkins Pipeline job type and I have it build all branches (**) > when a push to BitBucket is made. > Currently the configuration is inside Jenkins but I'd like to have it > inside a Jenkinsfile. > From wha

Re: Jenkins pipeline build use Jenkins file from current branch that's being built

2018-08-06 Thread bearrito
You likely need to change the Trustmodel. By default the Jenkinsfile from the branch being merged into is used. Please consider carefully the impact of allowing users to modify Jenkinsfiles. In my use case this isn't acceptable, however, it might be in yours. Best, -b On Monday, August 6, 2

Re: Jenkins pipeline build use Jenkins file from current branch that's being built

2018-08-06 Thread bearrito
On Monday, August 6, 2018 at 9:50:36 AM UTC-4, Daniel Anechitoaie wrote: > > Hi, > > I'm using Jenkins Pipeline job type and I have it build all branches (**) > when a push to BitBucket is made. > Currently the configuration is inside Jenkins but I'd like to have it > inside a Jenkinsfile. > Fr

Re: Jenkins Pipeline - loop over multi string variable with groovy

2018-04-25 Thread Viacheslav Dubrovskyi
Hi commitChangeset = sh( ... ).trim() will return string. You should transform it to list, for example: commitChangeset = sh( ... ).trim().tokenize(",") where delimiter is "," And then no need to replace "," by " " in |tfvars = commitChangeset.replaceAll("terraform.tfvars", "")| And then yo

Re: Jenkins Pipeline to be generic

2018-04-17 Thread krish
Thanks Guys. That works On Thursday, 12 April 2018 15:06:19 UTC-4, krish wrote: > > Hi, > > how can we use the multiple credentials into jenkins pipeline, in our > environment diff applications have diff userid and password, is their a > smarter way to define this in jenkins pipeline > > thank y

Re: Jenkins Pipeline to be generic

2018-04-14 Thread Srivathsa Reddy
For multiple usages of withCredentials: node { withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: "TokenID_1", usernameVariable: 'USERNAME_1', passwordVariabl

Re: Jenkins Pipeline to be generic

2018-04-13 Thread srivathsa . puliyala
You can use *withCredentials* https://jenkins.io/doc/pipeline/steps/credentials-binding/ On Thursday, April 12, 2018 at 3:06:19 PM UTC-4, krish wrote: > > Hi, > > how can we use the multiple credentials into jenkins pipeline, in our > environment diff applications have diff userid and password,

Re: jenkins pipeline with groovy and use of “Withcredentials”

2018-04-10 Thread Victor Martinez
IIUC, you are missing the body of the withCredentials step, so something like the below should work ... stage ('Upload war to Artifactory') { withCredentials([usernamePassword(credentialsId: 'artifactory', usernameVariable: 'user', passwordVariable: 'password')]) { sh "sudo curl -u

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

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: Jenkins Pipeline with parallel stages

2018-03-01 Thread Daniel Beck
> On 1. Mar 2018, at 08:34, Rachit Agrawal wrote: > > I am new to jenkins and starting to use Pipeline plugin with Declarative > syntax. I have a requirement where I want to run multiple stages in parallel. > Attached is the example figure. > > Fig 1. is something that I can create but what I

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

2018-02-22 Thread Baptiste Mathus
Andrew was referring to adding code into Blue Ocean itself, not something doable for end users. Le 22 févr. 2018 08:55, "Cameron Jeffries" a écrit : > Can you please link to the syntax for the Blue Ocean metadata to use? I'm > having trouble finding it. > > On Tuesday, January 3, 2017 at 11:15:

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

2018-02-21 Thread Cameron Jeffries
Can you please link to the syntax for the Blue Ocean metadata to use? I'm having trouble finding it. On Tuesday, January 3, 2017 at 11:15:12 AM UTC-8, Andrew Bayer wrote: > > There's no *easy* way to do this - in Declarative + Blue Ocean, we now > have this capability, but it relies on adding s

Re: Jenkins Pipeline - build job step, ability to return build job number

2017-12-24 Thread Kai
wow, thanks so much! On Saturday, December 23, 2017 at 3:35:42 AM UTC-8, Victor Martinez wrote: > > The build job step returns a RunWrapper object, and in your case you can > use the getId method >

Re: Jenkins Pipeline - build job step, ability to return build job number

2017-12-23 Thread Victor Martinez
The build job step returns a RunWrapper object, and in your case you can use the getId method def buildObj = build job: 'my-test-job', parameters: [string(name: 'enviro

Re: Jenkins pipeline with permissions inside and poll SCM scedule - how to?

2017-11-12 Thread Daniel Beck
> On 12. Nov 2017, at 11:59, seva.post...@gmail.com wrote: > > Jenkins 2.7.4 This release is long obsolete. Does the same issue occur on 2.73.x or newer? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop

Re: Jenkins pipeline editor

2017-11-10 Thread itchymuzzle
> > Does > https://groups.google.com/d/msg/jenkinsci-users/S0_etu_70oY/0jQJRISJAgAJ > help? > Yes, and no. I get hung up with IDEA, and being able to create new projects. I already have the code set up as a java project, and just kept going around in circles trying to get it recognized as

Re: Jenkins pipeline editor

2017-11-10 Thread Daniel Beck
> On 10. Nov 2017, at 19:01, itchymuzzle wrote: > > I use this IDE but wasn't able to get that feature working. Does https://groups.google.com/d/msg/jenkinsci-users/S0_etu_70oY/0jQJRISJAgAJ help? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" gr

Re: Jenkins pipeline editor

2017-11-10 Thread itchymuzzle
> I don't have a license IntelliJ IDEA community version is free. I use this IDE but wasn't able to get that feature working. Visual Studio Code gives me syntax highlighting and auto suggestions. But fuzzy if that is just a groovy thing. -- You received this message because you are subscribe

Re: Jenkins pipeline - Remove @tmp folder

2017-09-07 Thread Ann B
Have you tried: step([$class: 'WsCleanup', cleanWhenFailure: false]) On Saturday, April 30, 2016 at 2:50:06 PM UTC-7, Camilo Nova wrote: > > Hi, > > I'm using the pipeline and when it finishes it leaves an empty folder > 'my-project@tmp' and I don't want to leave it there. > > There is a way

Re: Jenkins pipeline - Remove @tmp folder

2017-09-07 Thread Victor Martinez
It looks like a known issue as far as I see in Jira: - https://issues.jenkins-ci.org/browse/JENKINS-44909 - https://issues.jenkins-ci.org/browse/JENKINS-41805 -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and s

Re: Jenkins pipeline - Remove @tmp folder

2017-09-07 Thread Esdras Neto
Have the very same question :-) Anyone knows? Il giorno sabato 30 aprile 2016 22:50:06 UTC+1, Camilo Nova ha scritto: > > Hi, > > I'm using the pipeline and when it finishes it leaves an empty folder > 'my-project@tmp' and I don't want to leave it there. > > There is a way to disable the folder

Re: Jenkins pipeline and MSBuild 2017

2017-09-02 Thread rezaetezal
Thank you for your reply. This was caused by the interdependent projects not referencing the DLL files they were using (which were the output of other projects) directly. A change was made to the references that has made the builds succeed. I am still not sure why the same commands would fail onl

Re: Jenkins pipeline and MSBuild 2017

2017-09-01 Thread Ivo Bellin Salarin
You describe the problem as a Jenkins problem. Fine. But the level of logs you have doesn't tell you anything, because that's not the tools which is failing. Don't take me wrong, but you should get the msbuild logs at a debug level, and find out what's different between the executions. The initial

Re: Jenkins pipeline parallel execution for different nodes on both Declarative and Scripted

2017-08-25 Thread Kevin Burnett
you can use the "parallel" step in a declarative pipeline. you cannot wrap multiple stages inside a parallel step unless you use scripted (currently. this may be implemented in declarative in the future). it is very hard to read code that is not indented. please indent your code. :) i think thi

Re: Jenkins pipeline parallel execution for different nodes on both Declarative and Scripted

2017-08-23 Thread jothibasu k
I like to add stackoverflow questions also, in the below two questions in one they are saying it doable in Declarative and another saying you need to wrap it with script {} block. which one i we need to follow. https://stackoverflow.com/questions/44585619/parallel-jenkins-pipeline https://stac

Re: jenkins pipeline post actions not working

2017-08-17 Thread red 888
Actually I think understand this design decision now. its kind of useful to have a "hidden" step that cleans up or does other stuff you don't want users to see. As log as its output is visible in the old view I think thats enough for me. On Thursday, August 17, 2017 at 9:28:47 AM UTC-4, Baptist

Re: jenkins pipeline post actions not working

2017-08-17 Thread Baptiste Mathus
Blue Ocean will show/organize things per stage. And post-actions don't generate automatically a bullet/stage, hence is not shown. But I agree it probably should. You should file an issue for it, I think the team can consider this improvement, if not already possibly filed/planned. Le 16 août 2017

Re: jenkins pipeline post actions not working

2017-08-16 Thread red 888
So if I look at it from old jenkins view I can actually see it under the "Stage View" as "Declarative: Post Actions". But how do I view the Declarative: Post Actions in Blue Ocean? On Wednesday, August 16, 2017 at 1:54:27 PM UTC-4, red 888 wrote: > > I setup a post action like in the examples: >

Re: jenkins pipeline script params not recognized, bad substitution error

2017-07-14 Thread Kai
thanks so much, that worked! On Tuesday, July 11, 2017 at 2:26:40 AM UTC-7, Jakub Pawlinski wrote: > > try using double quote: > > sh "python deploy.py ${params.version}" > > I think single quotes do not evaluate strings > -- You received this message because you are subscribed to the Google Gro

Re: Jenkins Pipeline : How can I pass a map obtained from readProperties to withEnv ?

2017-07-12 Thread thomo5000
This question is a top search result on Google so I figure it's worth a late reply. readProperties returns a map and withEnv expects a list so you'll need to convert it. Try something like: > def map = readProperties file:'env.properties' > def properties = map.collect { key, value -> return key

Re: jenkins pipeline script params not recognized, bad substitution error

2017-07-11 Thread Jakub Pawlinski
try using double quote: sh "python deploy.py ${params.version}" I think single quotes do not evaluate strings -- 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

Re: jenkins pipeline script params not recognized, bad substitution error

2017-07-10 Thread Kai
I have a similar issue, I have a build job that is parameterized and am Not able to successfully use that parameter to pass as an argument to my python script in my pipeline stage On Monday, July 10, 2017 at 2:46:17 PM UTC-7, Justin Khoo wrote: > > how can I read in the params from jenkins scrip

Re: Jenkins Pipeline Docker Permissions

2017-07-10 Thread Richard Bywater
Took me a while to come back but just wanted to point out the group approach is what is "recommended" by Docker in the docs @ https://docs.docker.com/engine/installation/linux/linux-postinstall/ So definitely the least hacky of all the solutions :) Richard. On Sun, 9 Jul 2017 at 06:55 Dan Kinon

Re: Jenkins Pipeline Docker Permissions

2017-07-08 Thread Dan Kinon
I'm running centos7 and installing pre-packaged docker 1.12.6 from epel7. I did see the suggestion out in the wild to add the jenkins user to the "docker" (specifically "dockerroot" on my installation) group. I tried this early on and it had no effect. I noticed that the unix socket (/var/ru

Re: Jenkins Pipeline Docker Permissions

2017-07-07 Thread Richard Bywater
I haven't checked for a while but it used to be that if you add a user to the "docker" group they'll be able to access docker commands. Richard On Sat, 8 Jul 2017, 9:27 AM Dan Kinon wrote: > Hello, >I'm running jenkins as a non-root user and am attempting to use a > docker agent in my jenki

Re: Jenkins Pipeline: hang on withEnv

2017-06-20 Thread Allen Fisher
This is weird... I added another debugging echo statement right below the sh "gradle all -D..." This made my hanging builds no longer hang. Allen On Tuesday, June 20, 2017 at 11:04:50 AM UTC-5, Allen Fisher wrote: > > Hi All-- > > I tried to update to 2.46.3 today and for various reasons had to

Re: Jenkins pipeline build stuck forever if node doesn't exist

2017-06-10 Thread Łukasz Zachulski
Two solutions have came to my mind: First method is based on an idea of making REST call from node("master") { sh "curl ..." } to confirm if Jenkins instance contains node. Second method is only applicable if your Pipeline script is "trusted" and it's not run inside "a sandbox". Then you could

Re: Jenkins pipeline shell set $HOME to /var/www

2017-06-08 Thread Kirill Peskov
On 08.06.17 18:50, R. Tyler Croy wrote: > (replies inline) > > On Thu, 08 Jun 2017, Changqin Xie wrote: > >> Using the following Jenkinsfile: >> #!/usr/bin/env groovy >> >> pipeline { >> agent any >> >> stages { >> stage('Deploy') { >> steps { >> sh 'ec

Re: Jenkins pipeline shell set $HOME to /var/www

2017-06-08 Thread R. Tyler Croy
(replies inline) On Thu, 08 Jun 2017, Changqin Xie wrote: > Using the following Jenkinsfile: > #!/usr/bin/env groovy > > pipeline { > agent any > > stages { > stage('Deploy') { > steps { > sh 'echo $HOME' > } > } > } > } > > A

Re: Jenkins pipeline files present in sh blocks not present in later steps

2017-05-10 Thread Cuong Tran
The docs says you can only archive files in your workspace. Try to write to the workspace instead: --output-dir=${WORKSPACE}/report On Wednesday, May 10, 2017 at 4:52:04 AM UTC-7, Berndt Jung wrote: > > I'm pretty new at this, but I'm stumped. > > > Here is my stage block > > stage('Test'

Re: Jenkins Pipeline job build number sequencing jump by 2 ?

2017-05-06 Thread Dan Tran
Yet it is https://issues.jenkins-ci.org/browse/JENKINS-43129 Thanks -Dan On Friday, May 5, 2017 at 11:36:30 PM UTC-7, Stephen Connolly wrote: > > Somebody figured out that there was a plugin causing that. > > I cannot be certain but i think at least one culprit plugin was one of the > HP life

Re: Jenkins Pipeline job build number sequencing jump by 2 ?

2017-05-05 Thread Stephen Connolly
Somebody figured out that there was a plugin causing that. I cannot be certain but i think at least one culprit plugin was one of the HP lifecycle management plugins... could be others out there with same effect. On Sat 6 May 2017 at 01:35, Mark Waite wrote: > I've not seen that in any of my pi

Re: Jenkins Pipeline job build number sequencing jump by 2 ?

2017-05-05 Thread Mark Waite
I've not seen that in any of my pipelines. On Fri, May 5, 2017 at 6:31 PM Dan Tran wrote: > > Hi > > I just notice all of my pipeline jobs build number always jump by 2 at one > of my Jenkins instances, but not on others. Do you see them this behavior > at your side? > > I am at STS 2.46.2 > >

Re: jenkins pipeline dsl - executing a list/map of nodes

2017-04-27 Thread dpreilan
Anybody familiar with internals of 'parallel' or can point me to in source it is implemented? Thanks, Doug On Wednesday, April 26, 2017 at 6:30:10 PM UTC-4, dpreilan wrote: > > > Hey, I am building a map of nodes to run in parallel. > This works fine: > > parallel unit.build_nodes > > > However,

Re: Jenkins Pipeline Plugin - how to inject global passwords?

2017-04-03 Thread kumar naresh
Hi, please help to get the global passwords list from jenkins using the groovy scripting. Regards, kumar. On Monday, April 25, 2016 at 3:25:14 PM UTC+5:30, Harry G. wrote: > > Please note: Credentials Binding works, but currently it is not possible > to mask passwords in the log with this sol

Re: Jenkins Pipeline Groovy Script for TFS as SCM

2017-03-21 Thread Mark Waite
You might check with your TFS administrator to see if they've enabled git access to the TFS repository. If they have, then you can use the git plugin to clone the TFS repository. Mark Waite On Tue, Mar 21, 2017 at 6:52 AM Salman Patel wrote: > Hello Guys, > I have started creating Jenkins job

Re: Jenkins pipeline build failing even though all steps/stages pass

2017-01-03 Thread Raj Sahae
Hi Daniel, You were right, it was an archiveArtifacts step that was failing without any output whatsoever. Thanks, Raj On Tuesday, January 3, 2017 at 12:22:07 PM UTC-8, Daniel Beland wrote: > > > I had a similar problem today and sadly my conclusion is it can be > anything. > > In my case the

Re: Jenkins pipeline build failing even though all steps/stages pass

2017-01-03 Thread Daniel Beland
I had a similar problem today and sadly my conclusion is it can be anything. In my case the culprit was the archiveArtifacts that failed because it couldn't find anything to archive. It silently marked the build as failed without any output in the console or the build pipeline steps page. Sinc

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: Jenkins pipeline build failing even though all steps/stages pass

2017-01-03 Thread jerome
Take care a ill formated script part make the build as failing. use some print line to make sure you reach the end of the script. Many script error are way too silent into JenkinsFile. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubs

Re: Jenkins pipeline build failing even though all steps/stages pass

2016-12-28 Thread Raj Sahae
Hi David, Here is a gist of the grepped failure output. I had to remove two segments of the output but I looked over them, very carefully, for any sort of failure indication and there was none. https://gist.github.com/rajsahae/743aed54f145bd664f65051082c622a5 The rest of the output, you can se

Re: Jenkins pipeline build failing even though all steps/stages pass

2016-12-28 Thread Raj Sahae
Hi David, I'm looking through the output and there is no way for me to fully sanitize this without deleting large swaths of output at which point I can't guarantee that you would find the output complete enough. Are there any questions or analysis of the output that I could communicate to you v

Re: Jenkins pipeline build failing even though all steps/stages pass

2016-12-28 Thread Raj Sahae
Hi David, Thanks for your reply. I can certainly attempt to post the output but I will have to go through and sanitize it a bit. That might take some time. Will try to post back here ASAP with something for you to look at. On Wednesday, December 28, 2016 at 3:52:52 PM UTC-8, David Karr wrote: >

Re: Jenkins pipeline build failing even though all steps/stages pass

2016-12-28 Thread David Karr
I'd say we would need to see all of the console output, even though you say it reports failure. On Tue, Dec 27, 2016 at 11:59 PM, Raj Sahae wrote: > Hi all, > > I have a pipeline that I consider to be pretty basic. Nothing complicated in > terms of the logic. Here is a gist > (https://gist.github

Re: Jenkins pipeline with github organization folder, avoiding multiple checkouts

2016-12-23 Thread David Karr
On Thu, Dec 22, 2016 at 12:39 AM, Jordan Soet wrote: > I'm trying to set up Jenkins with the Github Organization Folder plugin but > I'm finding that it's checking out our entire repository twice, once in the > @script directory and once in the actual workspace directory. This is a > problem for u

Re: Jenkins Pipeline not triggered after Github post

2016-12-18 Thread terkaly
Ok, I upgraded to 1.25 for the Github plugin and it read, "Build when a change is pushed to Github?" But it still isn't kicking off my Pipeline. What could it be? I have the Jenkins log verifying that the POST happened. On Sunday, December 18, 2016 at 9:17:35 PM UTC-8, ter...@gmail.com wrote:

Re: Jenkins Pipeline not triggered after Github post

2016-12-18 Thread terkaly
BTW, many of the demos show, "Build when a change is pushed to Github". However, my system read, "GitHub hook trigger for GITScm polling" How do I get, "Build when a change is pushed to Github?" Perhaps that is my problem. Looking for a little bit of clear guidance on how to actually kick off

Re: Jenkins pipeline and Gitlab webhooks does not work

2016-12-08 Thread Stephen Connolly
So at least for the branch-source variants I'm working on GitHub and bitbucket updates to integrate with the new eventing subsystem in SCM API 2.0... Not sure if that will help gitlab... On Thursday, 8 December 2016, Daniel CABRERA wrote: > Thx for the link. well this ticket was open on october

Re: Jenkins pipeline and Gitlab webhooks does not work

2016-12-08 Thread Daniel CABRERA
Thx for the link. well this ticket was open on october and nobody is working on it. Seams like we are at the bottom of the backlog On 8 Dec 2016 8:07 PM, "Torsten Reinhard" wrote: > Hi, > > using BitBucket (Server) I had the same problem. This is already adresses > in https://issues.jenkins-ci.o

Re: Jenkins pipeline and Gitlab webhooks does not work

2016-12-08 Thread Torsten Reinhard
Hi, using BitBucket (Server) I had the same problem. This is already adresses in https://issues.jenkins-ci.org/browse/JENKINS-38447 Maybe the analysis in there may explain why it also doesn´t work for Gitlab. Regards, Torsten Am Donnerstag, 8. Dezember 2016 03:49:04 UTC+1 schrieb xwyxw: > > H

Re: Jenkins Pipeline : How could I access the git repository cloned at job start

2016-12-05 Thread Jean-Luc Pinardon
e workspace that jenkins creates to checkout >> Jenkinsfile. >> >> But you can checkout the same repo (or other polled SCM URLs) with this >> command: >> >> checkout scm >> >> >> Regards, >> Christoph >> >> >> >> &g

  1   2   >