Re: Recent Edge upgrade breaks Matrix Plugin view

2024-06-20 Thread geoffroy...@gmail.com
For info, latest Edge for Business version 126.0.2592*.61* works fine 
(broken version is .54)
On Monday 17 June 2024 at 19:51:20 UTC+2 geoffroy...@gmail.com wrote:

> Thanks Mark for the hint
> 126.0.2592.56 is latest Edge version available, probably will need to wait 
> for a futur new release...
>
> On Monday 17 June 2024 at 18:47:48 UTC+2 Mark Waite wrote:
>
>> I'm running Chrome 126.0.6478.62 and not seeing the issue any longer.  I 
>> did see it with a Chrome 125 version
>>
>> On Monday, June 17, 2024 at 10:46:54 AM UTC-6 Mark Waite wrote:
>>
>>> I saw something similar with Google Chrome 125 and then confirmed that 
>>> it was resolved with Google Chrome 126.  Check for a more recent release of 
>>> Microsoft Edge.
>>>
>>> On Monday, June 17, 2024 at 10:44:31 AM UTC-6 geoffroy...@gmail.com 
>>> wrote:
>>>
>>>> Hello
>>>>
>>>> we are facing an annoying issue, where Matrix Jobs are not rendered 
>>>> correctly with latest Edge version:
>>>>
>>>>
>>>>- Version 125.0.2535.92 (Official build) (64-bit) works fine
>>>>- Version 126.0.2592.56 (Official build) (64-bit) display is broken
>>>>
>>>>
>>>> It will not show icons in the matrix table, leaving the table "empty"
>>>>
>>>> Not sure how to debug this, i don't see specific error messages in 
>>>> browser console (F12).
>>>>
>>>> Note is works fine with Firefox and Chrome, but our corporate setup is 
>>>> Edge-centric...
>>>>
>>>> Any recommendations how to investigate the issue?
>>>>
>>>> Regards
>>>>
>>>

-- 
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://groups.google.com/d/msgid/jenkinsci-users/e3b3dca7-c845-4c8d-be7b-c4fd5ed46a48n%40googlegroups.com.


Re: Recent Edge upgrade breaks Matrix Plugin view

2024-06-17 Thread geoffroy...@gmail.com
Thanks Mark for the hint
126.0.2592.56 is latest Edge version available, probably will need to wait 
for a futur new release...

On Monday 17 June 2024 at 18:47:48 UTC+2 Mark Waite wrote:

> I'm running Chrome 126.0.6478.62 and not seeing the issue any longer.  I 
> did see it with a Chrome 125 version
>
> On Monday, June 17, 2024 at 10:46:54 AM UTC-6 Mark Waite wrote:
>
>> I saw something similar with Google Chrome 125 and then confirmed that it 
>> was resolved with Google Chrome 126.  Check for a more recent release of 
>> Microsoft Edge.
>>
>> On Monday, June 17, 2024 at 10:44:31 AM UTC-6 geoffroy...@gmail.com 
>> wrote:
>>
>>> Hello
>>>
>>> we are facing an annoying issue, where Matrix Jobs are not rendered 
>>> correctly with latest Edge version:
>>>
>>>
>>>- Version 125.0.2535.92 (Official build) (64-bit) works fine
>>>- Version 126.0.2592.56 (Official build) (64-bit) display is broken
>>>
>>>
>>> It will not show icons in the matrix table, leaving the table "empty"
>>>
>>> Not sure how to debug this, i don't see specific error messages in 
>>> browser console (F12).
>>>
>>> Note is works fine with Firefox and Chrome, but our corporate setup is 
>>> Edge-centric...
>>>
>>> Any recommendations how to investigate the issue?
>>>
>>> Regards
>>>
>>

-- 
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://groups.google.com/d/msgid/jenkinsci-users/75f3dbc1-881a-4319-97c7-d50c51239c50n%40googlegroups.com.


Recent Edge upgrade breaks Matrix Plugin view

2024-06-17 Thread geoffroy...@gmail.com
Hello

we are facing an annoying issue, where Matrix Jobs are not rendered 
correctly with latest Edge version:


   - Version 125.0.2535.92 (Official build) (64-bit) works fine
   - Version 126.0.2592.56 (Official build) (64-bit) display is broken
   

It will not show icons in the matrix table, leaving the table "empty"

Not sure how to debug this, i don't see specific error messages in browser 
console (F12).

Note is works fine with Firefox and Chrome, but our corporate setup is 
Edge-centric...

Any recommendations how to investigate the issue?

Regards

-- 
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://groups.google.com/d/msgid/jenkinsci-users/cd4bbb30-8d5a-4b3d-ba47-c99642dca9e7n%40googlegroups.com.


Re: LDAP security realm / groovy init script issue

2023-02-14 Thread geoffroy...@gmail.com
Thanks for your help

sure we are also considering CasC, but so far Post Init groovy scripts 

 
have proven to be a viable solution (but now outdated) to perform some 
configuration as code.

