Cannot create build step

2020-03-26 Thread Andreas Tscharner
Hello World,

While evaluating the new Jenkins version for our company I've
experienced an odd problem: I cannot create a build step or post-build
action (Freestyle project). If I click on the drop-down list, all
entries are available, but no matter which one I select, nothing happens
(No window, no memo for code, nothing). I noticed it first in version
2.204.5, but it also appears in 2.222.1
I also noticed the following error on several locations on the
configuration page:

Bad Message 431
reason: Request Header Fields Too Large

Most of the time it is "behind" an "ERROR" link.

I suspect these two problems are connected.

System: Debian Linux unstable
uname -a: Linux shannara 5.4.0-4-amd64 #1 SMP Debian 5.4.19-1
(2020-02-13) x86_64 GNU/Linux
java -version:
openjdk version "11.0.6" 2020-01-14
OpenJDK Runtime Environment (build 11.0.6+10-post-Debian-2)
OpenJDK 64-Bit Server VM (build 11.0.6+10-post-Debian-2, mixed mode)
Jenkins: 2.222.1 via Debian repository

What can I do?
TIA and best regards
Andreas
-- 
Andreas Tscharner sternenfe...@gmail.com

Der entscheidende Vorteil eines Chats gegenueber einem normalen Telefon-
anruf ist der, dass ersterer langsamer geht und mehr kostet (fuer den
lebenswichtigen Austausch von Informationen wie "hya folks", "C U
l8er" und ":-)") ...   Aus Murphy's Computergesetzen

-- 
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/f338e91c-0dc4-c01b-c8ca-ea67d090ad54%40gmail.com.


Re: Jenkins + Kubernetes - Cache .m2 for jobs

2020-03-26 Thread Tristan FAURE
Hello
Thank you for the hint ! I think it could help some projects !
but it will make some docker images very heavy and I would be interested to
have jenkins team opinion about getting the equivalent of
https://docs.gitlab.com/ee/ci/caching/

Le jeu. 26 mars 2020 à 06:10, Liejun Tao  a écrit :

> This is my solution for a little different purpose: use a .m2 cache for
> common libs.
>
> https://github.com/liejuntao001/jenkins-k8sagent-lib/blob/a6ced3975e37fe559c0ae8a918ed01b6920f1efa/resources/podtemplates/base.yaml#L24
> The idea is to make a docker image with the most used artifacts(external
> dependencies) in .m2 folder.
> At the launch of the Agent, copy them to workspace's .m2 folder from the
> image.
>
> This should be adapted to fit your needs.
> I assume you are not going to run concurrent builds for a job to avoid
> concurrent write, if you want a job has a dedicated cache.
> At the end of a build, create a docker image based on the existing .m2
> content and push back for next time use.
>
> If you are going to run concurrently builds, this idea of a sharing cache
> is invalid, I think.
>
> On Tue, Jul 10, 2018 at 8:05 AM Enguerrand A <
> allamel.enguerr...@thalesaleniaspace.com> wrote:
>
>> Hello everyone,
>>
>> I use the Kubernetes plugin for Jenkins to launch all Jenkins jobs in a
>> Kubernetes cluster. For better performance, I want to use a persistent
>> disk for the cache of different job Maven with insulation of it, ie a disk
>> space per job (to separate the cache)
>>
>> Do you have ideas for automatic solutions with the Kubernetes plugin to
>> have cache on the .m2 (or another type of cache) with a different disk by
>> jobs ?
>>
>> Thank you in advance !
>>
>> --
>> 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/de71d26c-115e-4679-af8e-0151fbb3b8c9%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
> Thanks,
> Baibai
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/X61BK83LHLU/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CAMRm5jbRhhtF5S4bzzT%3Du7La4sggNW2c-kEAjVMaqBeBK6cHPg%40mail.gmail.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/CA%2BtQ8YP2MvN4zf3uvkWpAsbOrhbbqhufQAHRBsNy2nuE%2BpTe0g%40mail.gmail.com.


