Fixes Bug 1993 -substitutes NTP with Chrony 03/11903/2
authorJoão Pedro Fonseca <jpedrofonseca@ua.pt>
Wed, 20 Apr 2022 22:06:26 +0000 (23:06 +0100)
committerfonsecaj <jpedrofonseca@av.it.pt>
Wed, 20 Apr 2022 22:13:45 +0000 (00:13 +0200)
Change-Id: Ife2fd73ee18165b7b869e15ceee1cdd0b1b75dbc
Signed-off-by: João Pedro Fonseca <jpedrofonseca@ua.pt>
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: """