From: beierlm Date: Wed, 16 Dec 2020 18:25:48 +0000 (-0500) Subject: Allocate PTY X-Git-Tag: release-v9.0-start~5 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2Fdevops.git;a=commitdiff_plain;h=bcf6fa2353d4c1072c9daff997fe79ca3b6f937c Allocate PTY Change ssh to allocate a PTY so that lxc commands can read from STDIN over ssh connection. Change-Id: I4fb74880ca498431679212f40dd60ef3c39a6a00 Signed-off-by: beierlm --- diff --git a/jenkins/ci-pipelines/ci_stage_3.groovy b/jenkins/ci-pipelines/ci_stage_3.groovy index f851fc0a..18cc6b3e 100644 --- a/jenkins/ci-pipelines/ci_stage_3.groovy +++ b/jenkins/ci-pipelines/ci_stage_3.groovy @@ -386,10 +386,12 @@ node("${params.NODE}") { remote.identityFile = SSH_KEY remote.allowAnyHosts = true remote.logLevel = 'INFO' + remote.pty = true sshCommand remote: remote, command: """ wget https://osm-download.etsi.org/ftp/osm-9.0-nine/install_osm.sh chmod +x ./install_osm.sh + sed -i '1 i\\export PATH=/snap/bin:\${PATH}' ~/.bashrc """ if ( useCharmedInstaller ) { @@ -400,7 +402,6 @@ node("${params.NODE}") { sudo sed -i "s|https://registry-1.docker.io|http://172.21.1.1:5000|" /var/snap/microk8s/current/args/containerd-template.toml sudo systemctl restart snap.microk8s.daemon-containerd.service sudo snap alias microk8s.kubectl kubectl - echo export PATH=/snap/bin:\${PATH} > ~/.bashrc ''' withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'gitlab-registry',