From: beierlm Date: Tue, 16 Nov 2021 15:27:42 +0000 (-0500) Subject: Add NTP Sync X-Git-Tag: v12.0.0rc1~87 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F60%2F11360%2F1;hp=c537fa671e5763cf58f9a05ff7e51e5acc184934;p=osm%2Fdevops.git Add NTP Sync Adds ntp to the new VM and forces a full clock sync to avoid any drift between Jenkins and ETSI VIM Fixes bug 1773 Change-Id: I7cec55cdedcf53f6206ee54959dea4f8f1cfeb65 Signed-off-by: beierlm --- diff --git a/jenkins/ci-pipelines/ci_stage_3.groovy b/jenkins/ci-pipelines/ci_stage_3.groovy index a96e5454..39fd7931 100644 --- a/jenkins/ci-pipelines/ci_stage_3.groovy +++ b/jenkins/ci-pipelines/ci_stage_3.groovy @@ -444,6 +444,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-11.0-eleven/install_osm.sh chmod +x ./install_osm.sh