Re: Sudo Su command hangs in jenkins

2019-10-14 Thread sravan
Actually it worked I put in a shell script and used Sudo On Monday, October 14, 2019 at 3:05:46 PM UTC-7, slide wrote: > > Just to clarify, you are doing this AS the Jenkins user, not another user, > but as the acActautual user that the jenkins agent is running as. > > On Mon, Oct 14, 2019 at 2:1

Re: Sudo Su command hangs in jenkins

2019-10-14 Thread Slide
Just to clarify, you are doing this AS the Jenkins user, not another user, but as the actual user that the jenkins agent is running as. On Mon, Oct 14, 2019 at 2:13 PM sravan wrote: > when I type in Sudo su manually it works > > On Monday, October 14, 2019 at 2:05:18 PM UTC-7, slide wrote: >> >>

Re: Sudo Su command hangs in jenkins

2019-10-14 Thread sravan
when I type in Sudo su manually it works On Monday, October 14, 2019 at 2:05:18 PM UTC-7, slide wrote: > > Are you able to sudo su as the Jenkins user manually on the system? > > On Mon, Oct 14, 2019, 13:52 sravan > > wrote: > >> when I do sudo visudo >> I have this one >> ## Allow root to run

Re: Sudo Su command hangs in jenkins

2019-10-14 Thread Slide
Are you able to sudo su as the Jenkins user manually on the system? On Mon, Oct 14, 2019, 13:52 sravan wrote: > when I do sudo visudo > I have this one > ## Allow root to run any commands anywhere > rootALL=(ALL) ALL > jenkins ALL=(root) NOPASSWD: ALL > %sudo ALL=(ALL) NOPASSWD: ALL >

Re: Sudo Su command hangs in jenkins

2019-10-14 Thread sravan
when I do sudo visudo I have this one ## Allow root to run any commands anywhere rootALL=(ALL) ALL jenkins ALL=(root) NOPASSWD: ALL %sudo ALL=(ALL) NOPASSWD: ALL On Monday, October 14, 2019 at 12:48:35 PM UTC-7, slide wrote: > > Does the jenkins user have access to run sudo without a p

Re: Sudo Su command hangs in jenkins

2019-10-14 Thread Slide
Does the jenkins user have access to run sudo without a password? On Mon, Oct 14, 2019 at 12:45 PM sravan wrote: > Hi All, > > I am running a fab script using jenkins . The problem I am facing is I > need to get the logs from docker So I need to do "Sudo su" it works fine > manually but when I r

Sudo Su command hangs in jenkins

2019-10-14 Thread sravan
Hi All, I am running a fab script using jenkins . The problem I am facing is I need to get the logs from docker So I need to do "Sudo su" it works fine manually but when I run it using jenkins it get hanged after it type Sudo su. Any help is appreciated -- You received this message because