Re: Not able to generate coverage report from jenkins

2017-02-17 Thread Ivan Fernandez Calvo
Hi It is a sbt-coverage issue check the last comment at https://github.com/scoverage/sbt-scoverage/issues/134 El jueves, 9 de febrero de 2017, 5:24:16 (UTC+1), Sukumar Reddy escribió: > > Hello All I am using > > 1. Jenkins >Jenkins ver. 1.625.18.3 (CloudBees Jenkins Enterprise

Re: Jenkins Okta auth

2017-04-20 Thread Ivan Fernandez Calvo
Hi, To configure Okta as SAML service you have to follow this documentation http://developer.okta.com/standards/SAML/setting_up_a_saml_application_in_okta, It seems like you did that and have the IdP up and running, you have to set these setting in order to make it works *Single Sign on Url

Re: Jenkins SAML + nginx + ELB

2017-04-07 Thread Ivan Fernandez Calvo
You have a different issue, in your case your Sp, Jenkins, it is not register on your IdP so it reject your request for authentication, the method to register a new SP depends of your IdP, here you have an example of configuration with simplesamlphp, it identifies the SP with the response URL

Re: Jenkins SAML + nginx + ELB

2017-04-07 Thread Ivan Fernandez Calvo
The URL with an example https://github.com/kuisathaverat/docker-simplesamlphp/blob/master/etc/simplesamlphp/metadata/saml20-sp-remote.php -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails

Re: SAML Authentication - also need normal http auth

2017-04-25 Thread Ivan Fernandez Calvo
HI, It is not possible to use two authentication plugins/methods at the same time, but you could use the API token as authentication method for scripts or other automated tasks, for more information you can take a look at

Re: SAML Authentication - also need normal http auth

2017-04-28 Thread Ivan Fernandez Calvo
wever >> >> How does the API key for a SAML authed user get persisted?is it just in >> memory? If I restart Jenkins, does it get reset? >> >> I notice there are no user config.xml files created by Jenkins for SAML >> users. >> >> James M >> >>

Re: Broken SAML

2017-08-07 Thread Ivan Fernandez Calvo
Antonio just made the PR and will be merged in about 12 hours, then I will release the 1.0.3 version El lunes, 7 de agosto de 2017, 21:06:43 (UTC+2), Curtis Kline escribió: > > I updated plugins today and got locked out of Jenkins. SAML authentication > is completely broken. I am on Jenkins

Re: Broken SAML

2017-08-07 Thread Ivan Fernandez Calvo
I filled this bug https://issues.jenkins-ci.org/browse/JENKINS-46039 and in a few, I will make a PR El lunes, 7 de agosto de 2017, 21:06:43 (UTC+2), Curtis Kline escribió: > > I updated plugins today and got locked out of Jenkins. SAML authentication > is completely broken. I am on Jenkins 2.73

Re: Broken SAML

2017-08-07 Thread Ivan Fernandez Calvo
released 1.0.3 version that contains the fix El lunes, 7 de agosto de 2017, 21:06:43 (UTC+2), Curtis Kline escribió: > > I updated plugins today and got locked out of Jenkins. SAML authentication > is completely broken. I am on Jenkins 2.73 with all the latest plugin > versions. A stack trace

Jenkins SAML + Azure AD

2017-10-30 Thread Ivan Fernandez Calvo
It never gonna work Azurre cannot reach your service http://localhost:/securityRealm/finishLogin to send the SAMLResponse, both machines have to have visibility it is a basic premise for SAML -- You received this message because you are subscribed to the Google Groups "Jenkins Users"

Re: Security Access Violation?

2018-01-16 Thread Ivan Fernandez Calvo
There is an issue reported https://issues.jenkins-ci.org/browse/JENKINS-27306 And there is some that I am not sure but they seem related https://issues.jenkins-ci.org/browse/JENKINS-43934 https://issues.jenkins-ci.org/browse/JENKINS-27916 -- You received this message because you are subscribed

How to run jobs on oraclelinux container.

2018-01-16 Thread Ivan Fernandez Calvo
You can build your own docker image based in this https://github.com/jenkinsci/docker-jnlp-slave but extending this one https://hub.docker.com/_/oraclelinux/ , you only need to be sure that Java is in it -- You received this message because you are subscribed to the Google Groups "Jenkins

