Re: System Groovy Script: hudson.*, jenkins.* and org.jenkinsci.* imports are not found in IntelliJ IDEA

2021-02-16 Thread Yannick Lacaute
Hello, maybe you could you use maven to declare the dependencies instead of downloading them manually. The IDE will download jars and resolve imports automatically, this is what I do when I develop shared library for example. On Tue, Feb 16, 2021 at 1:47 PM Amedee Van Gasse wrote: > I am happy

Re: unable to resolve class org.boon.Boon

2021-02-02 Thread Yannick Lacaute
resolved : Boon is not compatible with java 11, that is why this dependency has been removed from tag 0.80. So, instead of using Boon we can use JsonSlurper to create a valid json object jsonEditorOptions (injected later in JS) Le lundi 1 février 2021 à 21:28:52 UTC+1, Yannick Lacaute a écrit

unable to resolve class org.boon.Boon

2021-02-01 Thread Yannick Lacaute
Hi, I build a pipeline with Extended Choice Parameter with PT_JSON type, the UI was generated as expected. I am now on a new jenkins (2.263) with the last version of the plugin (0.82) and it does not work anymore... So, I just try to run the official samples of the Extended Choice Parameter

Jenkins wait 1 minute between each pipeline commands

2021-01-28 Thread Yannick Lacaute
Hi, I am building a declarative pipeline, everything is working fine but Jenkins waits around 1 minute between each command !! 12:49:31 [pipeline-poc-sys_master-XYZ] Running shell script 12:50:32 + echo hello world ! 12:50:32 hello world ! The command itself is ok (maven build time seems

Re: Extends Choice Parameter: how to use bindings ?

2020-12-30 Thread Yannick Lacaute
SO post : https://stackoverflow.com/questions/65500284/jenkins-how-to-use-bindings-field-of-extended-choice-parameters-plugin Le mardi 29 décembre 2020 à 10:14:32 UTC+1, Yannick Lacaute a écrit : > I don''t understand how to use the bindings field in extendedChoice, I > tried the code

Re: Extends Choice Parameter: how to use bindings ?

2020-12-29 Thread Yannick Lacaute
Oops : you must read "binding.toString()" in the previous code of course. But it does not work... Le mardi 29 décembre 2020 à 10:14:32 UTC+1, Yannick Lacaute a écrit : > I don''t understand how to use the bindings field in extendedChoice, I > tried the code below but it do

Extends Choice Parameter: how to use bindings ?

2020-12-29 Thread Yannick Lacaute
I don''t understand how to use the bindings field in extendedChoice, I tried the code below but it does not work. Any idea ? Binding binding = new Binding() binding["foo"] = "foo" binding["bar"] = "bar" extendedChoice( name: 'wtf', bindings: new Binding(vars).toString(), description: '',

Re: Dynamic parameters (Active choice & Extended Choice)

2020-12-28 Thread Yannick Lacaute
For information, I resolved my problems by using only Extended Choice Parameter with jsonEditorOptions + javascript. I think this is, in December 2020, the only way to something complex with clean code. On Sun, Dec 27, 2020 at 5:50 PM Yannick Lacaute wrote: > I would like to build a dyna

Dynamic parameters (Active choice & Extended Choice)

2020-12-27 Thread Yannick Lacaute
I would like to build a dynamic parameter page BEFORE launching a pipeline: - ACTION: comboBox, from MAJOR/MINOR/FIX/SNAPSHOT. - VERSION: inputText, dynamic value depending on git tags and selected ACTION param. I first tryed to use ActiveChoice to achieve that. But in ActiveChoice groovy

Re: Advice for structuring a maven pipeline with jenkins and git

2020-12-21 Thread Yannick Lacaute
on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/aba673ae-58c1-4988-a25b-9d2515e15e28n%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/aba673ae-58c1-4988-a25b-9d2515e15e28n%40googlegroups.com?utm_medium=email_source=footer> > . > -- Yannick

Re: How to commit and push in a declartive pipeline with auto-checkout ?

2020-12-20 Thread Yannick Lacaute
git push --set-upstream repoUrl branch Le dimanche 20 décembre 2020 à 12:24:16 UTC+1, Yannick Lacaute a écrit : > Ok found it : > > git push --set-upstream repoUrl HEAD: > > > Le dimanche 20 décembre 2020 à 11:45:43 UTC+1, Yannick Lacaute a écrit : > >> Hi, >>

Re: Jenkinsfile Accessing variables from shared libraries

2020-12-20 Thread Yannick Lacaute
Hi, First, if you want "echo", you could just use echo without the sh : echo "hello" Then, if you want to print a variable in the echo, use this syntax : echo "hello ${myGroovyVariable}" You must use double quote, if you use single quote the echo will print *exactly* what you have written

Re: How to commit and push in a declartive pipeline with auto-checkout ?

2020-12-20 Thread Yannick Lacaute
Ok found it : git push --set-upstream repoUrl HEAD: Le dimanche 20 décembre 2020 à 11:45:43 UTC+1, Yannick Lacaute a écrit : > Hi, > > I have this error when I try to commit & push in a pipeline : > > *11:22:35* error: src refspec master does not match any. > *11:22:35*

How to commit and push in a declartive pipeline with auto-checkout ?

2020-12-20 Thread Yannick Lacaute
Hi, I have this error when I try to commit & push in a pipeline : *11:22:35* error: src refspec master does not match any. *11:22:35* error: failed to push some refs to 'http://@foo.net/bar.git ' If I click on the url, I go in

How to commit and push in a declartive pipeline with auto-checkout ?

2020-12-20 Thread Yannick Lacaute
Hi, I have this error when I try to commit & push in a pipeline : *11:22:35* error: src refspec master does not match any. *11:22:35* error: failed to push some refs to 'http://@foo.net/bar.git ' If I click on the url, I go in

Re: Help with error when using PluginsWrapper() in pipeline

2020-12-19 Thread Yannick Lacaute
gt; 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 w

Re: Better way to load all the plugins/dependencies for local java testing using jenkinsrule

2020-12-17 Thread Yannick Lacaute
uestion: >> Is there a script, tool able to grab from jenkins the plugins list and >> next to create the corresponding plugins to be imported for Jenkinsrule >> unit test and GAVs dependencies (pom.xml or build.gradle) ? >> >> Cheers >> >> charles >>

Re: Jenkinsfile Accessing variables from shared libraries

2020-12-17 Thread Yannick Lacaute
kinsci-users/099e3aee-dffc-459d-8eb5-d64204effb58n%40googlegroups.com >> <https://groups.google.com/d/msgid/jenkinsci-users/099e3aee-dffc-459d-8eb5-d64204effb58n%40googlegroups.com?utm_medium=email_source=footer> >> . >> > -- > You received this message because you are subscribed to the Google Group

BUG with libraryResource : No such library resource null could be found.

2020-12-14 Thread Yannick Lacaute
Hi, In a shared library, in a groovy script in /vars, the following code is working perfectly: String call(String stageName) { String cowMsg = libraryResource 'cow.txt' if (cowMsg != null) { def vars = [:] vars['MESSAGE'] = "BEGIN STAGE: ${stageName}" def engine = new

Why 'env' is not equals to 'env.getEnvironment()'?

2020-11-30 Thread Yannick Lacaute
Hi, Could you check my stackoverflow post please : https://stackoverflow.com/questions/64954970/jenkins-pipeline-why-env-is-not-equals-to-env-getenvironment I really don't understand, this could be a bug. -- You received this message because you are subscribed to the Google Groups "Jenkins

Re: How to change defaultValue of input in case of declarative pipeline script?

2020-11-29 Thread Yannick Lacaute
; What I want to make with a script is the following three steps. >>> 1. get "predicted value" using shell script in the git repository. >>> 2. prompt "predicted value" and decide value. >>> 3. run the job with decided value. >>> >>&

Re: Login Problems with issues.jenkins-ci.org - who to contact?

2020-11-27 Thread Yannick Lacaute
gt; On Thu, Nov 26, 2020 at 8:30 PM Yannick Lacaute > wrote: > >> I have reset my password with https://beta.accounts.jenkins.io/ >> I am able to connect on https://beta.accounts.jenkins.io/ >> <https://beta.accounts.jenkins.io/auth/realms/jenkins/account/> but I >&g

Re: Login Problems with issues.jenkins-ci.org - who to contact?

2020-11-26 Thread Yannick Lacaute
I have reset my password with https://beta.accounts.jenkins.io/ I am able to connect on https://beta.accounts.jenkins.io/ but I still cannot log in issues.jenkins-ci.org. any idea ? Le jeudi 26 novembre 2020 à 01:29:55 UTC+1, Mark