Re: Jenkins + Kubernetes - Cache .m2 for jobs

2020-03-26 Thread Tristan FAURE
seems like there is an issue about it:
https://issues.jenkins-ci.org/browse/JENKINS-42422

Le jeu. 26 mars 2020 à 08:07, Tristan FAURE  a
écrit :

> Hello
> Thank you for the hint ! I think it could help some projects !
> but it will make some docker images very heavy and I would be interested
> to have jenkins team opinion about getting the equivalent of
> https://docs.gitlab.com/ee/ci/caching/
>
> Le jeu. 26 mars 2020 à 06:10, Liejun Tao  a
> écrit :
>
>> This is my solution for a little different purpose: use a .m2 cache for
>> common libs.
>>
>> https://github.com/liejuntao001/jenkins-k8sagent-lib/blob/a6ced3975e37fe559c0ae8a918ed01b6920f1efa/resources/podtemplates/base.yaml#L24
>> The idea is to make a docker image with the most used artifacts(external
>> dependencies) in .m2 folder.
>> At the launch of the Agent, copy them to workspace's .m2 folder from the
>> image.
>>
>> This should be adapted to fit your needs.
>> I assume you are not going to run concurrent builds for a job to avoid
>> concurrent write, if you want a job has a dedicated cache.
>> At the end of a build, create a docker image based on the existing .m2
>> content and push back for next time use.
>>
>> If you are going to run concurrently builds, this idea of a sharing cache
>> is invalid, I think.
>>
>> On Tue, Jul 10, 2018 at 8:05 AM Enguerrand A <
>> allamel.enguerr...@thalesaleniaspace.com> wrote:
>>
>>> Hello everyone,
>>>
>>> I use the Kubernetes plugin for Jenkins to launch all Jenkins jobs in a
>>> Kubernetes cluster. For better performance, I want to use a persistent
>>> disk for the cache of different job Maven with insulation of it, ie a disk
>>> space per job (to separate the cache)
>>>
>>> Do you have ideas for automatic solutions with the Kubernetes plugin to
>>> have cache on the .m2 (or another type of cache) with a different disk by
>>> jobs ?
>>>
>>> Thank you in advance !
>>>
>>> --
>>> 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/de71d26c-115e-4679-af8e-0151fbb3b8c9%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> --
>> Thanks,
>> Baibai
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Jenkins Users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/jenkinsci-users/X61BK83LHLU/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, 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/CAMRm5jbRhhtF5S4bzzT%3Du7La4sggNW2c-kEAjVMaqBeBK6cHPg%40mail.gmail.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/CA%2BtQ8YN41OAVo_u6kzGm5xiMxWHurVgpn%2BX3pGVZ18gjY%2B49cA%40mail.gmail.com.


Re: Security for team-specific nodes

2020-03-26 Thread Daniel Beck



> On 25. Mar 2020, at 14:25, Roland Asmann  wrote:
> 
> Now, I was wondering if it was possible to configure nodes to be only used by 
> certain people/groups/jobs/..., or even better, have the UI hide them from 
> people that are not supposed to use them?
> 
> We are currently using Project-based security with LDAP and the Folder Plugin 
> --> Every Project has a Group in LDAP and a folder in Jenkins where they have 
> their jobs. It would be great if I can somehow 'connect' a server to one or 
> more group(s) or folder(s).