My concern here is this is the first time i am facing such issue, where a 
Java class method cannot be called from init groovy script.
Script is directly manipulating Jenkins java code, not API. So i would 
expect that the well-defined and simple (setter) java method 
setDisableRolePrefixing 

 can 
be called from it...

Regards

-- 
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://groups.google.com/d/msgid/jenkinsci-users/6c59421f-a686-40a8-a15e-6089f5d7943cn%40googlegroups.com.


Re: LDAP security realm / groovy init script issue

2023-02-13 Thread geoffroy...@gmail.com
Hi
sorry to bump this thread, but i was not able to find a solution.
Any idea? Shall i create a ticket?
Thx

On Friday, 27 January 2023 at 10:37:21 UTC+1 geoffroy...@gmail.com wrote:

> Hi Thomas
> thanks for your answer.
> i tried it (and googled a bit about java boolean vs Boolean), but no 
> success, still same error.
> I also tried variations of Boolean.TRUE instead of true for another 
> function call, and it worked fine.
> So seems the issue is not related to such confusion...
>
>
> On Friday, 27 January 2023 at 08:15:20 UTC+1 Thomas Markus wrote:
>
>> Hi,
>>
>> Am 26.01.23 um 18:14 schrieb geoffroy...@gmail.com:
>>
>> Hello 
>>
>> i am trying to configure LDAP Security Realm using groovy init script.
>>
>> So far, it works fine, but i am not able to Disable Role Prefixing using 
>> the method  setDisableRolePrefixing 
>> <https://javadoc.jenkins.io/plugin/ldap/hudson/security/LDAPSecurityRealm.html#setDisableRolePrefixing(boolean)>
>>
>> Code:
>> ...
>> instance.securityRealm = new LDAPSecurityRealm(...)
>> instance.securityRealm.*setDisableRolePrefixing*​(true)
>> instance.save()
>>
>> Error is: 
>> groovy.lang.MissingMethodException: N*o signature of method: 
>> hudson.security.LDAPSecurityRealm.setDisableRolePrefixing​()* is 
>> applicable for argument types: (java.lang.Boolean) values: [true]
>> *Possible solutions: setDisableRolePrefixing(boolean)*, 
>> isDisableRolePrefixing()
>> at 
>> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:71)
>>
>> I'm not fluent with groovy/java, and i don't understand why the method is 
>> not recognized although given possible solutions actually list the method...
>>
>> Thanks in advance for your help
>>
>> -- 
>> 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-use...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/eda149c1-dba6-4cc1-ab27-7cfd416d563en%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/eda149c1-dba6-4cc1-ab27-7cfd416d563en%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>>
>> maybe the typical confusion between Boolean and boolean, try
>>
>> instance.securityRealm.setDisableRolePrefixing​(Boolean.TRUE.booleanValue())
>> instead of 
>> instance.securityRealm.setDisableRolePrefixing​(true)
>>
>> best regards
>> Thomas
>>
>

-- 
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://groups.google.com/d/msgid/jenkinsci-users/d587ed9e-2588-46df-b000-4b1926a1f668n%40googlegroups.com.


Re: LDAP security realm / groovy init script issue

2023-01-27 Thread geoffroy...@gmail.com
Hi Thomas
thanks for your answer.
i tried it (and googled a bit about java boolean vs Boolean), but no 
success, still same error.
I also tried variations of Boolean.TRUE instead of true for another 
function call, and it worked fine.
So seems the issue is not related to such confusion...


On Friday, 27 January 2023 at 08:15:20 UTC+1 Thomas Markus wrote:

> Hi,
>
> Am 26.01.23 um 18:14 schrieb geoffroy...@gmail.com:
>
> Hello 
>
> i am trying to configure LDAP Security Realm using groovy init script.
>
> So far, it works fine, but i am not able to Disable Role Prefixing using 
> the method  setDisableRolePrefixing 
> <https://javadoc.jenkins.io/plugin/ldap/hudson/security/LDAPSecurityRealm.html#setDisableRolePrefixing(boolean)>
>
> Code:
> ...
> instance.securityRealm = new LDAPSecurityRealm(...)
> instance.securityRealm.*setDisableRolePrefixing*​(true)
> instance.save()
>
> Error is: 
> groovy.lang.MissingMethodException: N*o signature of method: 
> hudson.security.LDAPSecurityRealm.setDisableRolePrefixing​()* is 
> applicable for argument types: (java.lang.Boolean) values: [true]
> *Possible solutions: setDisableRolePrefixing(boolean)*, 
> isDisableRolePrefixing()
> at 
> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:71)
>
> I'm not fluent with groovy/java, and i don't understand why the method is 
> not recognized although given possible solutions actually list the method...
>
> Thanks in advance for your help
>
> -- 
> 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-use...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/eda149c1-dba6-4cc1-ab27-7cfd416d563en%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-users/eda149c1-dba6-4cc1-ab27-7cfd416d563en%40googlegroups.com?utm_medium=email_source=footer>
> .
>
>
> maybe the typical confusion between Boolean and boolean, try
>
> instance.securityRealm.setDisableRolePrefixing​(Boolean.TRUE.booleanValue())
> instead of 
> instance.securityRealm.setDisableRolePrefixing​(true)
>
> best regards
> Thomas
>

