summaryrefslogtreecommitdiffstats
path: root/jjb/externalapi
diff options
context:
space:
mode:
authorEric Ball <eball@linuxfoundation.org>2021-03-26 10:32:41 -0700
committerEric Ball <eball@linuxfoundation.org>2021-03-26 10:53:37 -0700
commitfd46fc522f14a5af3f4fe8ef4be6aac9c6ee427b (patch)
tree02148a5483aa7d79a87385184ede459e5e56bd6c /jjb/externalapi
parentfc1c79c07417f9fdc10ad9a9ec0dc25f53991997 (diff)
Add script to update nodejs for Sonarcloud scans
Some projects have been seeing failures in Sonarcloud scans, as they are no longer compatible with Node <v10. We were unable to find the requirement that is pulling Node in, and it is not installed by default on the CI agents. By installing an up-to-date version before running any other tasks, the issue is fixed and the Sonarcloud scans do not run into any issues. All affected jobs have been updated. Change-Id: I01a578b37300b6dd6e6fd235218978a19518de99 Issue-ID: CIMAN-33 Signed-off-by: Eric Ball <eball@linuxfoundation.org>
Diffstat (limited to 'jjb/externalapi')
-rw-r--r--jjb/externalapi/externalapi-nbi.yaml3
1 files changed, 2 insertions, 1 deletions
diff --git a/jjb/externalapi/externalapi-nbi.yaml b/jjb/externalapi/externalapi-nbi.yaml
index 7620cca0c..6bda3cba0 100644
--- a/jjb/externalapi/externalapi-nbi.yaml
+++ b/jjb/externalapi/externalapi-nbi.yaml
@@ -67,7 +67,7 @@
- project:
name: externalapi-nbi-sonar
jobs:
- - gerrit-maven-sonar
+ - gerrit-maven-sonar-prescan-script
sonarcloud: true
sonarcloud-project-organization: '{sonarcloud_project_organization}'
sonarcloud-api-token: '{sonarcloud_api_token}'
@@ -82,6 +82,7 @@
mvn-goals: 'clean install'
mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m'
java-version: openjdk11
+ sonar-prescan-script: !include-raw-escape: ../ubuntu-latest-nodejs.sh
- project:
name: externalapi-nbi-info