CI: Update node version 90/122090/1
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Tue, 22 Jun 2021 02:55:40 +0000 (19:55 -0700)
committerJessica Wagantall <jwagantall@linuxfoundation.org>
Tue, 22 Jun 2021 02:55:40 +0000 (19:55 -0700)
- Update node version to the latest stable
- Update npm to the latest version
- Deprecate rebar bootstrap
- Update node with the latest node changes

Issue-ID: CIMAN-33
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Change-Id: I2d06752be51183211482cdb701ca46fa6469d650

jenkins-config/clouds/openstack/cattle/ubuntu1804-docker-8c-8g.cfg
packer/provision/local-docker.yaml

index efb5787..ff70b9d 100644 (file)
@@ -1,4 +1,4 @@
-IMAGE_NAME=ZZCI - Ubuntu 18.04 - docker - x86_64 - 20210317-220033.605
+IMAGE_NAME=ZZCI - Ubuntu 18.04 - docker - x86_64 - 20210622-014943.553
 LABELS=ubuntu1804-docker-8c-8g
 HARDWARE_ID=v3-standard-8
 VOLUME_SIZE=20
index 5d9b7c3..7711998 100644 (file)
@@ -10,6 +10,7 @@
     glide_checksum: sha256:c403933503ea40308ecfadcff581ff0dc3190c57958808bb9eed016f13f6f32c
     glide_version: v0.13.1
     golang_version: 1.9.1
+    npm_version: "6.14.13"
 
   tasks:
     - name: "Checking for x86_64"
       become: true
       when: ansible_distribution == 'Ubuntu'
 
+    - name: npm self-update
+      command: npm install npm@{{ npm_version }} -g
+      become: true
+
+    - name: npm install n module
+      command: npm install n -g
+      become: true
+
+    - name: Upgrade latest stable node version
+      command: n stable | PATH="$PATH"
+      become: true
+
     - name: Add Google Chrome key
       apt_key:
         url: https://dl-ssl.google.com/linux/linux_signing_key.pub
         dest: /tmp/rebar3
       when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
 
-    - name: Bootstrap rebar3
-      command: ./bootstrap
-      args:
-        chdir: /tmp/rebar3
-      when: ansible_architecture == 'x86_64' and ansible_distribution == 'Ubuntu'
-
     - name: Install rebar3 to bin
       copy:
         src: /tmp/rebar3/rebar3