-- 
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://groups.google.com/d/msgid/jenkinsci-users/f0d48b71-04bc-4945-8823-58a42cc39139n%40googlegroups.com.


LDAP security realm / groovy init script issue

2023-01-26 Thread geoffroy...@gmail.com
Hello

i am trying to configure LDAP Security Realm using groovy init script.

So far, it works fine, but i am not able to Disable Role Prefixing using 
the method  setDisableRolePrefixing 


Code:
...
instance.securityRealm = new LDAPSecurityRealm(...)
instance.securityRealm.*setDisableRolePrefixing*​(true)
instance.save()

Error is: 
groovy.lang.MissingMethodException: N*o signature of method: 
hudson.security.LDAPSecurityRealm.setDisableRolePrefixing​()* is applicable 
for argument types: (java.lang.Boolean) values: [true]
*Possible solutions: setDisableRolePrefixing(boolean)*, 
isDisableRolePrefixing()
at 
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:71)

I'm not fluent with groovy/java, and i don't understand why the method is 
not recognized although given possible solutions actually list the method...

Thanks in advance for your help

-- 
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://groups.google.com/d/msgid/jenkinsci-users/eda149c1-dba6-4cc1-ab27-7cfd416d563en%40googlegroups.com.


Re: HTML pages as archived artifacts

2023-01-16 Thread geoffroy...@gmail.com
Hello

I confirm that the publishHTML plugin will provide you with the needed 
feature. And also that you need to relax CSP rules for proper display, as 
mentioned by Xavier.

we use an init.groovy.d script 

 
to configure CSP (Content Security Policy) at Jenkins startup:

System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "sandbox 
allow-scripts allow-same-origin ; default-src 'self' ; img-src 'self' data: 
; style-src 'self' 'unsafe-inline' data: ; script-src 'self' 
'unsafe-inline' 'unsafe-eval' ;")

Might be a bit permissive, but at least generated HTML docs using doxygen, 
mkdocs, ... with custom CSS are properly displaying from the publishHTML 
plugin.

Regards

-- 
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://groups.google.com/d/msgid/jenkinsci-users/9fb0a088-3fa0-4fed-b8d7-85bd0db3e44cn%40googlegroups.com.


Re: email-ext plugin stops without explication

2023-01-09 Thread geoffroy...@gmail.com
Hello

i would recommend configuring a dedicated logger to capture more debug info 
from main Jenkins logs, something like:

[image: Screenshot 2023-01-09 092811.png]

This would give you more context about the email sending, and hopefully 
also during the failure.

Good luck

On Friday, 6 January 2023 at 18:47:13 UTC+1 Xavier Raynaud wrote:

> Hi,
>
> I'm using email-ext plugin on a post-build task of a FreeStyle project and 
> sometime, emails are not send.
> In order to understand why, I activate the "Enable Debug Mode" of this 
> plugin.
>
> I obtain the following output when all is OK:
>
> *18:05:27* Performing post-build step*18:05:27* Checking if email needs to be 
> generated*18:05:27* Email was triggered for: Always*18:05:27* Sending email 
> for trigger: Always*18:05:27* Sending mail from default account using custom 
> from address to...@kalray.eu
> *18:05:27* messageContentType = text/plain; charset=UTF-8
> [...]
> *18:05:27* DEBUG SMTP: message successfully delivered to mail server
> [...]
> *18:05:27* Finished: SUCCESS
>
>
>
> But from time to time, I obtain the following output, and... nothing more. 
> The run just stops here.
>
> *17:55:17* Performing post-build step*17:55:17* Checking if email needs to be 
> generated*17:55:17* Email was triggered for: Always*17:55:17* Sending email 
> for trigger: Always*17:55:17* Sending mail from default account using custom 
> from address to...@kalray.eu
>
> I'm using jenkins 2.346.3 and email-ext 2.92
>
> Any advice to debug this issue ?
> Regards,
> Xavier R.
>
>

-- 
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://groups.google.com/d/msgid/jenkinsci-users/70c2dcad-da36-4e72-971c-3db117fbf0edn%40googlegroups.com.


Re: Unable to Run jenkins job on zos slave

2021-10-25 Thread geoffroy...@gmail.com
can you please show a screenshot of the zos agent configuration (all 
fields)?

On Tuesday, 26 October 2021 at 04:27:21 UTC+2 adharsh...@gmail.com wrote:

