Fixes Bug 1993 - Substitutes NTP with Chrony 93/11893/2
authorJoão Fonseca <jpedrofonseca@av.it.pt>
Fri, 15 Apr 2022 15:06:51 +0000 (16:06 +0100)
committerfonsecaj <jpedrofonseca@av.it.pt>
Fri, 15 Apr 2022 16:59:09 +0000 (18:59 +0200)
Change-Id: I36e0d8a0b5ce18c93e0831b277210d6b275fbcca
Signed-off-by: jpedrofonseca@av.it.pt <jpedrofonseca@ua.pt>
jenkins/ci-pipelines/ci_stage_3.groovy

index 8ef3031..4587caf 100644 (file)
@@ -449,10 +449,10 @@ node("${params.NODE}") {
 
                     // 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'
+                    sshCommand remote: remote, command: 'sudo apt-get install -y chrony'
+                    sshCommand remote: remote, command: 'sudo service chrony stop'
+                    sshCommand remote: remote, command: 'sudo chronyd -vq'
+                    sshCommand remote: remote, command: 'sudo service chrony start'
 
                  } // stage("Checks before installation")
 ///////////////////////////////////////////////////////////////////////////////////////