Re: Jenkins not able to launch the slave due to unrecognizable JAVA_HOME

2024-04-18 Thread Ivan Fernandez Calvo
[SSH] The remote user's environment is: Checking Java version in the PATH Java is not in the PATH nor configured with the javaPath setting, What happens if you enter by SSH in the agent with the same user you use to connect the Jenkins controller and execute java? >ssh

Re: Jenkins not able to launch the slave due to unrecognizable JAVA_HOME

2024-04-15 Thread Ivan Fernandez Calvo
>Jenkins not able to launch the slave due to unrecognizable JAVA_HOME Stop using Slave and use Agent as a name for the Build Agents attached to the Jenkins Controller (no longer master) >so could anyone please help as it is urgent This is a User group, so NOTHING here is urgent. If someone can

Re: k8smaster server works like a worker

2023-11-29 Thread Ivan Fernandez Calvo
The Jenkins Controller is always shown in Build Agents. You can set executors to 0 to avoid using it for build, but it will still appear in Build Agents. It is how it works. El martes, 28 de noviembre de 2023 a las 16:50:34 UTC+1, zorogl...@gmail.com escribió: > Sorry to bother you. i have a

Re: Nested parallel dynamically

2023-05-17 Thread Ivan Fernandez Calvo
We resolved the dynamic matrix support by implementing a matrix step in a shared library, the matrix axis are arrays that can come from files if you want pipeline { agent any stages { stage('Matrix sample') { steps { matrix( agent: 'linux', axes:[

Re: Send file path as a link in email body after Jenkins Scripted pipe line run

2023-02-06 Thread Ivan Fernandez Calvo
Two things here, one the whole body must be and HTML page to be sent as HTML, and you need the email ext plugin installed, check the documentation of the plugin for more details https://plugins.jenkins.io/email-ext/ El lunes, 6 de febrero de 2023 a las 15:50:22 UTC+1, sunil.does...@gmail.com

Re: org.pac4j.saml.exceptions.SAMLSignatureValidationException: Signature is not trusted

2023-01-06 Thread Ivan Fernandez Calvo
Try to disable all signature options at encryption options, it that works, your issue is related to the public Key you use locally in your SP that is not configured in your IdP or the public key on the IdP metadata is not valid El jueves, 5 de enero de 2023 a las 17:06:25 UTC+1,

Re: *** buffer overflow detected ***: java terminated

2022-12-03 Thread Ivan Fernandez Calvo
You do it provide any information about Jenkins version, OS version of JDK version so it is difficult to know the cause. Checking the stack trace your JDK has about two years so I guess all the rest of your system is as old as the JDK so update it at leas to the lates JDK 11 and update your

Re: Warning: The new version of this plugin is marked as incompatible with the installed version.

2022-11-22 Thread Ivan Fernandez Calvo
Yes, the warning is because the change to stop supporting Java 8, the only way to warning you about breaking changes is to mark the plugin as incompatible with previous versions, this should force you to read the release notes and check what are the changes about, if you are in Jenkins 2.361

Re: is there any way avoids redeclared so much "withCredentials" in scripted pipeline

2022-10-21 Thread Ivan Fernandez Calvo
Your script is doing more than o thing, your are exposing your credentials to more than one process, so your have a security issue in progress, but you do not know it yet. It is absurd to pass that amount of credential to one script. El viernes, 21 de octubre de 2022 a las 8:45:26 UTC+2,

Re: jenkins issue

2022-10-11 Thread Ivan Fernandez Calvo
one more thing to pass the Git credentials to your script you could check this articles https://www.jenkins.io/blog/2021/07/27/git-credentials-binding-phase-1/ https://www.youtube.com/watch?v=HSA_mZoADSw El martes, 11 de octubre de 2022 a las 18:28:26 UTC+2, Ivan Fernandez Calvo escribió

Re: jenkins issue

2022-10-11 Thread Ivan Fernandez Calvo
The error is related to something your script is doing, it is not related to Jenkins at all. Try to review the code you are executing and figure out which line is and what is wrong. Googling the error seems related to configuring the git user and git email and the git authentication when you

Re: Jenkins job error

2022-09-06 Thread Ivan Fernandez Calvo
Check all your plugins are loaded correctly, it looks like you have changes in the filesystem that were not applied, and when you restarted you applied those changes, I bet that one or more of your plugins are not loaded, you should have a big red number in the top-rigth corner of your Jenkins

Re: Multiple Instances on one server with Java 11

2022-07-11 Thread Ivan Fernandez Calvo
If there are three different Apache Tomcat instances running three different services on Java 11, the only explanation to make one crash that comes to my mind is the resources of the machine, memory in particular. The recommendation is to not use more than 75% of the memory of the host to the

Re: Jenkins pod provisioning takes too long

2022-06-27 Thread Ivan Fernandez Calvo
Did you try to provision the same pod definition manually in the K8s cluster to check how much time takes k8s to create the pod? Which k8s provider do you use? I have a similar setup on GKE and it takes less than 30 seconds to provision an agent the fisrt time, when the Docker image is in the

Re: Call parallel stages from a loaded file

2022-05-24 Thread Ivan Fernandez Calvo
We call parallel from a function, it should work, we have similar implementation in a step that allows you to pass arrays to parallel to build a matrix execution in parallel. The arrays can be static, loaded from files, or anything you can convert to an array

Re: Kubernetes plugin for Jenkins after dockershim runtime is deprecated

2022-04-13 Thread Ivan Fernandez Calvo
Another solution that does not impact your pipelines, is to use a DinD container and export DOCKER_HOST in all the containers of the pod, this allows access to Docker to all containers using the docker CLI pipeline { agent { kubernetes { defaultContainer 'docker-cli' yaml '''

Re: How to create/update Jenkins job via REST API in Java?

2022-04-04 Thread Ivan Fernandez Calvo
if you want to manage your jobs using the API are some tools that make that work Jenkin Job Builder , also you can manage your Jobs and configuration using Jenkins configuration as Code

Re: IOException: Cannot read more than 2Gib at a time

2022-04-01 Thread Ivan Fernandez Calvo
Is caused by a Pipeline step that runs some kind of script and generates more than 2GB of output? if so, maybe you should reduce the verbose of that script (whatever you are running) or generate a logs file and archive it, have a 2GB output in the Jenkins console does not have much sense, you

Re: Unable to Launch Node

2022-03-30 Thread Ivan Fernandez Calvo
I do not really have too much data to know what exactly is going on, which version of the SSH build Agents and the trilead-api plugins are you using? Are you using the latest versions? Do the issue happen only in that agent? Which SSH server do you use and what version? Do you have any kind of

Re: Unable to Launch Node

2022-03-18 Thread Ivan Fernandez Calvo
The SSH Build Agents plugin make an sftp or scp (if one fail try the other) with the user configured in the Jenkins Agent to copy a file in the "Remote root directory" folder configured in the Agent config, nothing special, if the user configured in the Agent can make scp/sftp to copy a file in

Re: Trigger jenkins job for all actions of pull request in github.

2022-02-14 Thread Ivan Fernandez Calvo
Hi, We use the Generic Webhook trigger plugin to trigger jobs on any kind of event from GitHub, it allows you to convert the payload of the message in variables and implements ways to filter the payload. We use to implement only one or two

Re: nested each

2022-02-05 Thread Ivan Fernandez Calvo
a return in a each is like a break in a loop exit from the current context with a return value but only one each context, you have two each context levels. El sábado, 5 de febrero de 2022 a las 18:33:24 UTC+1, Martin Schmude escribió: > In the past I ran into issues with pipeline scripts

Re: Endless redirects

2022-01-28 Thread Ivan Fernandez Calvo
It looks like a reverse proxy wrong redirection rules to me (I hit it in the past), you can check with `curl` the redirections and who make them, something like curl -Lv -u user:${PASSWORD} ${JENKINS_URL}/iconSize?16x16 El jueves, 27 de enero de 2022 a las 16:17:49 UTC+1, Stefan Möbius

Re: java.io.IOException: Could not copy remoting.jar into ‘/export/build’ on agent

2021-12-23 Thread Ivan Fernandez Calvo
you set the workspace of the agent to '/export/build' the user you use to connect to the Agent must have write permissions on that folder El jueves, 23 de diciembre de 2021 a las 16:56:04 UTC+1, jeremy@dzsi.com escribió: > what are the perms on /export/build and /export/build/remoting.jar?

Re: ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.

2021-12-23 Thread Ivan Fernandez Calvo
if it is a relatively new repository on GitHub the default branch is ‘main’ not ‘master’ so you have to check you are passing that branch in the SCM configuration El miércoles, 22 de diciembre de 2021 a las 23:04:38 UTC+1, Melo Vi escribió: > Have you verified that the commit hash you are

Re: Generic webhook trigger is not working. Please help

2021-12-06 Thread Ivan Fernandez Calvo
IIRC if you pass a regexp in the variable declaration those values will be removed, so you have to remove this line https://github.com/tomasbjerre/bitbucket-server-jenkins-release-tags/blob/master/Jenkinsfile#L9 El lunes, 6 de diciembre de 2021 a las 11:24:11 UTC+1, manishs...@gmail.com

Re: Unable to Run jenkins job on zos slave

2021-11-01 Thread Ivan Fernandez Calvo
gt;> And then able to run the below pipeline job >>> >>> node('hostname') >>> { >>> stage('test') >>> { >>> sh "pwd" >>> sh " hostname" >>> sh "date" >>> }} >>> >>>

Re: thread safety of scripted pipeline parallel and usage of nested parallel

2021-10-31 Thread Ivan Fernandez Calvo
ifferent slave node without thread protection.Is my guess correct?I can't > find any other articles that discuss this parallel thread safety issue. > ---Original--- > *From:* "Ivan Fernandez Calvo" > *Date:* Sun, Oct 31, 2021 00:03 AM > *To:* "Jenkins Users"; &

Re: thread safety of scripted pipeline parallel and usage of nested parallel

2021-10-30 Thread Ivan Fernandez Calvo
No, if you plan to use shared variables across parallel steps you should use Java types that are thread safe, if not you will have random/weird results. I have several pipelines that uses a map to store results in parallel steps El sábado, 30 de octubre de 2021 a las 14:18:29 UTC+2, abstrakta

Re: Unable to Run jenkins job on zos slave

2021-10-28 Thread Ivan Fernandez Calvo
ob but unable to run > using freestyle job. Will there be any difference > > On Wed, 27 Oct 2021, 10:10 pm Adharsha sri, wrote: > >> Thank you , will check on that part. >> >> On Wed, 27 Oct 2021, 6:45 pm Ivan Fernandez Calvo, >> wrote: >> >>>

Re: Unable to Run jenkins job on zos slave

2021-10-27 Thread Ivan Fernandez Calvo
ot; process >>> apparently never started in path >>> ( running jenkins temporarily with >>> -Dorg.jenkinsci.plugins.durabletask.BourneshellScript.LAUNCH_DIAGNOSTICS=true >>> >>> might make the problem clearer). >>> >>> Thanks.

Re: Unable to Run jenkins job on zos slave

2021-10-27 Thread Ivan Fernandez Calvo
.bashrc file and please provide the script you are using and examples of > export and set. This will be very helpful for us. > > Thanks. > > On Wed, 27 Oct 2021, 8:04 am Adharsha sri, wrote: > >> Can you please provide an example. >> >> On Tue, 26 Oct

Re: Unable to Run jenkins job on zos slave

2021-10-26 Thread Ivan Fernandez Calvo
This is the output you see in the browser, isn't it? Did you try to download the "view as plain text" button output in a file and with an editor trying to find the correct encoding? the encoding you set in the Agent is only from Java process launched from the remoting thread, I mean is you

Re: Help! I am trying to upgrade from 2.263.1 to 2.303.1

2021-10-03 Thread Ivan Fernandez Calvo
It is not clear what it is the current issue you want to resolve, so my suggestion is to start again the first case you expose. >On my first try, I thought I had upgraded, but I did not realize that the version of WAR file was the same (2.263.1) I upgraded the plugins, then realized that it

Re: User management

2021-09-06 Thread Ivan Fernandez Calvo
Hi, you have a few possibilities depending on the authorization plugin you use, but the configuration of the access of the project is more or less the same, you have to add the authorization at folder or job level after configuring your authorization plugin. Here is the documentation related.

Re: SAML plugin 2.0.8

2021-09-01 Thread Ivan Fernandez Calvo
I just created the 3 new releases. El martes, 31 de agosto de 2021 a las 19:39:54 UTC+2, alan.l...@gmail.com escribió: > Sounds good, and the security warning did clear. Thanks for the rapid > response! > -Alan > > On Tuesday, August 31, 2021 at 10:53:27 AM UTC-6 db...@cloudbees.com > wrote:

Re: SAML Single Sign On (SSO) Into Jenkins

2021-07-29 Thread Ivan Fernandez Calvo
check the ADFS documentation https://github.com/jenkinsci/saml-plugin/blob/master/doc/ADFS_CONFIG.md El jueves, 29 de julio de 2021 a las 14:42:06 UTC+2, shli...@gmail.com escribió: > Hi > I installed the Saml Single Sign On (sso) plugin > Configured the plugin with the idp information >

Re: Node provisioning with SimpleScheduledRetentionStrategy

2021-07-20 Thread Ivan Fernandez Calvo
The Availability is a little tricky, I think you have to make it the other way around. Instead of building the agent in the "Launch Agent using Command on Controller" build the agent on a scheduled job then you will have the agent only available when you launched the job. You probably need

Re: DSL parallel stage from dynamic list using pure DSL instead of scripted

2021-07-16 Thread Ivan Fernandez Calvo
There is an implementation on the declarative pipeline https://www.jenkins.io/doc/book/pipeline/syntax/#declarative-matrix it has some limitations like the amount of generated code that sometimes you have to extract the code to functions, and it does not allow to grab axis from variables. To

Re: Git repo url

2021-07-14 Thread Ivan Fernandez Calvo
In the following repos you can find the pieces to build the script you want https://github.com/jenkinsci/jenkins-scripts/tree/master/scriptler https://github.com/cloudbees/jenkins-scripts El miércoles, 14 de julio de 2021 a las 17:12:32 UTC+2, arun...@gmail.com escribió: > Hi , > > I'm trying

Re: Jenkins Shared Library

2021-07-14 Thread Ivan Fernandez Calvo
roovy'))}'* ") see https://www.jenkins.io/doc/book/pipeline/shared-libraries/#loading-resources El miércoles, 14 de julio de 2021 a las 20:15:38 UTC+2, Ivan Fernandez Calvo escribió: > no, it is not possible, the groovy code is executed in the Jenkins > controller by design, it is designed t

Re: Jenkins Shared Library

2021-07-14 Thread Ivan Fernandez Calvo
no, it is not possible, the groovy code is executed in the Jenkins controller by design, it is designed to execute simple logic of orchestration logic, if you want to execute heavy logic you should do it on the agents by using steps that run scripts or processes on the agent. pipeline {

Re: Loop over a list of environment variables inside the environment directive at start of pipeline

2021-07-14 Thread Ivan Fernandez Calvo
the environment is a declarative block, what you are trying to make is to define a bunch of variables with a scriptlet block, this is far away from declarative. The following code make what you want to do pipeline { agent any stages { stage('test') { steps {

Re: "configure" fails with major.minor version issue

2021-07-12 Thread Ivan Fernandez Calvo
I guess you update some plugins one of those plugins is the script security plugin, which in the version you update works on Jenkins 1.609 but does not support Java 6. I will tell you that the faster solution is to restore the plugins folder from a backup that you have before the changes on the

Re: "configure" fails with major.minor version issue

2021-07-12 Thread Ivan Fernandez Calvo
"Unsupported major.minor version 52.0" means that you need to run on Java 8 (see https://stackoverflow.com/questions/10382929/how-to-fix-java-lang-unsupportedclassversionerror-unsupported-major-minor-versi/ ) the Java 6 version you are using is EOL since 2013 (see

Re: "configure" fails with major.minor version issue

2021-07-12 Thread Ivan Fernandez Calvo
"Unsupported major.minor version 52.0" means that you need to run on Java 8 (see https://stackoverflow.com/questions/10382929/how-to-fix-java-lang-unsupportedclassversionerror-unsupported-major-minor-versi/) the Java 6 version you are using is EOL since 2013 (see

Re: Jenkins master to slave connection is giving key verification error.

2021-07-06 Thread Ivan Fernandez Calvo
>We have set up a Master slave configuration it is giving Error as Host Key Verification Strategy failed Could you provide the error and exception stack trace you show in the logs of the AGENT? >and we had the strategy i.e Non Verifying Verification Strategy , but even after that the host

Re: Trouble using JenkinsRule with PluginManager

2021-06-30 Thread Ivan Fernandez Calvo
We do not use Spock, but we have a process to test jobDSL definitions before applying changes see https://github.com/elastic/apm-pipeline-library/tree/master/.ci/jobDSL it test that the syntax is correct and test that you can create the job. Probably the class that helps you is

Re: java.io.IOException: error=2, No such file or directory - Error

2021-06-22 Thread Ivan Fernandez Calvo
IIRC this is because you do not have Docker CLI installed on the Jenkins controller. El martes, 22 de junio de 2021 a las 16:38:16 UTC+2, gangaia...@gmail.com escribió: > Hi All, > > Hope everyone are doing fine. > > We are migrating from bamboo to Jenkins and finding some hurdles during >

Re: XML Job to DSL Job Plugin for Multibranch Pipeline

2021-03-22 Thread Ivan Fernandez Calvo
I have tested that plugin a couple of months ago, it works for simple jobs (freestyle, pipelines, ...) but I did not find a way to make it work with multibranch pipelines. Also, the support of JobDSL for multibranch pipelines is limited after 1.74, it is not possible to use configure blocks to

Re: Automatically create initial admin user

2021-03-12 Thread Ivan Fernandez Calvo
you can use Jenkins Configuration as Code plugin (https://github.com/jenkinsci/configuration-as-code-plugin) to configure your security see the Matrix Authentication example at https://github.com/jenkinsci/configuration-as-code-plugin/tree/master/demos/matrix-auth El jueves, 11 de marzo de

Re: jenkins and bash

2021-03-07 Thread Ivan Fernandez Calvo
A common issue is that you are not using the same shell, for example on Ubuntu by default is common to have installed *dash* as the default shell, this causes troubles when you use *bash only features*. A good practice is to set the first line to *"#!/bin/bash" *or *"#!/usr/bin/env bash"* and

Re: Multibranch Pipeline git events on PR

2021-02-15 Thread Ivan Fernandez Calvo
Check if you have set git references on the job, IIRC the git plugin always make a `git fetch —all` El lunes, 15 de febrero de 2021 a las 10:49:21 UTC+1, Rishi Gautam escribió: > anyone has any idea please > > On Wed, Feb 10, 2021 at 4:16 PM Gautam, Rishi > wrote: > >> I was trying to carry

Re: Jenkins Upgrade 2.235.1 to 2.263.3 All Nodes Can't Connect

2021-02-15 Thread Ivan Fernandez Calvo
Remember that JNLP agents do not update the remoting jar if are not configured to do that, on Jenkins Core 2.248 there is a change on the remoting version, I bet you can bump the version to 2.247 without issues. To upgrade to 2.248+ you would need to upgrade the remoting jar on the JNLP

Re: Issue with master-agent communication over ssh

2021-02-02 Thread Ivan Fernandez Calvo
>I have 2 different kind of jenkins agents. >1. java web start >2. ssh >If the memory was issue then wouldn't it fail on both cases? Not necessarily, starting by the point that are different ways to establish the connection, the JNLP agents could not update the remoting jar file (depends on

Re: run jenkins pipeline fails "docker": error=2, No such file or directory

2021-01-28 Thread Ivan Fernandez Calvo
If you are running Jenkins ins a Docker container with the official Docker container, the docker CLI command is not installed and that's your error, you need the docker CLI installed to access a Docker Host. One trick can be to mount the binary of the Docker Host where you are running that

Re: SSH connection issue with Host Key Verification Strategy

2021-01-13 Thread Ivan Fernandez Calvo
>* Is Manually trusted key Verification Strategy, without "Require manual verification of initial connection", more secure than Non verifying Verification Strategy Any verification strategy is more secure than none >What are the downsides of Manually trusted key Verification Strategy? You

Re: Pipeline DSL using a shared lib which is a java class

2021-01-08 Thread Ivan Fernandez Calvo
ctly from a shared lib project excepted if thy have been > compiled, packaged as jar under a maven repository and that you import it > using "@Grab" - > https://www.jenkins.io/doc/book/pipeline/shared-libraries/#using-third-party-libraries > > > > On Thu, Jan 7, 2021 a

Re: Pipeline DSL using a shared lib which is a java class

2021-01-07 Thread Ivan Fernandez Calvo
you can use directly a class from the Shared library This is an example in our shared library (https://github.com/elastic/apm-pipeline-library) https://github.com/elastic/apm-pipeline-library/blob/master/src/co/elastic/matrix/DefaultParallelTaskGenerator.groovy and a pipeline that uses that

Re: All jobs disappeared from view

2021-01-02 Thread Ivan Fernandez Calvo
Did you check the logs? I bet you have an exception related to one or more plugins not loaded correctly El sábado, 2 de enero de 2021 a las 4:22:33 UTC+1, dma...@gmail.com escribió: > Yes, I had tried that, numerous times. (All the jobs data is there). I > even restored a backup done

Re: Issue with master-agent communication over ssh

2021-01-01 Thread Ivan Fernandez Calvo
If the agent is running something there is traffic, so it si not related to keep alive settings, I wonder if after the issue happens there is a remoting process running on the agent. Did you check the SSHD service logs on your agent?

Re: github issues

2020-12-24 Thread Ivan Fernandez Calvo
We overwrote the checkout step in our pipeline shared library to introduce retires and a delay between retries, this is the step https://github.com/elastic/apm-pipeline-library/blob/master/vars/checkout.groovy El jueves, 24 de diciembre de 2020 a las 14:55:35 UTC+1, unli...@gmail.com escribió:

Re: jenkins_home, docker, upgrades

2020-12-12 Thread Ivan Fernandez Calvo
El lunes, 7 de diciembre de 2020 a las 16:12:10 UTC+1, ewel...@gmail.com escribió: > > Hi! > > I am using Jenkins in Docker and I map a folder from local machine to the > container's /var/jenkins_home to preserve JENKINS_HOME. > > There are two things I am wondering about, and maybe you can

Re: Issue with master-agent communication over ssh

2020-12-11 Thread Ivan Fernandez Calvo
The most common issue is related to disconnections because there is no traffic between the Jenkins instance and the agent, for that, you have to tune the TCP stack of your OS (see

Re: Renew expired certificate for Jenkins SAML plugin

2020-11-13 Thread Ivan Fernandez Calvo
X509 certificate in it, > and I believe this should be used with an AD provider. > > Would this be a correct procedure? > > Thanks again. > > Kind regards, > Igor > > On Sun, Nov 8, 2020 at 7:48 PM Ivan Fernandez Calvo > wrote: > >> the result is the same you have

Re: Renew expired certificate for Jenkins SAML plugin

2020-11-08 Thread Ivan Fernandez Calvo
the result is the same you have a private key and a certificate that you have to import in the Keystore, This Keystore is the one you have to configure in the SAML plugin El domingo, 8 de noviembre de 2020 a las 20:26:50 UTC+1, david...@gmail.com escribió: > Thank you for reply. > > If we

Re: Can HTML submit button trigger a Jenkins job ?

2020-11-03 Thread Ivan Fernandez Calvo
also, if your authentication is SAML, you will have to use an API Token to call the API. SAML delegate the authentication in your IdP so Jenkins does not process your User and Password only the TOKEN generated by your IdP. El lunes, 2 de noviembre de 2020 a las 18:17:00 UTC+1,

Re: Renew expired certificate for Jenkins SAML plugin

2020-11-03 Thread Ivan Fernandez Calvo
This Keystore is automatically created if you do not configure encryption, the Pac4j needs a key to work even though you do not use encryption. So in general if you do not use sign or encryption in the SAML messages (not related to TLS) you do need to configure anything this file will be used

Re: JNLP inbound Agent

2020-11-02 Thread Ivan Fernandez Calvo
El lunes, 2 de noviembre de 2020 a las 18:39:41 UTC+1, vit...@1-family.net escribió: > Thanks Ivan for your response, > > I'm running Jenkins in a standalone mode, without any web server such as > Apache / Nginx in front of it, > Jenkins is configured for TSL 8080, > and I've configured the

Re: JNLP inbound Agent

2020-11-01 Thread Ivan Fernandez Calvo
The inbound agents negotiate the connection calling a HTTP/S URL, because of that your fixed inbound does not apear in the URL you see in the UI. The URL you see there, it is generated with the setting Jenkins URL you have in Manage Jenkins/System Configuration,. Because you see an HTTP URL and

Re: ConcurrentModificationException saving artifacts to GCP

2020-10-29 Thread Ivan Fernandez Calvo
Well, we really did not workaround the issue, it simply happens fewer times, the real solution will be https://github.com/jenkinsci/google-storage-plugin/pull/120 El jueves, 29 de octubre de 2020 a las 16:53:38 UTC+1, Ivan Fernandez Calvo escribió: > We have workaround the issue by us

Re: ConcurrentModificationException saving artifacts to GCP

2020-10-29 Thread Ivan Fernandez Calvo
{baseDir}/build/distributions/", pattern: "${baseDir}/build/distributions/**/*", sharedPublicly: true, showInline: true ) setUnlock() } El miércoles, 28 de octubre de 2020 a las 22:34:59 UTC+1, Ivan Fernandez Calvo escribió: > Hi, > > We are facing some issu

Re: How to access jenkins using ip address remotely ?

2020-10-20 Thread Ivan Fernandez Calvo
Do you use something like this to run Jenkins? java --jar jenkins.war -httpListenAddress=0.0.0.0 --httpPort=8080 El martes, 20 de octubre de 2020 a las 19:35:17 UTC+2, nhoj.p...@gmail.com escribió: > From the command line do; > $ netstat -an | grep 8080 > > That will show you what ip address

Re: Jenkins SAML with google

2020-10-15 Thread Ivan Fernandez Calvo
-security El jueves, 15 de octubre de 2020 a las 7:02:59 UTC+2, Rishi Gautam escribió: > Thank you Ivan for responding, but that didn't worked for me as well. > > On Wed, Oct 14, 2020 at 10:33 PM Ivan Fernandez Calvo > wrote: > >> Hi, >> >> you have how to do it i

Re: Jenkins SAML with google

2020-10-14 Thread Ivan Fernandez Calvo
Hi, you have how to do it in the documentation of the plugin https://github.com/jenkinsci/saml-plugin/blob/master/doc/CONFIGURE.md#configuring-groups-security El miércoles, 14 de octubre de 2020 a las 13:52:07 UTC+2, Rishi Gautam escribió: > Using role based strategy, is there any way to give

Re: SVN Issue

2020-10-12 Thread Ivan Fernandez Calvo
>we are planning to migrate Jenkins master to Linux Do your new Jenkins instance is the same version as the old? Do both have the same version of the SVN plugin installed? also around that error should be a stack trace that gives the real issue, that message is generic. El lunes, 12 de octubre

Re: master to agent connection keeps breaking every 3-4 hours

2020-09-30 Thread Ivan Fernandez Calvo
ideally, on both sides, make it on one side usually is enough. El miércoles, 30 de septiembre de 2020 a las 3:22:00 UTC+2, ashish...@gmail.com escribió: > Thanks, are these setting to be applied on master side or slave or both? > > On Wednesday, September 30, 2020 at 12:15:23 AM UTC+8

Re: master to agent connection keeps breaking every 3-4 hours

2020-09-29 Thread Ivan Fernandez Calvo
- Why does agent tries to connect to master when its already connected? That suggests half-closed connections, it means that the agent loses the connection with the Jenkins instance but the FIN notification never arrived to the Jenkins instance so the connection is open in the Jenkins

Re: How do you set java options for ssh agents

2020-09-25 Thread Ivan Fernandez Calvo
is how it works. El miércoles, 23 de septiembre de 2020 a las 23:37:18 UTC+2, Ivan Fernandez Calvo escribió: > I will configure a test environment with JCasC that has jmvOptions too see > how it behaves, then we will know if it is an issue or not, in any case is > weird. > > El

Re: SAML with Okta is very slow

2020-09-24 Thread Ivan Fernandez Calvo
Is your Jenkins home in a NFS or other network storage? I think so for the mount point, when a user enter a few files are written, because your IO is slow the IO operations are blocked waiting to finish that make the login slower than expected. You probably has more performance issues, I

Re: How do you set java options for ssh agents

2020-09-23 Thread Ivan Fernandez Calvo
the menu and lauch the agent again with the launch button in the status page. El miércoles, 23 de septiembre de 2020 a las 19:01:46 UTC+2, Ivan Fernandez Calvo escribió: > How much memory those agents have? you set "-Xmx64g -Xms64g" for the > remoting process (not for build

Re: How do you set java options for ssh agents

2020-09-23 Thread Ivan Fernandez Calvo
How much memory those agents have? you set "-Xmx64g -Xms64g" for the remoting process (not for builds) you agent has to have more than 64GB of RAM to run any build on it, you grab 64GB only for the remoting process, and this RAM should be enough to run you builds. The remoting agent usually

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

2020-09-14 Thread Ivan Fernandez Calvo
I think this groovy script is what you want https://github.com/cloudbees/jenkins-scripts/blob/master/list-credential.groovy El lunes, 14 de septiembre de 2020 a las 14:57:33 UTC+2, geoffroy...@gmail.com escribió: > Hello > > as a global instance admin, is there a way i can view (not decrypt)

Re: Windows client ssh connection error

2020-09-01 Thread Ivan Fernandez Calvo
h failed - cleaning up connection > > [09/01/20 14:00:21] [SSH] Connection closed. > > > > > > *From:* jenkins...@googlegroups.com *On > Behalf Of *Jérôme Godbout > *Sent:* September 1, 2020 12:40 PM > *To:* jenkins...@googlegroups.com > *Subject:* RE: Windows client ssh connection err

Re: Windows client ssh connection error

2020-09-01 Thread Ivan Fernandez Calvo
when you enter on that Windows machine though SSH manually, Do you have a long banner at the beginning that you do not have in the other machine? El martes, 1 de septiembre de 2020 a las 18:04:53 UTC+2, Ivan Fernandez Calvo escribió: > Has the user that connect permissions on c:\JenkinsSl

Re: Windows client ssh connection error

2020-09-01 Thread Ivan Fernandez Calvo
Has the user that connect permissions on c:\JenkinsSlave? Is the folder c:\JenkinsSlave\remoting created? Are there some err_pid* files or log files in c:\JenkinsSlave folder? El martes, 1 de septiembre de 2020 a las 17:48:39 UTC+2, Jérôme Godbout escribió: > Hi, > > > > I did solve my

Re: Windows slave by ssh

2020-08-27 Thread Ivan Fernandez Calvo
I hate this class src/main/java/hudson/plugins/sshslaves/JavaVersionChecker.java I though to remove it and force configuring the Java path in the plugin or have Java in the PATH, it is a requirement to run the remoting process. The PR from Alex is a valid workaround meanwhile I think how to

Re: Gradle Build takes long time while running from Jenkins slave but its faster when I run from local command line

2020-08-26 Thread Ivan Fernandez Calvo
When you run the job on Jenkins the agent process is writing more files to the workspace, like the log so the IO speed to the NFS server is really important, I would not recommend to use NFS for the workspace if you cannot ensure a 100-150MB/s IO and NFSv4 protocol

Re: Security Vulnerability on my Jenkins Server

2020-08-24 Thread Ivan Fernandez Calvo
Yes, configuring the ciphers accepted by your JDK edit the file lib\security\java.security (the path will vary based on your Java version) El lunes, 24 de agosto de 2020 a las 16:48:22 UTC+2, eric@gmail.com escribió: > Hi all! I'm getting hit by my secuity team for a vulnerability for

Strange SAML-jenkins certificate expired causing JENKINS-ADFS integration SSO login to fail

2020-08-13 Thread Ivan Fernandez Calvo
SAML plugin needs a certificate for sign and encrypt the communications with the IdP, if you no provide one the SAML plugin generate a key and a certificate for that purpose, the certificate is renewed automatically when it expires but the IdP needs the new certificate is your responsability to

Re: SAML plugin - differentiate between encryption and signing certificate

2020-07-28 Thread Ivan Fernandez Calvo
Hi, The configuration only allows one certificate, this is used for singing and encryption, so it is not possible to use two different certificates. El lunes, 27 de julio de 2020, 21:54:03 (UTC+2), Chris DW escribió: > > Hi , > > When setting up the Jenkins SAML plugin, is it possible to

[JCasC] can i utilize variables?

2020-07-24 Thread Ivan Fernandez Calvo
Hi, You can use environment variables inside of your JCasC file. If you need something more complicated you can use a Jinja template and https://github.com/kolypto/j2cli to make the transformation to YAML -- You received this message because you are subscribed to the Google Groups "Jenkins

Re: SSH Agent, z/OS USS, and git authentication problems

2020-07-12 Thread Ivan Fernandez Calvo
I think that this is the reason why it does not work https://support.cloudbees.com/hc/en-us/articles/224910467-Why-am-I-unable-to-authenticate-via-sshagent-inside-docker- El sábado, 11 de julio de 2020, 22:25:08 (UTC+2), Randall Becker escribió: > > I'm having issues trying to get an agent to

Re: Jenkins SAML ADFS and local users.

2020-07-01 Thread Ivan Fernandez Calvo
> > > Are any future plans to have the same capability with SAML/ADFS plugin > or anything else down the line planned in Jenkins Core to overcome this > scenario? > No, I do not have plans to add any kind of fallback user to the SAML plugin, this, in my opinion, is to add a non-related SAML

Re: How to edit xml files through Jenkins pipeline?

2020-06-23 Thread Ivan Fernandez Calvo
Hi, I'd not recommend processing the XML file inside the Jenkinsfile, all the Groovy code you put in a Jenkins file consumes resources in the Jenkins instance (not in the Agent) and process an XML file can be a heavy process. I recommend you call a command-line tool or a Python script to

Re: viewing the public key for a ssh pki credential?

2020-05-27 Thread Ivan Fernandez Calvo
You can make groovy magic on the Jenkins console, grab the credential, and extract the public key, but sounds odd. but this pipeline make the job for any credential and it is easy :D pipeline { agent any parameters { credentials credentialType:

Re: slave status as offline on another jenkins master server

2020-05-27 Thread Ivan Fernandez Calvo
Do you mean you have the same agent connected to two different masters with different versions of the core and using the same user with the same home? if so, this is a miracle that works, you are sharing same files between two different instances of Jenkins core that also are in different

Re: [JNLP][Agent][Docker] connect an Agent to a Jenkins instance using self-signed certs

2020-04-13 Thread Ivan Fernandez Calvo
I make it with JCasC, basically is a Docker compose with Jenkins, openSAML, and a SSH Build Agent, it is what I use to test issues see https://github.com/kuisathaverat/jenkins-issues/tree/master/jobDSL You have a bunch of examples on the JCasC demo folder

Re: [JNLP][Agent][Docker] connect an Agent to a Jenkins instance using self-signed certs

2020-04-11 Thread Ivan Fernandez Calvo
Well, it was a stupid thing the URL that I pass to the Docker container is the JNLP agent URL ( https://jenkins:9443/computer/jnlp-agent/slave-agent.jnlp ), it should be the Jenkins URL (https://jenkins:9443 ), so that's my error.

[JNLP][Agent][Docker] connect an Agent to a Jenkins instance using self-signed certs

2020-04-11 Thread Ivan Fernandez Calvo
Hi, I have a Jenkins instance running (2.230, also I have tested LTS) on a Docker container using only HTTPS with self-signed certificates, in the same network I start an SSH Build Agent and a JNLP Agent, the SSH Build agent connects without issues, but the JNLP gives me an error I dunno what

  1   2   3   >