Update jenkins-stage3 to use ubuntu22 as default image and DEBUG loglevel for sshCommand 95/13395/2
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 16 May 2023 09:04:40 +0000 (11:04 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 17 May 2023 08:54:32 +0000 (10:54 +0200)
Change-Id: I852e0f706176fda4f24ea4afd8a23e27280624ba
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
jenkins/ci-pipelines/ci_stage_3.groovy

index e0cddea..1506d87 100644 (file)
@@ -31,7 +31,7 @@ properties([
         string(defaultValue: 'artifactory-osm', description: '', name: 'ARTIFACTORY_SERVER'),
         string(defaultValue: 'osm-stage_4', description: '', name: 'DOWNSTREAM_STAGE_NAME'),
         string(defaultValue: 'testing-daily', description: '', name: 'DOCKER_TAG'),
-        string(defaultValue: 'ubuntu20.04', description: '', name: 'OPENSTACK_BASE_IMAGE'),
+        string(defaultValue: 'ubuntu22.04', description: '', name: 'OPENSTACK_BASE_IMAGE'),
         booleanParam(defaultValue: false, description: '', name: 'SAVE_CONTAINER_ON_FAIL'),
         booleanParam(defaultValue: false, description: '', name: 'SAVE_CONTAINER_ON_PASS'),
         booleanParam(defaultValue: true, description: '', name: 'SAVE_ARTIFACTS_ON_SMOKE_SUCCESS'),
@@ -449,15 +449,15 @@ node("${params.NODE}") {
                         user: 'ubuntu',
                         identityFile: SSH_KEY,
                         allowAnyHosts: true,
-                        logLevel: 'INFO',
+                        logLevel: 'DEBUG',
                         pty: true
                     ]
 
                     // Ensure the VM is ready
                     sshCommand remote: remote, command: 'cloud-init status --wait'
                     // 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 chrony'
+                    sshCommand remote: remote, command: 'sudo apt-get -y update'
+                    sshCommand remote: remote, command: 'sudo apt-get -y install chrony'
                     sshCommand remote: remote, command: 'sudo service chrony stop'
                     sshCommand remote: remote, command: 'sudo chronyd -vq'
                     sshCommand remote: remote, command: 'sudo service chrony start'