> Yes , based on that page , we have configured the slave. But still facing 
> the same issue.
>
> On Mon, 25 Oct 2021, 11:30 pm geoffroy...@gmail.com, <
> geoffroy...@gmail.com> wrote:
>
>> Hi
>> have you checked this page (first results in google): 
>> https://gdams.medium.com/adding-zos-to-our-jenkins-build-farm-27ab5171fb35
>> Seems you might need to tune the JVM options, using  
>> -Dfile.encoding=ISO8859-1
>>
>>
>> On Monday, 25 October 2021 at 13:49:52 UTC+2 adharsh...@gmail.com wrote:
>>
>>> Can you please consider this as priority. Actually  it is critical issue 
>>> for us.
>>> Whether z/ os platform is supported for jenkins or not . If it is 
>>> supported, where we are missing and why we are not getting the output. 
>>> Please help on this issue. 
>>>
>>> On Mon, 25 Oct 2021, 17:12 Adharsha sri,  wrote:
>>>
>>>> We are running just date command or simple echo command  through 
>>>> execute shell but not getting the actual output
>>>>
>>>> On Mon, 25 Oct 2021, 17:09 Adharsha sri,  wrote:
>>>>
>>>>> +□?EA/¤
>>>>> Some thing like above 
>>>>>
>>>>> On Mon, 25 Oct 2021, 15:56 Fabian Cenedese,  wrote:
>>>>>
>>>>>> At 14:21 21.10.2021, you wrote:
>>>>>>
>>>>>> >Can you please help me for this issue
>>>>>> >
>>>>>> >On Wed, 20 Oct 2021, 18:53 Adharsha sri, <>>>>> adharsh...@gmail.com>adharsh...@gmail.com> wrote:
>>>>>> >Hi Team,
>>>>>> >
>>>>>> >I am unable to run a jenkins job ( shell command : date) on zos 
>>>>>> slave . The slave is active and online but getting some gibberish values 
>>>>>> in 
>>>>>> console output. Please help.
>>>>>>
>>>>>> Please post the "gibberish".
>>>>>>
>>>>>> bye  Fabi
>>>>>>
>>>>>> -- 
>>>>>> 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-use...@googlegroups.com.
>>>>>> To view this discussion on the web visit 
>>>>>> https://groups.google.com/d/msgid/jenkinsci-users/20211025102601.192AF48935CC%40macserver.private
>>>>>> .
>>>>>>
>>>>> -- 
>> 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-use...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/61ef6928-d20b-4e57-b30c-658c5e176474n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/61ef6928-d20b-4e57-b30c-658c5e176474n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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://groups.google.com/d/msgid/jenkinsci-users/926ab580-3b04-418c-be05-7dc8742c5205n%40googlegroups.com.


Re: Unable to Run jenkins job on zos slave

2021-10-25 Thread geoffroy...@gmail.com
Hi
have you checked this page (first results in 
google): 
https://gdams.medium.com/adding-zos-to-our-jenkins-build-farm-27ab5171fb35
Seems you might need to tune the JVM options, using  
-Dfile.encoding=ISO8859-1


On Monday, 25 October 2021 at 13:49:52 UTC+2 adharsh...@gmail.com wrote:

> Can you please consider this as priority. Actually  it is critical issue 
> for us.
> Whether z/ os platform is supported for jenkins or not . If it is 
> supported, where we are missing and why we are not getting the output. 
> Please help on this issue. 
>
> On Mon, 25 Oct 2021, 17:12 Adharsha sri,  wrote:
>
>> We are running just date command or simple echo command  through execute 
>> shell but not getting the actual output
>>
>> On Mon, 25 Oct 2021, 17:09 Adharsha sri,  wrote:
>>
>>> +□?EA/¤
>>> Some thing like above 
>>>
>>> On Mon, 25 Oct 2021, 15:56 Fabian Cenedese,  wrote:
>>>
 At 14:21 21.10.2021, you wrote:

 >Can you please help me for this issue
 >
 >On Wed, 20 Oct 2021, 18:53 Adharsha sri, <adharsh...@gmail.com> wrote:
 >Hi Team,
 >
 >I am unable to run a jenkins job ( shell command : date) on zos slave 
 . The slave is active and online but getting some gibberish values in 
 console output. Please help.

 Please post the "gibberish".

 bye  Fabi

 -- 
 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-use...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/jenkinsci-users/20211025102601.192AF48935CC%40macserver.private
 .

>>>

-- 
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://groups.google.com/d/msgid/jenkinsci-users/61ef6928-d20b-4e57-b30c-658c5e176474n%40googlegroups.com.


Re: Jenkins workspace with @2

2021-09-18 Thread geoffroy...@gmail.com
Have you tried https://www.jenkins.io/doc/book/pipeline/syntax/#options

options { disableConcurrentBuilds() }

On Friday, 17 September 2021 at 18:35:02 UTC+2 lalchan...@gmail.com wrote:

