title: Jenkins does not set all properties for Siebel gateway server
body: <p>We are currently using Siebel 15.14.</p>
  
  <p>I am trying to start our gateway server by creating a job in Jenkins that executes a script. In turn, the script runs a "set up environment properties" script and the command that start the gateway server.</p>
  
  <p>All these happen over an SSH build step in Jenkins.</p>
  
  <p>Specifically:</p>
  
  <p>1) Jenkins job has 1 build step "execute shell script on remote server using ssh":     /mypath/start_gateway.sh</p>
  
  <p>2) start.gateway.sh contains:
      i) . /mygatewaypath/setupparameters.sh
     ii) /mygatewaypath/gtwysrvr/bin/start_ns -r /mygatewaypath/gtwysrvr</p>
  
  <p>3) setupparameters.sh  contains:</p>
  
  <pre><code> if [ ! -d "$HOME" ]; then
   echo "ERROR: HOME must be set prior to starting the Siebel server!"
   exit 1
  fi
  
  SIEBEL_ROOT=/mygatewatpath/gtwysrvr ; export SIEBEL_ROOT
  SIEBEL_HOME=/mygatewatpath/gtwysrvr ; export SIEBEL_HOME
  .
  .  (other variables go here)
  .
  </code></pre>
  
  <p>Although the jenkins job has a successful build and prints out:</p>
  
  <blockquote>
    <p>executing script:</p>
    
    <p>/var/SP/administration/scripts/start_gateway.sh</p>
    
    <p>started at Mon Sep 18 18:53:48 2017, pid: 147189</p>
    
    <blockquote>
      <p>[SSH] exit-status: 0</p>
      
      <blockquote>
        <p>Finished: SUCCESS</p>
      </blockquote>
    </blockquote>
  </blockquote>
  
  <p>When i try to start the gateway server manager i receive the below error:</p>
  
  <p>Fatal error (2555922): Could not open connection to Siebel Gateway configuration store (%1:%2)., exiting...</p>
  
  <p>Also, if i start the application server (which is based on the above gateway server) , the application server is not started correctly.</p>
  
  <p>It Seems that the environments variables of the setupproperties.sh script are not set fully, so the gateway server start in an unstable state.</p>