Re: How do you set java options for ssh agents

2020-09-25 Thread Ivan Fernandez Calvo
ok, I think I know what happens, I saw it before using Docker and JCasC, if you make changes on the JCasC and restart Jenkins from UI the changes are not applied because JCasC is not executed on that restart, but if you stop the Jenkins instance and start it again the changes are applied IIRC is

Difference in timeout handling within a script or a step

2020-09-25 Thread 'christop...@googlemail.com' via Jenkins Users
Hello, I am experiencing a strange difference with catching a timeout within a script in a step or a script called from a step. The problem I want to work around: in some situations my unit-test exe (GoogleTest) is blocked with a popup from inside the C-runtime. To make the build complete in

Issues with Multibranch Pipeline jobs

2020-09-25 Thread Anuradha Mukundan
Hi, I am using Jenkins 2.235.1 version, and trying to set up a multibranch pipeline to be built on every branch starting with some prefix and also for every PRs raised against master. I am seeing two issues currrently: 1. On branch builds, If I force update a commit on the

jenkins.war arguments not respected?

2020-09-25 Thread Juan Eiros
Hello, I am not sure if this is the right forum to raise this question. Please redirect as appropriate. I want to run Jenkins running the WAR file directly ( https://www.jenkins.io/doc/book/installing/#war-file) as a daemonized process. I see that there are some arguments that allow to chan

hi

2020-09-25 Thread Hasan Jamal Siddiqui
Hi, I need your help to make jenkin build, already i made jenkins build for .net core 2.0 , i am getting below error: 1. using .net core 2.0 rest api web service with buckle api , after completed jenkin build unable to get web.config file and some other file in build location, getting all json a

What are reasons for high load on Jenkins master?

2020-09-25 Thread Dominik
Hi, We are running Jenkins with about 20 build agents on separate VMs (with up to 4 executors each). The master has 4 CPUs, so I would expect a load of about 4 when there's "a lot of work" to be done. However, no job is ever scheduled on the master itself, and still we can observe very high lo

Re: SAML with Okta is very slow

2020-09-25 Thread Mark Schroering
We are using AWS EFS for the Jenkins Home mount. It was configured for burst throughput, and after reading https://aws.amazon.com/blogs/storage/best-practices-for-using-amazon-efs-for-container-storage/ we just changed it to provisioned throughput of 150 MiB/s. The change did not help wit

Re: SAML with Okta is very slow

2020-09-25 Thread kuisathaverat
as I said your problem is the IO, if you enter en the Instance by ssh and check the iostats you will see more than 5-10% of your operations waiting for IO. NFS, EFS, and in general network filesystems works well with big files but with small files and write concurrence is where the problems start

withCredentials in the "options { }" section of declarative pipeline

2020-09-25 Thread Kamil Dzierzanowski
Hi! Recently while reading an error raised when incorrectly specifying an option in the options section of the declarative pipeline, I noticed several options which supposedly are accepted, though not documented in the snippet generator nor in the online documentation. One of these options is

Re: What are reasons for high load on Jenkins master?

2020-09-25 Thread Kamil Dzierzanowski
Hi Dominik, High load on the master might be caused by incorrectly implemented Jenkinsfiles which contain complex logic, thus inducing load on the master instead of the nodes. Furthermore, this load will not be visible in the node overview. I think this is the best point to start investigating

Re: Kubernetes plugin - container is not valid for pod

2020-09-25 Thread Vincent Latombe
Try changing your Jenkinsfile to: podTemplate( containers: [ containerTemplate(name: 'docker', image: 'docker:19.03', ttyEnabled: true, command: 'cat'), containerTemplate(name: 'nodejs', image: 'node:12-buster', ttyEnabled: true, command: 'cat') ], volumes: [hostPathVol

Re: What are reasons for high load on Jenkins master?

2020-09-25 Thread Dominik
Hi Kamil, Thanks for the link. Although we do use pipelines for many projects, the set of test jobs I mentioned are plain old 'freestyle' jobs. They include one or multiple Maven build steps which run some more or less heavy unit and integration tests (which all happens on agents anyway). When l

Jackson2-api dependencies

2020-09-25 Thread Tomáš Hartmann
Hi, I’m trying to overcome some dependency disparity through one of plugins, by removing dependency on jackson2-api plugin, and using direct jackson dependency instead, is it even possible to do something like that? because it seems not to work well. 
 https://github.com/cvakiitho/build-failure

Re: How do you set java options for ssh agents

2020-09-25 Thread Tim Black
Thanks. What's the difference between "restart Jenkins from UI" and "stop the Jenkins instance and start it again"? In the latter, how are you implying that Jenkins gets stopped and restarted, through the CLI? Just trying to understand what you're saying - it sounds like you're implying CasC se

Re: How do you set java options for ssh agents

2020-09-25 Thread kuisathaverat
Restart Jenkins using the CLI(https://www.jenkins.io/doc/book/managing/cli/) it is the same make it from the UI. When I said stop/start, I mean stop/start the Jankins daemon/service/Docker container/Whatever. The reason it is because IIRC JCasC runs on the start time of the Jenkins process, and als

Re: How do you set java options for ssh agents

2020-09-25 Thread Tim Black
Thanks. I believe you were saying stop/start because you're using Docker container. In your Docker example, stopping and restarting the Docker container is analogous to rebooting (power cycling, or sudo rebooting) the physical or virtual machine hosting the Jenkins service. In this thread I'm s

Unauthorized URL redirect via HTTP host poisoning vulnerability with Jenkins

2020-09-25 Thread Mohtashim S
We have noticed if we change the host header in HTTP request for Jenkins and fire the request then Jenkins is vulnerable through http host header injection. Change the Jenkins request host header to say xyz.com, then it successfully redirects to xyz.com. How do we address this vulnerability

Re: Unauthorized URL redirect via HTTP host poisoning vulnerability with Jenkins

2020-09-25 Thread Daniel Beck
> On 25. Sep 2020, at 23:49, Mohtashim S wrote: > > How do we address this vulnerability of Jenkins? https://www.jenkins.io/security/#reporting-vulnerabilities explains how to report security issues. Please make sure in your report to explain why it is a problem for Jenkins beyond linking

Session cookie attributes are not set properly in Jenkins

2020-09-25 Thread Mohtashim S
It is observed that, path cookie attribute not set properly in Jenkins. Set-Cookie: ACEGI_SECURITY_HASHED_REMEMBER_ME_COOKIE=; Path=/;...Max-Age=0; Secure; HttpOnly Problem Description: Verify that the domain has not been set too loosely. It should only be set for the server that needs to r