Re: How to Import a java jar on jenkins to be used by Job DSL - Groovy Script ?

2020-12-14 Thread Yeikel
As per the documentation @grap is an option but it is not recommended. You should either create a shared library or call `sh java jar...` and it all depends on what you need. On Mon, Dec 14, 2020 at 11:12 AM Yeikel wrote: > How about shared libraries? > > https://www.jenkins.io

Re: How to Import a java jar on jenkins to be used by Job DSL - Groovy Script ?

2020-12-14 Thread Yeikel
How about shared libraries? https://www.jenkins.io/doc/book/pipeline/shared-libraries/ On Mon, Dec 14, 2020 at 10:55 AM Charles Moulliard wrote: > Hi, > > How can we Import a java jar on jenkins in order to allow a Groovy Script > part of a Job DSL to use java classes packaged within the jar fi

Pause and Resume Jobs later in a different agent

2020-04-09 Thread Yeikel
In my company, we have a Jenkins instance that procures new agents dynamically at runtime. These agents have a one hour limit but I can use as many as I want. For long running pipelines, is there any mechanism to serialize the status of a job and resume it later in a different node? Or do I need t

Re: How do you debug Jenkins pipelines?

2020-04-09 Thread Yeikel
method to make it work is tracing currently. > > Ursprüngliche Nachricht > Von: Yeikel > Datum: 09.04.20 20:21 (GMT+01:00) > An: jenkinsci-users@googlegroups.com > Betreff: How do you debug Jenkins pipelines? > > Besides running the pipeline in a Jenkins insta

How do you debug Jenkins pipelines?

2020-04-09 Thread Yeikel
Besides running the pipeline in a Jenkins instance, is there any other way to validate Jenkins pipelines? I sometimes see myself running a long pipeline after a refactor to see a runtime exception (like invalid methods) I imagine that setting breakpoints is wishful thinking, but is it possible?

Re: Post build actions (e.g. comments) using bitbucket branch source plugin

2020-04-03 Thread Yeikel
ggestion, how would I invoke this as I don't see a way to > do a post build action currently? > > On Friday, April 3, 2020 at 11:00:17 AM UTC-4, Yeikel wrote: >> >> I don't know if it is best way but there is a rest API in bitbucket[1] to >>

Re: Post build actions (e.g. comments) using bitbucket branch source plugin

2020-04-03 Thread Yeikel
I don't know if it is best way but there is a rest API in bitbucket[1] to support this activity and more. [1] https://community.atlassian.com/t5/Bitbucket-questions/Add-comments-to-Pull-Requests-from-API/qaq-p/81069 On Fri, Apr 3, 2020, 10:42 AM Jamie Johnson wrote: > I am trying to setup a mul

Re: How to check inside Jenkins pipeline script if Ansible play-book succeeded or failed.

2020-04-02 Thread Yeikel
Also...if it returns an error code back, you could also use that as well On Thu, Apr 2, 2020, 11:45 AM kalkin powale wrote: > Hi Shifa, > > I don't know if function ansiblePlaybook returns output or not. But, you > can write the result of ansiblePlaybook in some text file. > After completion of

Re: Does Slack Notification plugin know to autodetect build status?

2020-04-02 Thread Yeikel
Not sure if it is the "most elegant way" but I just defined a property for the color and mutated it based on the build status using an if statement. I also have a base message that I modify using the build status and I use the same approach. String color= ... String message = "" If(started){ color

Re: Java and C/C++ and or Javascript in one Jenkinsfile or ?

2019-08-28 Thread Yeikel
Are you talking about building multiple languages or writing pipeline scripts using other languages? Building multiple languages/stacks is fine. Just add different steps. The scripting language supported by Jenkins is groovy which is compatible with Java code. Other than that, as far as I know a

Re: Passing env variable bettween different pipeline

2019-08-19 Thread Yeikel Santana
In Jenkins UI you can configure credentials[1] . Environment variables are inherited from the system and can be used in your pipeline with *env[2]* *Example : env.host* [1]https://jenkins.io/doc/book/using/using-credentials/ [2] https://jenkins.io/doc/pipeline/tour/environment/ On Monday, Aug

Generate stage from script stdout

2019-08-18 Thread Yeikel Santana
Dear Jenkins Community, I am aware that we can generate dynamic stages using groovy scripts. Question is, can we also do this from the standard output of a script? For example, I have a script written in Nodejs that I execute with "sh node script.js" and that It can produce standard output to

Generate Stages from a script stdout

2019-08-18 Thread Yeikel Santana
Dear Jenkins Community. I have a script written in NodeJS that I execute from Jenkins using the shell. I would like to know if it possible to derive stages from its standard output without parsing the output and generating the stages from groovy. I am aware that we can generate dynamic stage