Fixes Bug 1993 -substitutes NTP with Chrony
[osm/devops.git] / jenkins / ci-pipelines / ci_stage_3.groovy
index 4141f8d..44117ad 100644 (file)
@@ -450,10 +450,10 @@ node("${params.NODE}") {
                     // 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
+                        sudo apt install -y chrony
+                        sudo service chrony stop
+                        sudo chrony -vq
+                        sudo service chrony start
                     """
 
                     sshCommand remote: remote, command: """