The Build Authorization mechanism does that by associating user authentications 
with running builds, and using the Agent/Build permission to control who gets 
to use an agent (it's a different permission than Job/Build): 
https://plugins.jenkins.io/authorize-project

An easier approach would be plugins like 
https://plugins.jenkins.io/job-restrictions/ that use a different mechanism to 
limit which jobs are allowed to build on a node that is easier to introduce to 
an existing setup.

Neither of the plugins is all that well maintained at the moment, I think, but 
maybe they're good enough in their current state.

-- 
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/188E47A8-9985-47A6-9C52-227373F1E8FD%40beckweb.net.


Re: Java error at the end of otherwise normal build causing build failure

2020-03-26 Thread Boyka Zhu
Having the same issue...

Have you got the root cause?

在 2019年4月27日星期六 UTC+8上午4:08:54,Rich Stephens写道:
>
> I have a fully working build, but for some reason, after my build is 
> actually complete, at the very end, Jenkins throws the following error:
>
> FATAL: Argument value 0xfd8 exceeds native capacity (4 bytes) 
> mask=0x
> java.lang.IllegalArgumentException: Argument value 0xfd8 exceeds 
> native capacity (4 bytes) mask=0x
>   at com.sun.jna.IntegerType.setValue(IntegerType.java:104)
>   at com.sun.jna.IntegerType.(IntegerType.java:67)
>   at com.sun.jna.NativeLong.(NativeLong.java:49)
>   at com.sun.jna.NativeLong.(NativeLong.java:44)
>   at 
> hudson.util.ProcessTree$AIX$AIXProcess.getEnvironmentVariables(ProcessTree.java:1243)
>   at 
> hudson.util.ProcessTree$OSProcess.hasMatchingEnvVars(ProcessTree.java:320)
>   at hudson.util.ProcessTree$Unix.killAll(ProcessTree.java:706)
>   at hudson.Launcher$LocalLauncher.kill(Launcher.java:956)
>   at 
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:510)
>   at hudson.model.Run.execute(Run.java:1818)
>   at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
>   at hudson.model.ResourceController.execute(ResourceController.java:97)
>   at hudson.model.Executor.run(Executor.java:429)
>
> Which causes Jenkins to believe the otherwise successful build failed (and 
> send me an email telling me so).
> Has anyone seen this odd Java error at the very end of their build?
>
>

-- 
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/5b78c888-2792-487c-8953-a86c5581bd16%40googlegroups.com.


Jenkins Docker Plugin - How to configure to connect to Docker host with TLS

2020-03-26 Thread Gil
Hello All -

On the Docker host, I enable remote API with with the TLS option (i.e. 
create CA server/client keys to protect the daemon socket as described in 
https://docs.docker.com/engine/security/https/).  All is well.

Now, my question is, on the Jenkins side, with the Docker plugin, how do I 
configure this plugin so that it / Jenkins can connect to the Docker host 
securely with the certificate generated above?  Or better yet, what's the 
right / best method to configure Jenkins Docker plugin to securely connect 
to the remote Docker host?

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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/a40b6552-9206-49e2-84a0-e81fc51050ad%40googlegroups.com.


Re: Java error at the end of otherwise normal build causing build failure

2020-03-26 Thread Boyka Zhu
Finally got the cause, after change to java8 64 bit on AIX, the issue was 
gone.

在 2019年4月27日星期六 UTC+8上午4:08:54,Rich Stephens写道:
>
> I have a fully working build, but for some reason, after my build is 
> actually complete, at the very end, Jenkins throws the following error:
>
> FATAL: Argument value 0xfd8 exceeds native capacity (4 bytes) 
> mask=0x
> java.lang.IllegalArgumentException: Argument value 0xfd8 exceeds 
> native capacity (4 bytes) mask=0x
>   at com.sun.jna.IntegerType.setValue(IntegerType.java:104)
>   at com.sun.jna.IntegerType.(IntegerType.java:67)
>   at com.sun.jna.NativeLong.(NativeLong.java:49)
>   at com.sun.jna.NativeLong.(NativeLong.java:44)
>   at 
> hudson.util.ProcessTree$AIX$AIXProcess.getEnvironmentVariables(ProcessTree.java:1243)
>   at 
> hudson.util.ProcessTree$OSProcess.hasMatchingEnvVars(ProcessTree.java:320)
>   at hudson.util.ProcessTree$Unix.killAll(ProcessTree.java:706)
>   at hudson.Launcher$LocalLauncher.kill(Launcher.java:956)
>   at 
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:510)
>   at hudson.model.Run.execute(Run.java:1818)
>   at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
>   at hudson.model.ResourceController.execute(ResourceController.java:97)
>   at hudson.model.Executor.run(Executor.java:429)
>
> Which causes Jenkins to believe the otherwise successful build failed (and 
> send me an email telling me so).
> Has anyone seen this odd Java error at the very end of their build?
>
>

