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 ) {
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',
stage_archive = false
if ( params.DO_SMOKE ) {
stage("OSM Health") {
- if ( useCharmedInstaller ) {
- stackName = "osm"
- } else {
- stackName = container_name
- }
+ stackName = "osm"
sshCommand remote: remote, command: """
/usr/share/osm-devops/installers/osm_health.sh -k -s ${stackName}
"""