ReverseProxyAuth not working anymore

2018-02-08 Thread Ivan Fernandez Calvo
If you use Apache httpd in front of Jenkins check that your config looks like this one ProxyPreserveHost On ProxyRequests Off AllowEncodedSlashes NoDecode Timeout 5400 ProxyTimeout 5400 Order deny,allow Allow from all

Re: jenkins, saml and Keycloak SSO

2018-02-17 Thread Ivan Fernandez Calvo
Did you import the public key of the SP (Jenkins) in the IdP? If not, import it or disable the signing and/or encryption in the IdP. Other option it is to use the version 0.14 of SAML Plugin that not enforce to define any key . -- You received this message because you are subscribed to the

jenkins, saml and Keycloak SSO

2018-02-18 Thread Ivan Fernandez Calvo
>How can I add the IDP public key to my keystore and how to configure jenkins >to decode saml message with the key in the keystore ? The IdP key should be in the IdP Metadata as described in https://www.oasis-open.org/committees/download.php/51890/SAML%20MD%20simplified%20overview.pdf If You

Re: jenkins, saml and Keycloak SSO

2018-02-19 Thread Ivan Fernandez Calvo
The Data binding Method SAML Plugin setting should be HTTP-POST, you IdP metadata only support HTTP-POST (https://github.com/jenkinsci/saml-plugin/blob/master/doc/CONFIGURE.md https://github.com/jenkinsci/saml-plugin/blob/master/doc/TROUBLESHOOTING.md -- You received this message because you

Re: AES256-CTR support in Publish over SSH and JSch dependency Plugins

2018-08-03 Thread Ivan Fernandez Calvo
Check that your JDK supports the cipher and it is not disabled. On this page https://docs.oracle.com/javase/8/docs/technotes/guides/security/SunProviders.html#SunJSSEProvider said the following Cipher suites that use AES_256 require installation of the JCE Unlimited Strength Jurisdiction

SAML logout in Jenkins

2018-08-14 Thread Ivan Fernandez Calvo
SAML Plugin does not support SLO, it only support to redirect you to an URL an desltroy the Jenkins session, I have plans for support it but not time soon -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop

Re: connect with SSH

2018-08-26 Thread Ivan Fernandez Calvo
You can configure sido to do not as for password to some commands, or for every command. Also you can pass the password in command line echo password | sudo command You can inject the password in your job from a credential in Jenkins -- You received this message because you are subscribed to

Re: connect with SSH

2018-08-26 Thread Ivan Fernandez Calvo
I meant echo 'password' | sudo -S command -- 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

restart is obscured

2018-08-29 Thread Ivan Fernandez Calvo
SafeRestart plugin add a button to the safeRestart link https://wiki.jenkins.io/display/JENKINS/SafeRestart+Plugin -- 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

Need Help with SSH Slave Plugin - Unable to Start Node with SSH

2018-04-21 Thread Ivan Fernandez Calvo
Did you restart after install the last version of the plugin? Did you try different host key validation on the agent configuration? It is to check if only one type fail or all fail -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To

What's the proper REST flow for SAML auth with CSRF enabled?

2018-04-17 Thread Ivan Fernandez Calvo
Hi, If you want to make an API REST call you only need the API Token and a valid crumb, the user will be granted with the latest authorities from the last login, you have more details in the following link https://wiki.jenkins.io/display/JENKINS/Remote+access+API -- You received this message

JNLP agent startup not working after upgrade from 2.4x to 2.89.4

2018-03-05 Thread Ivan Fernandez Calvo
Did you replace the slave.jar? Did you try to uninstall the service and install it again? Also take a look at this page https://github.com/jenkinsci/windows-slave-installer-module/blob/master/README.md -- You received this message because you are subscribed to the Google Groups "Jenkins

Monitoring slaves

2018-10-26 Thread Ivan Fernandez Calvo
I have used nagios in the past, now I preferred metricbeats https://www.elastic.co/products/beats/metricbeat https://www.nagios.com/solutions/operating-system-monitoring/ -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from

Re: Making the jenkins scm checkout smart

2018-10-30 Thread Ivan Fernandez Calvo
you need to take a look to multibranch pipelines and blueocean, i think it makes what you want https://jenkins.io/projects/blueocean/ https://jenkins.io/doc/book/pipeline/multibranch/ https://jenkins.io/doc/tutorials/build-a-multibranch-pipeline-project/ -- You received this message because you

jenkins pipeline to populate robot test result with exception: Cannot get property 'simpleName' on null object

2018-10-25 Thread Ivan Fernandez Calvo
Try to print the value of the action variable to check tha is correct, also use the Elvis operator. echo “Action: “ + action + “ class: “ + action?.class If("RobotBuildAction".equals(action?.class?.simpleName)) -- You received this message because you are subscribed to the Google Groups

Jenkins - Push Image to AWS ECR

2018-10-25 Thread Ivan Fernandez Calvo
Could you try the pipeline snippet in this comment? https://issues.jenkins-ci.org/browse/JENKINS-44143?focusedCommentId=329510=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-329510 -- You received this message because you are subscribed to the Google Groups "Jenkins

Re: Help: Jenkins builds ONLY on master OR slave

2018-11-02 Thread Ivan Fernandez Calvo
You can make it with a pipeline with 2 stages in parallel with the same steps and different nodes somethinlike this pipeline{ stages { stage(‘parallel’) { parallel { stage(‘master’){ agent { label ‘master’} steps{ //steps } }

Re: SSLError

2018-11-13 Thread Ivan Fernandez Calvo
take a look at this issue of the Azure CLI https://github.com/Azure/azure-cli/issues/5099 I think is your issue. El lunes, 12 de noviembre de 2018, 19:02:44 (UTC+1), gotvi...@gmail.com escribió: > > Need urgent help. Trying to run a job in Windows Slave and getting this > error. Please help.

Re: Multibranch Pipeline Scan Hangs

2018-11-15 Thread Ivan Fernandez Calvo
also, check the value of the TIMEOUT property, execute this code in the Jenkins script console, the default value is 10 minutes, you can increase it by setting the property in your command line System.getProperty(org.jenkinsci.plugins.gitclient.Git.class.getName() + ".timeOut") If you have

Re: Multibranch Pipeline Scan Hangs

2018-11-15 Thread Ivan Fernandez Calvo
Are you using a shared network filesystem for your JENKINS_HOME? it seems like takes too long to save data, I guess your filesystem is too slow, check if your filesystem speed is lower than100MB/s, if so, it is too slow and you have performance issues on Jenkins. ```

Re: transfer files between linux servers ssh without password in jenkins

2018-10-04 Thread Ivan Fernandez Calvo
The error "Permission denied" is because the user piansible does not have read/write permissions on the source/destination, check it this user can read the sources files and can write the destination folder. About to not use a

Re: Windows 10 node and ssh-slave plugin

2018-09-26 Thread Ivan Fernandez Calvo
HI, Take a look to https://issues.jenkins-ci.org/browse/JENKINS-42856 I think that it is the same issue, there is a workaround, see my last comments, It does not work I can help you on that issue. El martes, 25 de septiembre de 2018, 21:39:49 (UTC+2), christoph...@inria.fr escribió: > >

Re: SAML plugin with SSO

2018-09-25 Thread Ivan Fernandez Calvo
Hi, Did you read the documentation at https://github.com/jenkinsci/saml-plugin/tree/master/doc? you should take a look at the troubleshooting guide. The probable cause, it is that you do not set the proper group and display name for your IdP, Jenkins do not know anything about your IdP and

Re: Unable to Launch an Agent, getting "received junk text is as follows: stdin: is not a tty"

2019-01-02 Thread Ivan Fernandez Calvo
Hi, Did you check to connect with the user from the command line from the Jenkins instance? try to execute the following command from the Jenkins instance with the same user that you use to run Jenkins su jenkins ssh USER@AGENT_HOST ls ssh -T USER@AGENT_HOST ls ssh -t USER@AGENT_HOST ls check

Jenkins build history from ssh slave disappears

2018-12-13 Thread Ivan Fernandez Calvo
You have to have error sin the Jenkins los just after the bulldog desapegar, Probably if you restarte the instance when Jenkins will try to load those build throws the same error. This kind of errors use to be related to a plugin that breaks the xml files saving something wrong, you need the

Re: SSH Slave crashing immediately after start

2019-04-02 Thread Ivan Fernandez Calvo
I never used selenium grid plugin, but maybe 128MB it is too right, try larger (512 or 256) values and decrease it to the minimum that works in a stable way -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and

Re: SSH Slave crashing immediately after start

2019-04-02 Thread Ivan Fernandez Calvo
It is not the same kind of issue, in you case it failed to copy a file to you agent, check that you have disk space on the agent in the path /var/jenkins, check if that path exists, check that the user used by Jenkins to connect has permissions on that folder, check the folder is writable

Re: SSH Slave crashing immediately after start

2019-04-02 Thread Ivan Fernandez Calvo
Also check the agent working directory you should have log files and perhaps some error_pid files -- 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

RE: EXTERNAL: Running Jenkins behind Apache FAIL

2019-03-26 Thread Ivan Fernandez Calvo
You did not set a prefix in the command line so the real URL uses the default prefix ’jenkins’ so the URL is http://10.0.1.234:1213/jenkins the http://10.0.1.234:1213 should return an error telling you that you have to add the prefix -- You received this message because you are subscribed to

Re: SSH Slave crashing immediately after start

2019-04-03 Thread Ivan Fernandez Calvo
I've found something weird, you 've said that your ssh-slaves-plugin version is 1.29, but the stack trace points to a method named SSHLauncher.startSlave, this method was renamed before that version and now is this one

Re: Excel sheet as a build parameter to Jenkins

2019-04-04 Thread Ivan Fernandez Calvo
I do not think that you can pass an excel file to a build to use it as parameters, but the readCSV step can read CSV files generated with Excel see https://jenkins.io/doc/pipeline/steps/pipeline-utility-steps/#readcsv-read-content-from-a-csv-file-in-the-workspace so you can pass a CSV file

Re: How to debug SSHLauncher (due special characters in username)?

2019-04-04 Thread Ivan Fernandez Calvo
so your user is something like ' username', IIRC the UI make a trim of the username so this first whitespace is deleted, I never saw a user that starts with whitespace, it is not a valid identifier El jueves, 4 de abril de 2019, 4:57:57 (UTC+2), Jason Pyeron escribió: > > Red herring. > >

Re: Parallel job Execution Through blue ocean

2019-04-04 Thread Ivan Fernandez Calvo
it is incorrect, you have a stages directive inside parallel so you only have one stage filled with serial stages, the following pipeline is correct (if I do not make any pitfall with the {) see https://jenkins.io/doc/book/pipeline/syntax/#parallel pipeline { agent any parallel {

A pipeline throws random java.io.NotSerializableException

2019-04-05 Thread Ivan Fernandez Calvo
Hi, Let's see if someone can help me with a weird error that I randomly have, I have a job with about 60 stages in parallel, those stages run some tests all in the same way, randomly I saw the following stack trace, I guess it is related to a custom step I have in my pipeline shared library to

Re: Trying to setup jenkins to spin up docker containers on demand as build slaves in a pipeline - getting unclear errors

2019-04-05 Thread Ivan Fernandez Calvo
Do you have installed docker command line tool in your Master? you need it, check also the PATH of the user that runs Jenkins. El viernes, 5 de abril de 2019, 15:51:00 (UTC+2), Zero Uno escribió: > > Il giorno mer 3 apr 2019 alle ore 16:53 'Andreas Davour' via Jenkins Users > > ha scritto: >

Re: How to use cached Docker images in a Jenkins slave?

2019-04-05 Thread Ivan Fernandez Calvo
We have a similar problem, to make a local cache of those images we pull then when we build packer images (once a day) so when we spin our VMs they have those Docker images and don't have to pull them from any repository. The only disadvantage of that it is you need extra disk space. In your

Re: Parallel job Execution Through blue ocean

2019-04-04 Thread Ivan Fernandez Calvo
' } } stage('JOB2') { steps { echo 'NOOP' } } } } } } El jueves, 4 de abril de 2019, 19:23:38 (UTC+2), Ivan Fernandez Calvo escribió: > > it is incorrect, you have a stages directive inside parallel so you only > have one sta

Jenkins Startup warning cannot find files

2019-04-07 Thread Ivan Fernandez Calvo
Without the whole exception it is difficult to help you on something, however this error could be related to previous errors, you have to check the first exceptions in logs would be the real cause to cannot read files, also check the warnings and errors in manage Jenkins page, I bet you have

Re: [SOCIAL NETWORK] Re: Trying to setup jenkins to spin up docker containers on demand as build slaves in a pipeline - getting unclear errors

2019-04-08 Thread Ivan Fernandez Calvo
The Docker plugin uses the docker CLI to interact with a Docker hosts, it does not matter it is local or remote, so if you want to connect your master to an external Docker host you'd need the docker CLI in the Docker image you use to spin the Jenkins Master, then the Docker plugin can connect

Re: Unable to upgrade Jenkins with exception Could not initialize class org.codehaus.groovy.runtime.InvokerHelper

2019-02-18 Thread Ivan Fernandez Calvo
t; > On Monday, February 18, 2019 at 12:11:53 PM UTC-6, Ivan Fernandez Calvo > wrote: >> >> If you have access to the UI, you could check the warning and errors that >> appear in the page manage Jenkins, it should be one or more plugins that >> fail to load, there yo

Node getting CancellationException during startup

2019-02-20 Thread Ivan Fernandez Calvo
Check the date time in both hosts, the log is not consistent there are more than an hour of clock difference -- 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

Re: Windows Installation and AIX slave.

2019-02-20 Thread Ivan Fernandez Calvo
Last time I check it, there is a openJDK 8 version for AIX but it is not easy to compile in some systems because the library denpendencies versions -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop

Re: Security - Pipeline parameterized credentials can be reused by other users

2019-03-16 Thread Ivan Fernandez Calvo
By using https://wiki.jenkins.io/plugins/servlet/mobile?contentId=102662618#content/view/10266261 and removing permissions to configure jobs, maybe build also and allow only to trigger builds to some people or manage it with comments from GitHub (see

How to create environment variables with a script?

2019-03-16 Thread Ivan Fernandez Calvo
For pipelines take a look to the environment directive documentation https://jenkins.io/doc/pipeline/tour/environment also you can define variable by asigning a value to env variable script { env.VARIABLE_NAME = ’value’ } See also https://jenkins.io/doc/book/pipeline/shared-libraries/

jenkins to point to custom /usr/local path of python

2019-03-09 Thread Ivan Fernandez Calvo
You have to add /usr/local/bin or wherever you have the python 3.6 binary to the PATH environment variable of the user you use to connect from Jenkins -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop

Re: Tagging code in a pipeline?

2019-03-22 Thread Ivan Fernandez Calvo
for the https case, there is an example at https://jenkins.io/doc/pipeline/examples/#push-git-repo El viernes, 22 de marzo de 2019, 15:00:47 (UTC+1), Robert Nicholson escribió: > > Ok it’s a https: url > > So how do you construct the appropriate > > ssh command then? > > all examples that use

Re: remoting issue

2019-02-06 Thread Ivan Fernandez Calvo
>Jenkins and the VMs are all running on the same machine, so network activity shouldn't be an issue. network is not an issue, but performance response, Could it be? it is not a good idea to run the Jenkins Master and Agents in the same machine, if you use Docker container and you do not limit

Unable to upgrade Jenkins with exception Could not initialize class org.codehaus.groovy.runtime.InvokerHelper

2019-02-18 Thread Ivan Fernandez Calvo
If you have access to the UI, you could check the warning and errors that appear in the page manage Jenkins, it should be one or more plugins that fail to load, there you would have the cause -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group.

Re: remoting issue

2019-02-11 Thread Ivan Fernandez Calvo
It could be tons of things, Probably, if you go to the node log (JENKINS_URL/computer/NODE_NAME/log) we could see if the agent connect or not, then if the communication is broken before/after connection and in which point. El miércoles, 6 de febrero de 2019, 16:39:17 (UTC+1), Glenn Burkhardt

Mask Passwords for Declarative Pipeline

2019-02-19 Thread Ivan Fernandez Calvo
You can use maskpasswods in declarative pipeline, you have to use wrapper step and place your scripts in the code block, however I recommend you to read this article https://support.cloudbees.com/hc/en-us/articles/203802500-Injecting-Secrets-into-Jenkins-Build-Jobs and use credentials and

Mask Passwords for Declarative Pipeline

2019-02-19 Thread Ivan Fernandez Calvo
Also the section about manage credential in pipeline https://jenkins.io/doc/book/pipeline/jenkinsfile/#handling-credentials -- 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

Re: Jenkins - link a java package to pipeline

2019-04-12 Thread Ivan Fernandez Calvo
Hi, There are many reasons to not include those classes in your pipeline code I will give you a couple, one it is that you will have to allow to execute a bunch of packages related to that library this would make your Jenkins less secure see

Re: Jenkinslibrary stepEnvironmentVariables aren't encoded properly

2019-04-12 Thread Ivan Fernandez Calvo
I'd guess the step `stepEnvironmentVariables` is in your Pipeline Shared Library `@Library('jenkinslib@jira-SBS-8863')_` because it is not in this page https://jenkins.io/doc/pipeline/steps/, so it is not a pipeline step provided by some Pipeline plugin, so it is an in house implementation you

Re: Jenkins - link a java package to pipeline

2019-04-15 Thread Ivan Fernandez Calvo
I've suggested you run a Groovy script on your agent using the Groovy CLI, not to include your groovy code in your pipeline, if you make a load it is the same that put the code in the Jenkinsfile (more or less), -- You received this message because you are subscribed to the Google Groups

Questions about masking and managing credentials

2019-04-13 Thread Ivan Fernandez Calvo
I’ve face a similar issue a few week ago, finally y workaround it by converting secrets to base64 then storing secrets into credentials, the problem it is that it is not possible to store multi line text into secret text credentials -- You received this message because you are subscribed to

Re: Jenkins - link a java package to pipeline

2019-04-13 Thread Ivan Fernandez Calvo
Put the jar file in a folder inside the classpath of the JDK used by your agent -- 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

Credentials "secret text" -> bash -> expect ?

2019-05-15 Thread Ivan Fernandez Calvo
If your secret is multiline, the secret text does not work as expected, you could store the one line base64 value of your secret and decode it before send it, it could work -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from

pipeline ignore error

2019-06-08 Thread Ivan Fernandez Calvo
I used to do it with the catchError step see the documentation for further details https://jenkins.io/doc/pipeline/steps/workflow-basic-steps/ -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving

Editing HTML Pages of Jenkins

2019-06-03 Thread Ivan Fernandez Calvo
Hi, The short answer is no, most of the UI is generated from jelly files so the only way to change the UI, it is to modified all the jelly files from each plugin that you have and all included in the core, If you want some thin simpler and a little modern take a look to the Blueocean plugin,

jenkins library pipeline

2019-06-03 Thread Ivan Fernandez Calvo
Hi, I’d recommend to configure those libraries in configure system settings and then use the short syntax ‘library(‘library-name@branch’)’ in that way you can forget about your credentials are managed on configure system settings, for more details see

Jenkins pipeline generates NoSuchFileException when started twice in parallel

2019-06-03 Thread Ivan Fernandez Calvo
Hi, I wonder why you are trying lo load a scrip from the @script folder, this folder is managed by Jenkins to store temporal files that probably delete, I do not see any reason to load a file from there and it is risky and really off, also I’d not recommend to use the load step because all

Cannot start slave on IBM i due to java.io.EOFException

2019-06-16 Thread Ivan Fernandez Calvo
Which JDK do you use on the Jenkins master? Did you try to execute the following command manually on the agent? cd "/home/Raddatz/jenkins" && /QIBM/ProdData/Java400/bin/java -Dfile.encoding=ISO8859_1 -jar remoting.jar -workDir /home/raddatz/jenkins/work -text check the directory

Cannot start slave on IBM i due to java.io.EOFException

2019-06-16 Thread Ivan Fernandez Calvo
I've found it, is a remoting option to use base64 to encode the comunication, I've never use it, it is not needed https://github.com/jenkinsci/remoting/blob/005dd67af809881ff0c79992583661fa2cde4229/src/main/java/hudson/remoting/Launcher.java#L130 -- You received this message because you are

Cannot start slave on IBM i due to java.io.EOFException

2019-06-16 Thread Ivan Fernandez Calvo
Another question, what is the use of ‘-text’ option you pass to the JVM? I did no find it on the Oracle JDK either on the IBM JDK -- 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

Re: Cannot start slave on IBM i due to java.io.EOFException

2019-06-16 Thread Ivan Fernandez Calvo
> Could you enable verbose loggin for the package "hudson.remoting"? FINE log level should enough see how at https://github.com/jenkinsci/remoting/blob/master/docs/logging.md Which version os SSH do you use? execute `ssh -V` -- You received this message because you are subscribed to the

Re: Cannot start slave on IBM i due to java.io.EOFException

2019-06-17 Thread Ivan Fernandez Calvo
Can you execute a command on a remote ssh session on the agent? something like the following commands `ssh USER@JENKINS_AGENT echo "OK"`, `ssh -t USER@JENKINS_AGENT echo "OK"`, `ssh -T USER@JENKINS_AGENT echo "OK"` -- You received this message because you are subscribed to the Google Groups

Re: Cannot start slave on IBM i due to java.io.EOFException

2019-06-17 Thread Ivan Fernandez Calvo
I run out of ideas, I could be some configuration option in /etc/ssh/sshd_config but I am not sure -- 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

Re: Can multibranch pipeline support user-selected branch?

2019-06-12 Thread Ivan Fernandez Calvo
Also, remember that every branch has his own Jenkins file so you can do what ever you want on every branch in that file it would effect only that branch. Finally, if your problem is the logic that you use to trigger scheduled build I would suggest to use a regular pipeline job to make the

Re: Can multibranch pipeline support user-selected branch?

2019-06-12 Thread Ivan Fernandez Calvo
I do not get your point, Multibranch pipeline creates a new job for each branch that match with the criteria you specify, so you have a job for every branch, I do not understand what do you mean with ’ I want whoever kicks off the job to be able to specify that only particular branches will

Re: Declarative pipeline: Somewhat more advanced deployment logic

2019-06-24 Thread Ivan Fernandez Calvo
about to use declarative or scripted, I'd said declarative, it'd force you to be cleaner and use pipeline code only to define the pipeline not to make your build process, in any case, you can use script blocks on Declarative pipeline by using the script step (

Re: Jenkins SAML Plugin and Azure AD Issue - Signature is not trusted

2019-05-21 Thread Ivan Fernandez Calvo
Hi, Without the JENKINS_HOME/saml-ipd-metadata.xml and JENKINS_HOME/saml-sp-metadata.xml files, I can not check your configuration, I recommend you to enable verbose log (see https://github.com/jenkinsci/saml-plugin/blob/master/doc/TROUBLESHOOTING.md#troubleshooting) and check how to the

Re: Memory issues with Jenkins

2019-07-13 Thread Ivan Fernandez Calvo
Hi, When the issue happens, Did you check the number of threads that Jenkins has open? How many file descriptors can your process open (run ulimit -a with the user jenkins)? here you have a good KB about memory and user limit on Jenkins Prepare Jenkins for Support

Re: how to define multibranch pipeline with jenkinsfile from another repository (or hardcoded)?

2019-07-13 Thread Ivan Fernandez Calvo
Hi, There is an option by using a shared pipeline library that allows you to define a full pipeline in a step, so you can have a simple Jenkinsfile on the repos that only call those steps, in that way you manage all your pipeline in your pipeline shared library

How can I pass the userName and password from jenkins

2019-07-13 Thread Ivan Fernandez Calvo
Hi, Here you have a couple of links that explain you how credentials works https://jenkins.io/doc/book/using/using-credentials/ https://support.cloudbees.com/hc/en-us/articles/203802500-Injecting-Secrets-into-Jenkins-Build-Jobs Also, I’d recommend to take a look to the documentation

Re: trying to get Jenkins pipeline to run across multiple nodes in parallel

2019-07-13 Thread Ivan Fernandez Calvo
to use groovy in dleclarative you have to use the `script` step to warp your code pipeline { stages { stage('Stage1') { steps { script { // YOU NEED TO USE THE SCRIPT BLOCK def labels = ['machine1', 'machine2'] // labels for Jenkins node types we will build on

Re: Running jobs sequentially on Jenkins ?

2019-07-13 Thread Ivan Fernandez Calvo
Hi, We have a similar use case, we create a bunch of Docker images and then we updated a bunch of k8s clusters with those images, for this task we use a simple pipeline with and stage per group of tasks, this run in sequential mode :) -- You received this message because you are subscribed

Re: Skip a Jenkins job build in a pipeline

2019-07-13 Thread Ivan Fernandez Calvo
El martes, 2 de julio de 2019, 18:44:39 (UTC+2), Nalin Garg escribió: > > I had a similar need. I ended up querying git to give list of all files > that were changed in PR. And then have logic around what files would be > wrapped in "if, else"/ "when" block. > > I preffer to use `when` at

Re: Jenkins slave machines stops abruptly

2019-07-13 Thread Ivan Fernandez Calvo
Hi, There is a really old remoting issue JENKINS-49472 resolved on latest Jenkins versions -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop

Re: Is there a way how to use template from email extension template plugin(emailexttemplates) in pipeline?

2019-07-13 Thread Ivan Fernandez Calvo
Hi, We've had the similar requirement, finally, we use a groovy template and a custom step from our shared pipeline library to make the thing, we got the idea from this nice article Prettifying Jenkins’ email notifications

Re: Jenkins Agents getting disconnected

2019-07-13 Thread Ivan Fernandez Calvo
I saw that you have another question related with OOM errors in Jenkins if it is the same instance , this is your real issue with the agents, until you do not have a stable Jenkins instance the agent disconnection will be a side effect. > > -- You received this message because you are

Re: Jenkins Agents getting disconnected

2019-07-13 Thread Ivan Fernandez Calvo
Hi, You do not need to save the configuration to force the disconnection, you can use the disconnection REST call URL see https://github.com/jenkinsci/ssh-slaves-plugin/blob/master/doc/TROUBLESHOOTING.md#force-disconnection About the disconnection error, this trace is the last error after the

Re: Declarative Jenkinsfile: different cron trigger per branch

2019-07-13 Thread Ivan Fernandez Calvo
Hi, Every branch has its own Jenkinsfile, so you can have different configuration on every Jenkinsfile -- 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

Re: Blue Ocean UI not prompting for input correctly when there are parallel input prompts in a pipeline

2019-07-13 Thread Ivan Fernandez Calvo
Hi, I don't think this is supported, it will only work with one input at a time, so probably you have to group your inputs in a stage before your parallel stages -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group

Re: How can I pass the userName and password from jenkins

2019-07-13 Thread Ivan Fernandez Calvo
I understand that you want to run the same thing 100 times with different users, or something like that, so you have the easy one that it is to use a credential de type file where you store you current CVS file, in this case it does not change too much you current process, you retrieve the file

Re: Opinions about aggressive reuse strategy for Jenkins pipelines

2019-04-10 Thread Ivan Fernandez Calvo
It is a fair approach, however my opinion is that the pipeline definition (stages and steps) should be in the project pipeline (Jenkinsfile), in the shared library we have only steps that make only one thing an they make it well or steps that combine several others, every step has his own unit

Re: unable to launch remoting agent on slaves

2019-08-29 Thread Ivan Fernandez Calvo
SSH-slaves plugin does not recommend to use the same user on the same host for several agent connections because it would share the remoting and the java cache folders https://github.com/jenkinsci/ssh-slaves-plugin/blob/master/doc/TROUBLESHOOTING.md#overall-recommendations it would never was

Re: SAML Configuration

2019-08-29 Thread Ivan Fernandez Calvo
modify the JENKINS_HOME/saml-sp-metadata.xml does not work, I am reviewing it because maybe there is a way to implement it by extending a class. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop

Re: SAML Configuration

2019-08-29 Thread Ivan Fernandez Calvo
Hi, It is not possible to disable signed on HTTP-POST, I've found some difficulties to make it on pac4j library ( https://issues.jenkins-ci.org/browse/JENKINS-47966), there is a workaround the IIRC works that it is to modify the JENKINS_HOME/saml-sp-metadata.xml file manually to disable it,

  1   2   3   >