Re: Why does somestring.digest('SHA-1') fail in pipeline

2019-05-01 Thread Mykola Nikishov
ZillaYT  writes:

> I have this simple code and it works on my Macs groovy
>
> String sigStr = 'iurpeirupru04790734'
> sigStr = sigStr.digest('SHA-1')
> println sigStr

Try

sigStr = sigStr.decodeBase64()

which is available since Groovy 1.0 [1]

digest() is available since 2.5.0 [2].

[1] 
http://docs.groovy-lang.org/2.4.0/html/api/org/codehaus/groovy/runtime/EncodingGroovyMethods.html
[2] 
http://docs.groovy-lang.org/latest/html/api/org/codehaus/groovy/runtime/EncodingGroovyMethods.html

> But I get this error when I run it in a Jenkins pipeline. Why? Thanks!

Different Groovy version?

> hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No 
> signature of method: java.lang.String.digest() is applicable for argument 
> types: (java.lang.String) values: [SHA-1] Possible solutions: getAt(java.
> lang.String), size(), toSet(), size(), next(), toList()

-- 
Mykola

Libre/Free Java Software Developer
https://manandbytes.gitlab.io/

-- 
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/87bm0mh469.fsf%40think.
For more options, visit https://groups.google.com/d/optout.


Re: Use AdoptOpenJDK as JDK Tool download source

2019-02-26 Thread Mykola Nikishov
nicolas de loof 
writes:

> but docker images seems to me a way better solution to cover the same
> need, and this "tool installer" feature is just a hack-ish legacy we
> should deprecate.

Are you proposing to remove tool installer completely or is it about JDK
tool installer only?

If the former, to me this looks like maven vs freestyle project type
issue (when you have Maven project, of course) but moving in opposite
direction, from generic to concrete one. Tool installer is a generic
installer that supports installation of different tools. Docker images
support only a subset of these use-cases.

> Le mar. 26 févr. 2019 à 15:44, Slide
> a écrit :
>
>> How many people use the automatic installation, is there a way to track
>> that? Would it kill someone's usage model to remove this feature? It seems
>> to me to be fairly unsustainable.
>>
>> On Tue, Feb 26, 2019, 06:22 Baptiste Mathus  wrote:
>>
>>> Hey Martijn,
>>>
>>> Thanks for chiming in. I already have commented there in the JIRA, but
>>> asking here since it seems at this stage better suited in a discussion
>>> place: do you have an opinion/idea about whether, and how long, it will be
>>> tolerated that certain IPs download the same JDK binaries from
>>> adoptopenjdk.net  like dozens or hundreds
>>> of time a day? I mean: how is the bandwidth consumption handled on
>>> adoptopenjdk.net? Isn"t there a risk that some users be banned from
>>> downloading from there if they suck for instance +100GB, or much more, of
>>> bandwidth a day?
>>>
>>> I'm asking because I've been arguing there and some other places that
>>> anyway this feature has always been problematic. And I tend to think it's
>>> cool for demos, but that normal usages shouldn't rely on downloading
>>> binaries from an external source forever, for a variety of reasons I've
>>> listed in the JIRA issue linked previously.

-- 
Mykola

Libre/Free Java Software Engineer
https://manandbytes.gitlab.io/

-- 
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/87h8cqff9u.fsf%40think.
For more options, visit https://groups.google.com/d/optout.


Re: How to configure the plugin authorize-project with configuration-as-code?

2019-01-24 Thread Mykola Nikishov
Guo Zhenyang 
writes:

> I'm trying to use configuration-as-code to initial the configuration of the 
> Jenkins. Thought it says JCasC "Support most plugins without extra 
> development effort" in https://jenkins.io/projects/jcasc/, I can't find a 
> list of supported plugins or a demo of configuring plugin 
> authorize-project. Can some share with me the information about it?

Check your http://jenkins/configuration-as-code/ for Actions and
Reference.

For instance, install and configure jenkins and plugins, then use Export
Configuration to get YAML configuration with your changes.

Jenkins Configuration as Code Reference
http://jenkins/configuration-as-code/reference shows all available
options.

-- 
Mykola

https://manandbytes.gitlab.io/
https://manandbytes.github.io/

-- 
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/87munpahyt.fsf%40think.
For more options, visit https://groups.google.com/d/optout.


Re: maven projects become slow after a couple of months

2016-05-27 Thread Mykola Nikishov
Jorg Heymans 
writes:

> It is easy to tell a job is getting slow because during maven init it takes 
> a long time to get passed "Scanning for projects" :
>
>
> 13:06:54 [INFO] Scanning for projects...
> 13:08:03 [INFO] 
> 
>
> Any thoughts as to what could be causing this ?

How about getting more info with 'mvn --debug'?

-- 
Mykola
https://manandbytes.github.io/

-- 
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/87eg8ndw24.fsf%40mn.com.ua.
For more options, visit https://groups.google.com/d/optout.


Re: Proxy and certificate

2016-05-27 Thread Mykola Nikishov
sebastienjfoss...@free.fr writes:

> We have just installed Jenkins and we want to install some plugins (Git, 
> ...). But in plugins section, Advanced tab, the "validate proxy" fails with 
> following message : "
>
> javax.net.ssl.SSLHandshakeException: 
> sun.security.validator.ValidatorException: PKIX path building failed: 
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
> valid certification path to requested target". It seems we have a 
> certificate issue. Can someone tell us where to get information about the 
> good way to manage these certificates for Jenkins.
>
> The "Test URL" was "http://jenkins-ci.org/"; ; there is no problem for 
> accessing this URL in brower with same proxy configuration.

Seems you have a transparent proxy that terminates HTTPS traffic from
the target site, re-encrypts/signs it with its own key/certificate and
forwards it to the client. Quite often such intermediate certificates
are self-signed thus breaking the chain of trust.

Check this SO question [1] to better understand and how to 'fix' this
issue.

[1] 
https://stackoverflow.com/questions/6908948/java-sun-security-provider-certpath-suncertpathbuilderexception-unable-to-find

-- 
Mykola
https://manandbytes.github.io/

-- 
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/87oa7rdwg5.fsf%40mn.com.ua.
For more options, visit https://groups.google.com/d/optout.


Re: Xvnc on Mac Server with Jenkins running under tomcat

2012-02-10 Thread Mykola Nikishov
On 02/10/2012 02:57 AM, dwitz wrote:

> FATAL: Cannot run program "vncserver" (in directory
> "/Library/Jenkins/jobs/flexUnitSampleCIProject/workspace"): error=2, No such
> file or directory 

You have to install 'vncserver' program first.

-- 
Mykola

http://ua.linkedin.com/in/manandbytes
https://github.com/manandbytes/