} // stage("Spawn Remote VM")
///////////////////////////////////////////////////////////////////////////////////////
+// Checks before installation
+///////////////////////////////////////////////////////////////////////////////////////
+ stage('Checks before installation') {
+ remote = [
+ name: containerName,
+ host: IP_ADDRESS,
+ user: 'ubuntu',
+ identityFile: SSH_KEY,
+ allowAnyHosts: true,
+ logLevel: 'INFO',
+ pty: true
+ ]
+
+ // Force time sync to avoid clock drift and invalid certificates
+ sshCommand remote: remote, command: 'sudo apt-get update'
+ sshCommand remote: remote, command: 'sudo apt-get install -y ntp'
+ sshCommand remote: remote, command: 'sudo service ntp stop'
+ sshCommand remote: remote, command: 'sudo ntpd -gq'
+ sshCommand remote: remote, command: 'sudo service ntp start'
+
+ } // stage("Checks before installation")
+///////////////////////////////////////////////////////////////////////////////////////
// Installation
///////////////////////////////////////////////////////////////////////////////////////
stage('Install') {
pty: true
]
- // Force time sync to avoid clock drift and invalid certificates
- sshCommand remote: remote, command: '''
- sudo apt update
- sudo apt install -y ntp
- sudo service ntp stop
- sudo ntpd -gq
- sudo service ntp start
- '''
-
sshCommand remote: remote, command: '''
wget https://osm-download.etsi.org/ftp/osm-11.0-eleven/install_osm.sh
chmod +x ./install_osm.sh