Re: how can I get the value of a global variable within a function in a pipeline?

2021-02-11 Thread Victor Martinez
You can simplify it quite a bit with the post stage event https://www.jenkins.io/doc/book/pipeline/syntax/#post The example pipeline uses the post *stages* section, you can use the one specific the stage 3 Another example can be found in

how can I get the value of a global variable within a function in a pipeline?

2021-02-11 Thread Jesus Fernandez
I have a declarative pipeline with a few steps. at the end I send a message to slack with some statistics of the compilation times and some more information. I want to send in case it fails the stage at which it fails. I have set a global variable but the function does not seem to be able to

Re: how can I get the value of a global variable within a function in a pipeline?

2021-02-11 Thread Ven H
https://www.jenkins.io/doc/book/pipeline/jenkinsfile/#using-environment-variables Regards, Venkatesh On Thu, Feb 11, 2021 at 11:44 PM jesus fernandez < jesusfernandez0...@gmail.com> wrote: > Thanks for replying, any example or any link where to get information > about how to do so? I am a bit

Multibranch pipelines and jobDSL

2021-02-11 Thread kuisathaverat
Hi, We are trying to move to jobDSL our job definitions, at this point we have hit an issue that I am not sure we can move forward. To define the Multibranch Pipeline jobs everithing works fine except the pull request discovery settings, Because ForkPullRequestDiscoveryTrait and

Re: how can I get the value of a global variable within a function in a pipeline?

2021-02-11 Thread jesus fernandez
Thanks for replying, any example or any link where to get information about how to do so? I am a bit new to Jenkins El jueves, 11 de febrero de 2021 a las 19:11:24 UTC+1, venh...@gmail.com escribió: > Try defining it inside the "environment" stage / step. > > Regards, > Venkatesh > > > On Thu,

Re: how can I get the value of a global variable within a function in a pipeline?

2021-02-11 Thread Ven H
Try defining it inside the "environment" stage / step. Regards, Venkatesh On Thu, Feb 11, 2021 at 11:26 PM jesus fernandez < jesusfernandez0...@gmail.com> wrote: > > I have a declarative pipeline with a few steps. at the end I send a message > to slack with some statistics of the compilation

how can I get the value of a global variable within a function in a pipeline?

2021-02-11 Thread jesus fernandez
I have a declarative pipeline with a few steps. at the end I send a message to slack with some statistics of the compilation times and some more information. I want to send in case it fails the stage at which it fails. I have set a global variable but the function does not seem to be able to

Can pipelines and stages be nested in a dependency graph? Or is there a better alternative.

2021-02-11 Thread Anil
I have a number of tasks and some are dependent on others for completion. If task A is dependent on tasks B and C completing, then B and C will be child tasks of A. It is also possible that task D is dependent on task B and then we have a DAG. So they will form a dependency graph (Directed

Jenkins Plugins Versions and their compatible versions

2021-02-11 Thread Balu Balaji
Hi All, I am trying to find the Jenkins plugins list and their compatibility to the Jenkins version 2.222.4 version. Could you please help me with the Jenkins 2.222.4 compatible below Plugins versions? *LDAP* *ssh-agent* *apache-httpcomponents-client-4-api* *bouncycastle-api*

nginx pipeline

2021-02-11 Thread pr1
Hello, I am currently working on an OpenShift (=~ Kubernetes) project with a pod containing nginx. Originally, I installed the web server using the OpenShift Catalog. Then a DevOps suggested that I create a pipeline in Jenkins which would build (?) nginx. How do you build a non-Java project

Re: Jenkins URL https://.com/ is not working(502 Bad Gateway)

2021-02-11 Thread 'Dirk Heinrichs' via Jenkins Users
Am Donnerstag, den 11.02.2021, 03:36 -0800 schrieb anilkumar panditi: > Could you please give the docker run command to use 443 , I could (and did, see my previous responses), but I doubt it would make sense, since I don't think the Jenkins inside your container is configured to use SSL, or is

Re: Jenkins URL https://.com/ is not working(502 Bad Gateway)

2021-02-11 Thread anilkumar panditi
Hi Dirk, Could you please give the docker run command to use 443 , Thanks Anil Panditi On Wednesday, 10 February 2021 at 17:39:44 UTC+5:30 dheinric wrote: > Am Mittwoch, den 10.02.2021, 04:00 -0800 schrieb anilkumar panditi: > > docker run --name myjenkins -d -u root -p 8080:8080 -p 5:5

Re: Set-Variable : Cannot process command because of one or more missing mandatory parameters: Name.

2021-02-11 Thread Amedee Van Gasse
That would actually be great and very much appreciated. I've been down the rabbit hole a bit further and found something that may be of interest. >From what I've seen from the error, Jenkins sends compound shell commands to the node, with "&&" as pipeline chain operator. "&&" has the same

java.lang.NoClassDefFoundError: Could not initialize class com.sun.proxy.$Proxy9

2021-02-11 Thread Amedee Van Gasse
Jenkins version: 2.263.3 Jenkins master: Linux Jenkins node: Windows Server 2019 Job: multibranch pipeline with Maven build steps Build fails with hudson.remoting.Channel$CallSiteStackTrace: Remote call to aws-windows-eu-central-1 at