sshCommand remote: remote, command: '''ls -al logs'''
sshGet remote: remote, from: 'logs', into: '.', override: true
sh 'cp logs/* .'
- sshGet remote: remote, from: 'ens3.pcap', into: 'ens3.pcap', override: true
- archiveArtifacts artifacts: '*.log, *.pcap'
+ archiveArtifacts artifacts: '*.log'
}
String get_value(String key, String output) {
]
// Force time sync to avoid clock drift and invalid certificates
- sshCommand remote: remote, command: 'nohup sudo tcpdump -i ens3 -w ens3.pcap -s 400 & sleep 5'
sshCommand remote: remote, command: 'sudo apt-get update'
sshCommand remote: remote, command: 'sudo apt-get install -y chrony'
sshCommand remote: remote, command: 'sudo service chrony stop'
prometheusPort = 9091
osmHostname = IP_ADDRESS
}
- sshCommand remote: remote, command: """
- sudo killall tcpdump
- """
-
} // stage("Install")
///////////////////////////////////////////////////////////////////////////////////////
// Health check of installed OSM in remote vm
if ( params.DO_ROBOT ) {
try {
stage('System Integration Test') {
-
if (useCharmedInstaller) {
tempdir = sh(returnStdout: true, script: 'mktemp -d').trim()
sh(script: "touch ${tempdir}/hosts")