> I want default workspace should be working instead of @2. How can I 
> achieve that.
>
> Thanks,
> Lalchand
>
> On Fri, 17 Sep, 2021, 19:14 'Dirk Heinrichs' via Jenkins Users, <
> jenkins...@googlegroups.com> wrote:
>
>> Am Freitag, dem 17.09.2021 um 01:14 -0700 schrieb Lalchand Rajak:
>>
>> I  have a job running in Jenkins and It's creating a workspace with a job 
>> name@2 or sometimes with @3. Can any one help why this is happening?.
>>
>>
>> Because you have multiple builds of that job running at the same time. 
>> You don't want them to build in the same workspace, do you?
>>
>> Bye...
>>
>> Dirk
>>
>> -- 
>>
>> *Dirk Heinrichs*
>> Senior Systems Engineer, Delivery Pipeline
>> OpenText ™ Discovery | Recommind
>> *Phone*: +49 2226 15966 18 <+49%202226%201596618>
>> *Email*: dhei...@opentext.com
>> *Website*: www.recommind.de
>> Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
>> Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan, 
>> Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
>> This e-mail may contain confidential and/or privileged information. If 
>> you are not the intended recipient (or have received this e-mail in error) 
>> please notify the sender immediately and destroy this e-mail. Any 
>> unauthorized copying, disclosure or distribution of the material in this 
>> e-mail is strictly forbidden
>> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
>> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail 
>> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und 
>> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte 
>> Weitergabe dieser Mail sind nicht gestattet.
>>
>> -- 
>> 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-use...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/d1148e47a9d8cdde0f93667657b5a509e99e.camel%40opentext.com
>>  
>> 
>> .
>>
>

-- 
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://groups.google.com/d/msgid/jenkinsci-users/b841e13c-859b-4b9b-9838-01a5b8065870n%40googlegroups.com.


Re: How to use Jenkins file parameter in Pipelines

2021-02-03 Thread geoffroy...@gmail.com
Hello

i don't think File Parameters are supported by Jenkins Pipeline
See https://issues.jenkins.io/browse/JENKINS-27413

Regards

On Wednesday, 3 February 2021 at 07:23:51 UTC+1 shif...@gmail.com wrote:

