-
Type: Task
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Jenkins X
-
Team:PLATFORM
-
Sprint:nxplatform 11.1.24
-
Story Points:1
The last time we tried to build the Jenkins X builders in the patform team, on 6 Dec 2019, it failed on the builder-nodejs-njx builder with an npm error related to TypeScript:
09:56:51 Building [builder-nodejs-njx]... 09:56:51 Storing build context at /tmp/context-1ead0bb8041d96659e7d3fbf314801b3.tar.gz 09:56:51 ERROR: logging before flag.Parse: E1206 08:56:46.683586 1 metadata.go:142] while reading 'google-dockercfg' metadata: http status code: 404 while fetching url http://metadata.google.internal./computeMetadata/v1/instance/attributes/google-dockercfg 09:56:51 ERROR: logging before flag.Parse: E1206 08:56:46.688045 1 metadata.go:159] while reading 'google-dockercfg-url' metadata: http status code: 404 while fetching url http://metadata.google.internal./computeMetadata/v1/instance/attributes/google-dockercfg-url 09:56:51 [36mINFO[0m[0000] Resolved base name gcr.io/jenkinsxio/builder-nodejs:0.1.524 to gcr.io/jenkinsxio/builder-nodejs:0.1.524 09:56:51 [36mINFO[0m[0000] Resolved base name gcr.io/jenkinsxio/builder-nodejs:0.1.524 to gcr.io/jenkinsxio/builder-nodejs:0.1.524 09:56:51 [36mINFO[0m[0000] Downloading base image gcr.io/jenkinsxio/builder-nodejs:0.1.524 09:56:51 [36mINFO[0m[0000] Error while retrieving image from cache: getting file info: stat /cache/sha256:290e98644b6e159c65d2ce5789b9dc94d39d84499b99c71f3b8e5f8d80ac89d1: no such file or directory 09:56:51 [36mINFO[0m[0000] Downloading base image gcr.io/jenkinsxio/builder-nodejs:0.1.524 09:56:51 [36mINFO[0m[0000] Built cross stage deps: map[] 09:56:51 [36mINFO[0m[0000] Downloading base image gcr.io/jenkinsxio/builder-nodejs:0.1.524 09:56:51 [36mINFO[0m[0000] Error while retrieving image from cache: getting file info: stat /cache/sha256:290e98644b6e159c65d2ce5789b9dc94d39d84499b99c71f3b8e5f8d80ac89d1: no such file or directory 09:56:51 [36mINFO[0m[0000] Downloading base image gcr.io/jenkinsxio/builder-nodejs:0.1.524 09:56:51 [36mINFO[0m[0001] Unpacking rootfs as cmd RUN cd /opt && git clone https://github.com/nuxeo/nuxeo-jenkins-x-cli.git && cd nuxeo-jenkins-x-cli && git checkout master && npm install && npm run prepare && npm run postprepare requires it. 09:58:27 [36mINFO[0m[0088] Taking snapshot of full filesystem... 09:59:06 [36mINFO[0m[0134] ARG DESCRIPTION="Nuxeo Jenkins X CLI image" 09:59:06 [36mINFO[0m[0134] ARG SCM_REPOSITORY=git@github.com:nuxeo/nuxeo-jenkins-x-cli.git 09:59:06 [36mINFO[0m[0134] ARG VERSION=unknown 09:59:06 [36mINFO[0m[0134] ARG SCM_REF=unknown 09:59:06 [36mINFO[0m[0134] LABEL description=${DESCRIPTION} 09:59:06 [36mINFO[0m[0134] Applying label description=Nuxeo Jenkins X CLI image 09:59:06 [36mINFO[0m[0134] LABEL scm-url=${SCM_REPOSITORY} 09:59:06 [36mINFO[0m[0134] Applying label scm-url=git@github.com:nuxeo/nuxeo-jenkins-x-cli.git 09:59:06 [36mINFO[0m[0134] LABEL version=${VERSION} 09:59:06 [36mINFO[0m[0134] Applying label version=unknown 09:59:06 [36mINFO[0m[0134] LABEL scm-ref=${SCM_REF} 09:59:06 [36mINFO[0m[0134] Applying label scm-ref=unknown 09:59:06 [36mINFO[0m[0134] RUN cd /opt && git clone https://github.com/nuxeo/nuxeo-jenkins-x-cli.git && cd nuxeo-jenkins-x-cli && git checkout master && npm install && npm run prepare && npm run postprepare 09:59:06 [36mINFO[0m[0134] cmd: /bin/sh 09:59:06 [36mINFO[0m[0134] args: [-c cd /opt && git clone https://github.com/nuxeo/nuxeo-jenkins-x-cli.git && cd nuxeo-jenkins-x-cli && git checkout master && npm install && npm run prepare && npm run postprepare] 09:59:06 Cloning into 'nuxeo-jenkins-x-cli'... 09:59:06 Already on 'master' 09:59:06 Your branch is up to date with 'origin/master'. 09:59:06 npm WARN deprecated @types/ora@3.2.0: This is a stub types definition. ora provides its own type definitions, so you do not need this installed. 09:59:06 npm WARN deprecated fsevents@1.2.9: One of your dependencies needs to upgrade to fsevents v2: 1) Proper nodejs v10+ support 2) No more fetching binaries from AWS, smaller package size 09:59:21 09:59:21 > husky@1.3.1 install /opt/nuxeo-jenkins-x-cli/node_modules/husky 09:59:21 > node husky install 09:59:21 09:59:21 husky > setting up git hooks 09:59:21 husky > done 09:59:21 09:59:21 > nodemon@1.19.4 postinstall /opt/nuxeo-jenkins-x-cli/node_modules/nodemon 09:59:21 > node bin/postinstall || exit 0 09:59:21 09:59:21 [32mLove nodemon? You can now support the project via the open collective:[22m[39m 09:59:21 > [96m[1mhttps://opencollective.com/nodemon/donate[0m 09:59:21 09:59:21 npm WARN lifecycle nuxeo-jenkins-x-cli@1.0.0~prepare: cannot run in wd nuxeo-jenkins-x-cli@1.0.0 tsc -p . (wd=/opt/nuxeo-jenkins-x-cli) 09:59:21 npm notice created a lockfile as package-lock.json. You should commit this file. 09:59:21 npm WARN nuxeo-jenkins-x-cli@1.0.0 No repository field. 09:59:21 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents): 09:59:21 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) 09:59:21 09:59:21 added 516 packages from 761 contributors and audited 2957 packages in 19.26s 09:59:21 found 7 vulnerabilities (1 moderate, 5 high, 1 critical) 09:59:21 run `npm audit fix` to fix them, or `npm audit` for details 09:59:22 09:59:22 > nuxeo-jenkins-x-cli@1.0.0 prepare /opt/nuxeo-jenkins-x-cli 09:59:22 > tsc -p . 09:59:22 09:59:26 src/commands/Nuxeo/PresetCommand.ts(83,23): error TS2698: Spread types may only be created from object types. 09:59:26 npm ERR! code ELIFECYCLE 09:59:26 npm ERR! errno 2 09:59:26 npm ERR! nuxeo-jenkins-x-cli@1.0.0 prepare: `tsc -p .` 09:59:26 npm ERR! Exit status 2 09:59:26 npm ERR! 09:59:26 npm ERR! Failed at the nuxeo-jenkins-x-cli@1.0.0 prepare script. 09:59:26 npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 09:59:27 09:59:27 npm ERR! A complete log of this run can be found in: 09:59:27 npm ERR! /root/.npm/_logs/2019-12-06T08_59_26_663Z-debug.log 09:59:27 error building image: error building stage: waiting for process to exit: exit status 2 09:59:39 time="2019-12-06T08:59:38Z" level=fatal msg="build failed: build failed: building [builder-nodejs-njx]: kaniko build for [builder-nodejs-njx]: waiting for pod to complete: condition error: pod already in terminal phase: Failed"
See http://jenkins.platform.dev.nuxeo.com/job/nuxeo/job/jx-platform-builders/job/master/33/console.
The previous successful build was on 23 Oct. 2019, see http://jenkins.platform.dev.nuxeo.com/job/nuxeo/job/jx-platform-builders/job/master/32/.
We might want to either:
- Fix this issue.
- Remove this builder from the ones we are building, since we are currently not using it (no use of the njx command for now)...
- is required by
-
NXBT-3137 Switch the Jenkins X platform team from HTTP to HTTPS
- Resolved