Add NTP Sync
[osm/devops.git] / jenkins / ci-pipelines / ci_stage_3.groovy
index f4502de..5af337c 100644 (file)
@@ -429,6 +429,15 @@ node("${params.NODE}") {
                     remote.logLevel = 'INFO'
                     remote.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-9.0-nine/install_osm.sh
                         chmod +x ./install_osm.sh