pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: postgresql commands(psql,createdb,dropdb) are not working from shell script
Date: Fri, 17 Jan 2020 06:23:01 -0600
Message-ID: <edbfae88-4032-419e-c0f5-6b8f91abeb67@gmail.com> (raw)
In-Reply-To: <CALDS1w-vus5YvLvNy9m4+OcoNmcfNY67SbTiaO6tU2ctE497zw@mail.gmail.com>
References: <CALDS1w-vus5YvLvNy9m4+OcoNmcfNY67SbTiaO6tU2ctE497zw@mail.gmail.com>

Does the Jenkins' $PATH variable have the Postgres binaries' location?

On 1/17/20 2:47 AM, ramesh penumalli wrote:
> Dear Team,
>
> I am using postgresql 9.2.12 version and I am facing  an issue while 
> running the executing the commands createdb,dropdb,psql commands in the 
> shell script which is running from Jenkins to restore prod data into stage 
> environment.
>
> Jenkins job is failing with the below output.I have verified the script 
> and the scrit is fine and it seems to be an issue with the configuration 
> of postgresql  and not sure where to make the changes.
>
> line 48: dropdb: command not found
> line 50: createdb: command not found
> line 52: psql: command not found
> Kindly guide me to rectify the issue.
> Thanks and Regards,
> Ramesh

-- 
Angular momentum makes the world go 'round.

view thread (8+ messages)  latest in thread

Message-ID: <edbfae88-4032-419e-c0f5-6b8f91abeb67@gmail.com>
Permalink:  ../edbfae88-4032-419e-c0f5-6b8f91abeb67@gmail.com/
Also on:    postgresql.org/message-id/edbfae88-4032-419e-c0f5-6b8f91abeb67@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ronljohnsonjr@gmail.com
  Subject: Re: postgresql commands(psql,createdb,dropdb) are not working from shell script
  In-Reply-To: <edbfae88-4032-419e-c0f5-6b8f91abeb67@gmail.com>
  References: <CALDS1w-vus5YvLvNy9m4+OcoNmcfNY67SbTiaO6tU2ctE497zw@mail.gmail.com> <edbfae88-4032-419e-c0f5-6b8f91abeb67@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox