Re: Ansible constructs ssh command that hangs and never returns.

2020-11-05 Thread Shifa Shaikh
cuting any > ssh command, the do you want to add the host [yes, no] question might be > blocking you and await user interaction… which in case of automated system > is not great. > > > > *From:* jenkins...@googlegroups.com < > jenkins...@googlegroups.com > *On Behalf

Ansible constructs ssh command that hangs and never returns.

2020-11-04 Thread Shifa Shaikh
I trigger the below ansible playbook using Jenkins pipeline. - name: Play 2- Configure Source nodes hosts: "{{ location }}" user: remoteuser strategy: free gather_facts: false vars: ansible_ssh_extra_args: -o StrictHostKeyChecking=no -o ConnectionAttempts=5 ansible_ssh_private_

Can HTML submit button trigger a Jenkins job ?

2020-11-01 Thread Shifa Shaikh
My HTML code is like below where i pass the crumb and try to trigger a Jenkins DSL job along with passing parameters: On the browser i see the URL as: https://localhost:8080/job/myjob1/buildWithParameters?paramone=myhost1-stop-myfolder%20-H%20Jenkins-Crumb:d863847724897hghjtg37684yh4j3y9847d

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

2020-08-12 Thread Shifa Shaikh
We have been login to Jenkins using SSO from the past one year without any issues. Today, however the SSO failed for the entire team and no one can login anymore. After providing the SSO AD credentials we are thrown to the SAMLLougout page. [image: SAMLLOGOUT.png] Upon investigation th

Getting error after Jenkins update: java.lang.NoSuchMethodError: No such DSL method 'pipeline' found among steps

2020-05-04 Thread Shifa Shaikh
My Jenkins pipeline is failing after I updated by Jenkins version from 2.224 to 2.234 along with all the plugins to the latest version. Below is my pipeline script was working fine on older Jenkins and older plugin. With Jenkins and plugin update, the pipeline is failing. pipeline { agen

Re: Unable to copy jobs from older to new version of Jenkins

2020-05-02 Thread Shifa Shaikh
support release rather than the weekly release. > > If you want the very latest improvements, then the weekly release is a > good choice. > > On Sat, May 2, 2020 at 9:30 AM Shifa Shaikh > wrote: > >> Unable to import jobs of Jenkins old version: 2.224 to Jenkins New &g

Re: Unable to copy jobs from older to new version of Jenkins

2020-05-02 Thread Shifa Shaikh
nts, then the weekly release is a > good choice. > > On Sat, May 2, 2020 at 9:30 AM Shifa Shaikh wrote: > >> Unable to import jobs of Jenkins old version: 2.224 to Jenkins New >> version: 2.234 >> >> After I copy the job from old to new Jenkins home t

Unable to copy jobs from older to new version of Jenkins

2020-05-02 Thread Shifa Shaikh
Unable to import jobs of Jenkins old version: 2.224 to Jenkins New version: 2.234 After I copy the job from old to new Jenkins home the Jenkins console UI throws this error: **You have data stored in older format and/or unreadable data.** Here is the old config.xml of a very simple job:

How to check inside Jenkins pipeline script if Ansible play-book succeeded or failed.

2020-03-31 Thread Shifa Shaikh
Below is my Jenkins pipeline script. I wish to call ex("ansible-failed") function whenever the ansible-playbook test.yml fails and thereby abort the pipeline. Below is my pipeline script. def ex(param) {echo "ABORT due to:" + param} pipeline{ stages{ stage