-- 
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/b45da661-aff4-43d6-9092-56ed49fbbe19%40googlegroups.com.


Re: Jenkins + Kubernetes - Cache .m2 for jobs

2020-03-26 Thread James Nord
you can massively speed up the build (even without caching) by having a maven 
repository proxy/cache nexus etc) in the same cluster (or at least on a high 
bandwidth low latency link). even when you have things local to the container 
the remote maven repo  will still be contacted and depending on your setup can 
still slow the build.

-- 
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/1e1af14d-7190-487e-bf2f-a006b724eee4%40googlegroups.com.


How to submit an attachment to Rocketchat

2020-03-26 Thread 'Holger W.' via Jenkins Users
Hi there,

I configured a Jenkins job to send a message to a Rocketchat channel when a 
build fails. I made use of the 
https://github.com/jenkinsci/rocketchatnotifier-plugin
Can anybody help me in configuring the post-build-action, so the 
build-logfile is also submitted to the channel? In the configuration of the 
plugin there is a section "Attachments" but I don't know how to use it to 
deliver the build-logfile to RC :-(

[image: jenk_rcplug.PNG] 














































Thanks in advance
Holger

-- 
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/0a836d5c-4cc1-4a5f-a25b-4421355e35fe%40googlegroups.com.


Re: Jenkins Docker Plugin - How to configure to connect to Docker host with TLS

2020-03-26 Thread Liejun Tao
Generate a client certificate which could connect to the Docker host with
tls.
In Jenkins, add a credential of "Docker Host Certificate Authentication"
type with the client certificate.
Use the credential in Docker plugin.

On Thu, Mar 26, 2020 at 7:58 AM Gil  wrote:

> Hello All -
>
> On the Docker host, I enable remote API with with the TLS option (i.e.
> create CA server/client keys to protect the daemon socket as described in
> https://docs.docker.com/engine/security/https/).  All is well.
>
> Now, my question is, on the Jenkins side, with the Docker plugin, how do I
> configure this plugin so that it / Jenkins can connect to the Docker host
> securely with the certificate generated above?  Or better yet, what's the
> right / best method to configure Jenkins Docker plugin to securely connect
> to the remote Docker host?
>
> 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-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/a40b6552-9206-49e2-84a0-e81fc51050ad%40googlegroups.com
> 
> .
>


-- 
Thanks,
Baibai

-- 
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/CAMRm5jaL4_EWhpGPc5wrYQAW4S-P0Av95kzsD0oP1tyhJSwSHw%40mail.gmail.com.


Getting Error when running Gcloud commands on jenkins windows agent "When Running Gcloud commands on jenkins windows agent getting error like "This may be due to network connectivity issues. Please ch

2020-03-26 Thread Shanmukha Bera
Hi Team,
We have master slave jenkins setup where i am running windows agent as 
slave and want to run my powershell script which consist of gcloud commands 
so wn we run on windows agent we are getting below error.

"*This may be due to network connectivity issues. Please check your network 
settings, and the status of the service you are trying to reach.*"

So what we done as part of testing we manually login to agent and run the 
gcloud commands we able to get output .But when we run via jenkins we 
getting the error.
And the VM is part of gcloud so we are not using any plugin to authenticate 
to cloud jst we using service account to authenticate to gcloud.

NOTE:
None of Gcloud commands working Via jenkins.

How can we fix this issue?

Thanks,
Shanmukha 

-- 
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/0fa7430c-25fe-44d4-bcdc-3da79023a0d4%40googlegroups.com.