Fix tty issue during foreman-deploy 65/465/1
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>
Mon, 4 May 2015 20:43:16 +0000 (22:43 +0200)
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>
Mon, 4 May 2015 20:43:16 +0000 (22:43 +0200)
JIRA: OCTO-47

Change-Id: I2eded2a5bae45669109f6b6aa92b60012d930d35
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
jjb/genesis/genesis-foreman.yml

index 336af30..4f5cb69 100644 (file)
             ls -al $WORKSPACE/lf_settings
 
             # cleanup first
-            $WORKSPACE/clean.sh -base_config $WORKSPACE/lf_settings/lf_pod2_ksgen_settings.yml
+            ssh -t -t jenkins-ci@localhost "sudo $WORKSPACE/clean.sh -base_config $WORKSPACE/lf_settings/lf_pod2_ksgen_settings.yml"
 
             # and then initiate deployment
-            $WORKSPACE/deploy.sh -base_config $WORKSPACE/lf_settings/lf_pod2_ksgen_settings.yml
+            ssh -t -t jenkins-ci@localhost "sudo $WORKSPACE/deploy.sh -base_config $WORKSPACE/lf_settings/lf_pod2_ksgen_settings.yml"