> My Jenkins pipeline runs on the Slave using agent { node { label 
> 'slave_node1' } }.
>
> I use Jenkins file parameter named uploaded_file and upload a file 
> called hello.pdf
>
> My pipeline contains the following code
> stage('Precheck')
>  { steps
>  { 
>  sh "echo ${WORKSPACE}"
>  sh "echo ${uploaded_file}
>  sh "ls -ltr ${WORKSPACE}/*" 
>
> Output:
> /web/jenkins/workspace/MYCOPY hello.pdf ls: cannot access 
> /web/jenkins/workspace/MYCOPY/* No such file or directory 
>
> As you can see no files were found on the slave WORKSPACE.
>
> Can you let me understand if I'm checking for the uploaded file in the 
> correct location i.e under WORKSPACE directory?
>
> How can I get the file uploaded to the slave's WORKSPACE?
>
> I'm on jenkins version 2.249.1
>
> Can I get this to work at least on the latest version of Jenkins ?
>

-- 
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://groups.google.com/d/msgid/jenkinsci-users/6c6eca43-e676-4cb7-8161-61fb6fd4efd1n%40googlegroups.com.


Re: Portable Maven launch

2021-01-24 Thread geoffroy...@gmail.com
Hello
you probably want to use 
https://www.jenkins.io/doc/pipeline/steps/workflow-basic-steps/#isunix-checks-if-running-on-a-unix-like-node


On Saturday, 23 January 2021 at 21:19:43 UTC+1 jochen@gmail.com wrote:

>
> Hi,
>
> I've got a pipeline file, that should be executable on a Windows build 
> server, and on a Linux build server. The pipeline is launching Maven as 
> follows:
>
> On Linux:
>
> sh "mvn "
>
> But on Windows, this appears not to work, so I've got to use:
>
>bat "mvn.cmd " 
>
> Right now, I can use either of these steps, so have to choose between 
> Windows, and Linux. Is there any possibility to get this portable? I am 
> thinking something like
>
>if (isWindows()) {
>bat "mvn.cmd " 
>} else {
> sh "mvn "
>}
>
> Thanks,
>
> Jochen
>
>
>
>

-- 
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://groups.google.com/d/msgid/jenkinsci-users/9e11dd3d-e291-4fa7-8af8-a1bb36e74a6an%40googlegroups.com.


Re: SSL native (self) Jenkins

2020-12-13 Thread geoffroy...@gmail.com
Hello

if the root CA of your company is not issued from a trusted provider, then 
you will need to deploy the root certificate to all the user browser.
We had such issue when a company was issuing its own certificates using a 
private PKI.
Not user-friendly solution, i would recommend to go for a "real" signing 
authority like Digicert or others.

Other possible solution, maybe you are not providing to Jenkins the full 
SSL certificate, and it is missing the intermediate company certificate... 
In that case you should concatenate final & intermediate (& even root) into 
a single cert file.

Reg. letsencrypt, my understanding was you need your server to be 
accessible from letsencrypt so that you can prove you own it. Alternative 
was using a dedicated entry from your company DNS. But maybe i've 
misunderstood the concept...

Regards

On Sunday, 13 December 2020 at 16:33:12 UTC+1 unli...@gmail.com wrote:

> Thanks, Gianluca.
> This group is very helpful in resolving issues with Jenkins.
>
> The problem is that the SSL certificate installed and certified by the 
> root CA certificate of my Corporation still does not work with the error 
> specified earlier. Therefore, it is important for me to get a good proven 
> and working instruction that will allow me to follow the steps to create, 
> sign, and install the certificate and settings in Jenkins.
> Please share this link to the description or video. Thanks.
>
>
> Hi,
> let’s separate two completely different tasks of what you are trying to 
> achieve:
> 1) Configure Jenkins server to serve itself over SSL / HTTPS
> 2) Use a certificate that your browser recognise as valid
>
> The documents you listed, tell you how to do point 1) and in general is 
> left to you (or to other guides) how to do point 2)
>
> Now, from the error you see on the browser, “CERT_AUTHORITY_INVALID”, I’m 
> pretty sure that you achieved 1)
> So, you actually did it !!
>
> But maybe you don’t know exactly what the error means. So, I’ll try to 
> details to best of my knowledge (I’m not an expert of certificate 
> authorities):
> - the browser tries to reach your Jenkins over port 443 (HTTPS)
> - Jenkins reply correctly and the browser is happy and they start to 
> establish an SSL connection between them (that means they successfully 
> exchanged the SSL certificate and they can encrypt the connection)
> - But the browser wants to be sure that the certificate has been made by 
> some “known” trusted authority … let’s think of it like a known valid 
> institution that produce valid certificates
> - … but when it looks inside the certificates, it can’t find a certificate 
> authority that knows … and then, for safety, it stops the communication and 
> raise an error saying that it can’t “trust” the certificate because it’s 
> not produced by an authority that it knows.
>
> So, Jenkins is setup correctly and you did everything correctly on 
> configure it.
> The last bit that remains for you is to get a “real” valid certificate 
> from a real valid certificate authority … if you can’t, then you can’t 
> avoid the browser giving the CERT_AUTHORITY_INVALID error.
>
> I hope that’s clear.
>
> Cheers,
> Gianluca.
>
> P.S.: The fact Jenkins does not have access to the Internet, doesn’t 
> prevent you to get a valid certificate from a valid authority, like 
> letsencrypt or other certificate authorities like Comodo SSL, and so on.
> We have many servers in our infrastructure without access to Internet but 
> with valid certificate from Comodo SSL and LetsEncrypt
>
>
>
> On 11 Dec 2020, at 20:42, unli...@gmail.com wrote:
>
> SSL native (self) Jenkins
>
> Please help with the working instructions for installing SSL (https) on 
> Jenkins.
> Is it possible to install an SSL certificate on Jenkins without a reverse 
> proxy (nginx)?
>
> I tried these instructions below, but they didn't help (the certificate 
> doesn't work) and I get in the browser:
>
> Your connection is not private
> NET::ERR_CERT_AUTHORITY_INVALID
>
> p.s. My network with Jenkins does not have access to the Internet, so 
> solutions in letsencrypt and similar will not work for me.
>
> links:
> https://wiki.jenkins.io/pages/viewpage.action?pageId=135468777
>
> https://mohitgoyal.co/2017/02/08/securing-your-jenkins-environment-and-configure-for-auditing/
> https://wiki.jenkins.io/display/JENKINS/Running+Jenkins+behind+Nginx
> https://agirlhasnona.me/ops-tutorial-ssl-jenkins/
> https://jansipke.nl/enable-https-jenkins/
> 
> Thanks!
>
> --
> 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-use...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/459881610.20201211234224%40gmail.com
>  
> 

Re: CustomTool installation issue with large Matrix job (race condition)

2020-11-18 Thread geoffroy...@gmail.com
Hello

i was not able to fix this issue using CustomTool plugin, so the solution 
was to get rid of it, and create a dedicated jenkins job to install/update 
the SonarQube build wrapper tool.

In case it can help, find below an excerpt of the pipeline code, which 
relies on File Operations && Pipeline Utility Steps plugins so that it is 
OS agnostic (windows & unix).
This should be wrapped within a Pipeline job taking as parameter a string 
"InstallOnLabel". Each node has a property "SONAR_BUILDWRAPPER_HOME" 
defining installation folder.

properties(
[parameters([string(defaultValue: 'sonar', name: 'InstallOnLabel')])]  
// will execute on all nodes having label 
)

def nodes = nodesByLabel label: "${InstallOnLabel}"
nodes = nodes.sort()

Map tasks = [:]
for (int i = 0; i < nodes.size(); i++) {
def label = nodes[i]
tasks[label] = {
node(label) {
stage(label) {
stage("Install") {
withSonarQubeEnv('sonarqube-prod') {
_hostflavor = isUnix() ? "linux" : "win"
_bwDlUrl = 
"${env.SONAR_HOST_URL}/static/cpp/build-wrapper-${_hostflavor}-x86.zip"
echo
 "[INFO] Installing SonarQube ${_hostflavor} build-wrapper into 
${env.SONAR_BUILDWRAPPER_HOME}/bin"
echo "[INFO] Downloading from ${_bwDlUrl}"
fileOperations([
folderDeleteOperation(folderPath: 
"${env.SONAR_BUILDWRAPPER_HOME}"),
folderCreateOperation(folderPath: 
"${env.SONAR_BUILDWRAPPER_HOME}"),
fileDownloadOperation(url: "${_bwDlUrl}", 
targetFileName: 'build-wrapper-x86.zip', targetLocation: ".", userName: "", 
password: ""),
fileUnZipOperation(filePath: 
'build-wrapper-x86.zip', targetLocation: "${env.SONAR_BUILDWRAPPER_HOME}"),
folderRenameOperation(source: 
"${env.SONAR_BUILDWRAPPER_HOME}/build-wrapper-${_hostflavor}-x86", destination: 
"${env.SONAR_BUILDWRAPPER_HOME}/bin"),
])
}
}
stage("Validate") {
if (isUnix()) {
sh '''
set +e
ls -Rl ${SONAR_BUILDWRAPPER_HOME}
build-wrapper-linux-x86-64
(( $? == 10 )) && exit 0
'''
} else {
bat '''
dir /s "%SONAR_BUILDWRAPPER_HOME%"
build-wrapper-win-x86-64
if ERRORLEVEL 1 ( exit /b 0 )
    exit /b 1
    '''
}
}
}
}
}
}

timeout(time: 5, unit: 'MINUTES') {
parallel(tasks)
}



On Friday, 13 November 2020 at 17:21:07 UTC+1 geoffroy...@gmail.com wrote:

> Hello
>
> I have a fairly large matrix job (30 environments).
>
> For one matrix environment only, I need to install a dedicated tool 
> (Sonarqube build-wrapper).
> CustomTool works perfectly fine for this purpose.
>
> However, as CustomTool installation is defined as a build wrapper step, it 
> get activated for all matrix environments, resulting in the tool being 
> installed 30 times.
>
> As you can imagine, because several jobs are executed in // on the same 
> machine, we regularly face some installation race conditions (mostly on 
> windows) as one job is installing the tool and another one also tries to 
> install it (and the first step of installation seems to be uninstalling)...
>
> Any recommendations on how to workaround this behavior?
>
> Maybe there could be an option not to fail in case of tool installation 
> failure. But as the plugin seems "abandoned" it might not be a great idea 
> to 
> Elsewhere i'll switch to a manual install...
>
>
> [CustomTools] - scm-sonarqube-build-wrapper: Starting installation
> FATAL: Failed to install 
> https://sonarqubeserver/sonarqube-prod/static/cpp/build-wrapper-win-x86.zip 
> to 
> E:\j\tools\com.cloudbees.jenkins.plugins.customtools.CustomTool\scm-sonarqube-build-wrapper
> Also:   Also:   java.nio.file.AccessDeniedException: 
> E:\j\tools\com.cloudbees.jenkins.plugins.customtools.CustomTool\scm-sonarqube-build-wrapper\build-wrapper-win-x86\build-wrapper-win-x86-64.exe
> at 
> sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
> at 
> sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
> at 
> sun.nio.fs.WindowsException.rethrowAsIOException(WindowsExceptio

Re: How to conditionally execute a step based on changeset (multiple paths)?

2020-11-13 Thread geoffroy...@gmail.com
Thanks for the hint, seems multiple changeset entries solution is simple 
enough in our case.
I would go for regex for a more complex use case
Regard

-- 
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://groups.google.com/d/msgid/jenkinsci-users/4a8cc90e-2cc3-453c-9101-c49ad4f4f1cfn%40googlegroups.com.


Re: where do I have to set the sonar-project.properties file to make sonar work in Jenkins?

2020-11-11 Thread geoffroy...@gmail.com
Hello
you should probably ask here: https://community.sonarsource.com/ 
Are you using the paid version of SonarQube, to get C/C++ analysis feature?
Also, from experience, before running any new tool analysis from Jenkins, 
it is better to first run (and debug) it locally. Sonar scanner local 
analysis is quite easy to execute, it could help you troubleshoot your 
issue.
Last, please post your pipeline code so we can check you are properly 
running the analysis from the source folder actually containing the sonar 
properties file
Regards

On Wednesday, 11 November 2020 at 17:29:54 UTC+1 jesusfern...@gmail.com 
wrote:

> Hi David,
>
> Thanks for your answer but I get the same result when adding the 
> parameters with -D I get the "*00:00:01.529* *INFO: Project root 
> configuration file: NONE"  *message at the beginning of the log. I have 
> tried to create the helloworld simplest c++ project just to test, but I get 
> the same error, what am I missing?
> El martes, 10 de noviembre de 2020 a las 20:41:32 UTC+1, 
> davidmic...@gmail.com escribió:
>
>> I believe that the mistake that most people make with running the 
>> sonarqube scan from a CI build is TRYING to define a sonarqube properties 
>> file. It's best to simply provide all of the required options on the 
>> sonar-scanner command line, using "-D".
>>
>> On Tue, Nov 10, 2020 at 3:44 AM jesus fernandez  
>> wrote:
>>
>>> I am trying to learn the basics of sonarqube, I have set it up on my 
>>> jenkins pipeline (which uses MSBuild to compile the project) and the set a 
>>> step to execute SonarQube but after reading and watching a few tutorials 
>>> and the documentation itself I think I got a bit lost as when my pipeline 
>>> finishes executing I go to my SonarQube server and I my project says ```The 
>>> main branch has no lines of code.```. I get the following log when running 
>>> the sonarqube step on my jenkins:
>>> ```
>>> 00:10:43.369  Injecting SonarQube environment variables using the 
>>> configuration: SonarQube
>>> [Pipeline] {
>>> [Pipeline] bat
>>> 00:10:43.653  
>>> 00:10:43.653  
>>> C:\Users\anton\.jenkins\workspace\Boston>C:\Users\anton\.jenkins\tools\hudson.plugins.sonar.MsBuildSQRunnerInstallation\Sonnar_scanner\sonar-scanner-4.4.0.2170\bin\sonar-scanner.bat
>>>   
>>>  
>>> 00:10:43.653  INFO: Scanner configuration file: 
>>> C:\Users\anton\.jenkins\tools\hudson.plugins.sonar.MsBuildSQRunnerInstallation\Sonnar_scanner\sonar-scanner-4.4.0.2170\bin\..\conf\sonar-scanner.properties
>>> 00:10:43.653  INFO: Project root configuration file: NONE
>>> 00:10:43.653  INFO: SonarScanner 4.4.0.2170
>>> 00:10:43.653  INFO: Java 1.8.0_261 Oracle Corporation (64-bit)
>>> 00:10:43.653  INFO: Windows 10 10.0 amd64
>>> 00:10:44.230  INFO: User cache: 
>>> C:\WINDOWS\system32\config\systemprofile\.sonar\cache
>>> 00:10:44.230  INFO: Scanner configuration file: 
>>> C:\Users\anton\.jenkins\tools\hudson.plugins.sonar.MsBuildSQRunnerInstallation\Sonnar_scanner\sonar-scanner-4.4.0.2170\bin\..\conf\sonar-scanner.properties
>>> 00:10:44.230  INFO: Project root configuration file: NONE
>>> 00:10:44.230  INFO: Analyzing on SonarQube server 8.5.1
>>> 00:10:44.230  INFO: Default locale: "es_ES", source code encoding: 
>>> "UTF-8"
>>> 00:10:44.783  WARN: SonarScanner will require Java 11 to run starting in 
>>> SonarQube 8.x
>>> 00:10:44.784  INFO: Load global settings
>>> 00:10:44.784  INFO: Load global settings (done) | time=40ms
>>> 00:10:44.784  INFO: Server id: BF41A1F2-AXWnoupqHjnRwWgEnmvK
>>> 00:10:44.784  INFO: User cache: 
>>> C:\WINDOWS\system32\config\systemprofile\.sonar\cache
>>> 00:10:44.784  INFO: Load/download plugins
>>> 00:10:44.784  INFO: Load plugins index
>>> 00:10:44.784  INFO: Load plugins index (done) | time=26ms
>>> 00:10:44.784  INFO: Load/download plugins (done) | time=48ms
>>> 00:10:45.037  INFO: Process project properties
>>> 00:10:45.037  INFO: Process project properties (done) | time=6ms
>>> 00:10:45.037  INFO: Execute project builders
>>> 00:10:45.037  INFO: Execute project builders (done) | time=1ms
>>> 00:10:45.037  INFO: Project key: Boston
>>> 00:10:45.037  INFO: Base dir: C:\Users\anton\.jenkins\workspace\Boston
>>> 00:10:45.037  INFO: Working dir: 
>>> C:\Users\anton\.jenkins\workspace\Boston\.scannerwork
>>> 00:10:45.301  INFO: Load project settings for component key: 'Boston'
>>> 00:10:45.301  INFO: Load project settings for component key: 'Boston' 
>>> (done) | time=10ms
>>> 00:10:45.301  INFO: Load quality profiles
>>> 00:10:45.301  INFO: Load quality profiles (done) | time=27ms
>>> 00:10:45.301  INFO: Auto-configuring with CI 'Jenkins'
>>> 00:10:45.301  INFO: Load active rules
>>> 00:10:46.241  INFO: Load active rules (done) | time=787ms
>>> 00:10:46.241  INFO: Indexing files...
>>> 00:10:46.241  INFO: Project configuration:
>>> 00:10:46.241  INFO: 0 files indexed
>>> 00:10:46.241  INFO: - Run sensors on module Boston
>>> 00:10:46.241  INFO: Load metrics repository
>>> 00:10:46.241  INFO: Load metrics 

View all credentials on an instance (global, folders, users, ...)

2020-09-14 Thread geoffroy...@gmail.com
Hello

as a global instance admin, is there a way i can view (not decrypt) all 
credentials stored in it?
*/credentials* will only show global/system credentials.

If a credential is created within a Folder, the only way to view it is to 
go to url */job//credentials/store/folder/*

This is quite difficult to track all those credentials provided Folders are 
used quite extensively on our instance.
The same also apply to user credentials, although it is not on our 
immediate concerns.

Is there any option to activate on Jenkins to get such "recursive" view on 
credentials, or shall we go for a script to execute? Any pointer?

Regards

-- 
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://groups.google.com/d/msgid/jenkinsci-users/5f97f53c-82bb-498c-887d-ac9fce53ffban%40googlegroups.com.