RE: How to run commands as Oracle linux user in Jenkins

From: <dimensional.dba_at_comcast.net>
Date: Mon, 18 May 2020 09:24:36 -0700
Message-ID: <1c5c01d62d30$d2bb2ad0$78318070$_at_comcast.net>



You have to be able to “sudo su – oracle”

Look up standard linux for implementing sudo privileges for a specific user.  

From: oracle-l-bounce_at_freelists.org <oracle-l-bounce_at_freelists.org> On Behalf Of kunwar singh Sent: Monday, May 18, 2020 8:54 AM
To: ORACLE-L <oracle-l_at_freelists.org> Subject: How to run commands as Oracle linux user in Jenkins  

Hi Listers,

I am learning Jenkins for automating oracle database installation etc.  

I have a question, i installed Jenkins.  

How do i run commands as Oracle linux user. In other words how to i switch to Oracle user  

When i hit build now inside Jenkins Dashboard and see the "Console Output" I see this.


Started by user Admin

Running as SYSTEM
Building in workspace /var/lib/jenkins/workspace/Databaseinstallation [Databaseinstallation] $ /bin/sh -xe /tmp/jenkins8356574915939683433.sh + whoami
jenkins


Apologies in advance as it is a basic question, but i am new to this :)  

I reviewed few blog posts but not able to get past it.  

This is my Jenkins version.

<version>2.222.3</version>      

-- 

Cheers,
Kunwar



--
http://www.freelists.org/webpage/oracle-l
Received on Mon May 18 2020 - 18:24:36 CEST

Original text of this message