projects
/
osm
/
devops.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add NTP Sync
[osm/devops.git]
/
jenkins
/
ci-pipelines
/
ci_stage_3.groovy
diff --git
a/jenkins/ci-pipelines/ci_stage_3.groovy
b/jenkins/ci-pipelines/ci_stage_3.groovy
index
e93c9a9
..
39fd793
100644
(file)
--- a/
jenkins/ci-pipelines/ci_stage_3.groovy
+++ b/
jenkins/ci-pipelines/ci_stage_3.groovy
@@
-444,8
+444,17
@@
node("${params.NODE}") {
remote.logLevel = 'INFO'
remote.pty = true
remote.logLevel = 'INFO'
remote.pty = true
+ // Force time sync to avoid clock drift and invalid certificates
sshCommand remote: remote, command: """
sshCommand remote: remote, command: """
- wget https://osm-download.etsi.org/ftp/osm-10.0-ten/install_osm.sh
+ 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
sed -i '1 i\\export PATH=/snap/bin:\${PATH}' ~/.bashrc
"""
chmod +x ./install_osm.sh
sed -i '1 i\\export PATH=/snap/bin:\${PATH}' ~/.bashrc
"""