From 4050c22b0deabfed09b2544f7a23bb24a97417c8 Mon Sep 17 00:00:00 2001 From: beierlm Date: Tue, 16 Nov 2021 10:27:42 -0500 Subject: [PATCH] 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 1776 Change-Id: I7cec55cdedcf53f6206ee54959dea4f8f1cfeb65 Signed-off-by: beierlm (cherry picked from commit b59bd0dbeec7956585b656606ae03f8f294c5d45) --- jenkins/ci-pipelines/ci_stage_3.groovy | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/jenkins/ci-pipelines/ci_stage_3.groovy b/jenkins/ci-pipelines/ci_stage_3.groovy index f4502de5..5af337cb 100644 --- a/jenkins/ci-pipelines/ci_stage_3.groovy +++ b/jenkins/ci-pipelines/ci_stage_3.groovy @@ -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 -- 2.25.1