Skip to content
Failed

Console Output

Started by GitLab push by Moritz Weber
Running as SYSTEM
Building in workspace /var/jenkins_home/workspace/DIM-Diamant-Angular
using credential jenkins_gitlab
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://gitlab.com/datainmotion/diamant/frontend.git # timeout=10
Fetching upstream changes from https://gitlab.com/datainmotion/diamant/frontend.git
 > git --version # timeout=10
using GIT_ASKPASS to set credentials The Gitlab user for the jenkins
 > git fetch --tags --progress https://gitlab.com/datainmotion/diamant/frontend.git +refs/heads/*:refs/remotes/origin/*
skipping resolution of commit 7d32b66f6fbbe3c92967b2e6cea0718438cb9076, since it originates from another repository
 > git rev-parse refs/remotes/origin/develop^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/develop^{commit} # timeout=10
Checking out Revision 7d32b66f6fbbe3c92967b2e6cea0718438cb9076 (refs/remotes/origin/develop)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 7d32b66f6fbbe3c92967b2e6cea0718438cb9076
Commit message: "npm package update assetIds"
 > git rev-list --no-walk 6269c166ac03f26d0001084d19d5dc368f61bacf # timeout=10
[DIM-Diamant-Angular] $ /bin/sh -xe /tmp/jenkins6714947279596139464.sh
+ npm install --registry https://devel.data-in-motion.biz/nexus/repository/npm-group/ -g @angular/cli
/var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.13/bin/ng -> /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.13/lib/node_modules/@angular/cli/bin/ng

> @angular/cli@8.3.19 postinstall /var/jenkins_home/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/Node_12.13/lib/node_modules/@angular/cli
> node ./bin/postinstall/script.js

+ @angular/cli@8.3.19
updated 4 packages in 8s
+ npm run build -- --configuration=production

> diamant-frontend@0.0.0 build /var/jenkins_home/workspace/DIM-Diamant-Angular
> ng build "--configuration=production"

Your global Angular CLI version (8.3.19) is greater than your local
version (8.3.0). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false".

chunk {0} runtime-es2015.24b02acc1f369d9b9f37.js (runtime) 2.83 kB [entry] [rendered]
chunk {1} main-es2015.a09b1db0e89192b2357e.js (main) 191 bytes [initial] [rendered]
chunk {2} polyfills-es2015.f3154ef75d61ac0e7b7d.js (polyfills) 193 bytes [initial] [rendered]
chunk {3} polyfills-es5-es2015.91a0abf61990f1db67d0.js (polyfills-es5) 147 kB [initial] [rendered]
chunk {4} styles.1a561d408a3da0685b22.css (styles) 139 kB [initial] [rendered]
chunk {scripts} scripts.d6e751540ae178e87486.js (scripts) 31.7 kB [entry] [rendered]
Date: 2019-11-27T09:22:40.156Z - Hash: eba40968118461230c02 - Time: 8208ms

ERROR in src/app/product-component/product.component.ts:214:11 - error TS2339: Property 'assetIds' does not exist on type 'Treatment'.

214       opv.assetIds = $('#opVorbereitungProdukte').val();;
              ~~~~~~~~
src/app/op-vorbereitung-component/op-vorbereitung.component.ts:125:97 - error TS2339: Property 'assetIds' does not exist on type 'Treatment'.

125         this.httpClient.post(environment.restURL + '/rest/entry/' + this.aktuelleOPVorbereitung.assetIds[0], opBericht.toJsonString(), { headers: header }).subscribe((response: any[]) => {
                                                                                                    ~~~~~~~~
src/app/op-vorbereitung-component/op-vorbereitung.component.ts:150:55 - error TS2339: Property 'assetIds' does not exist on type 'Treatment'.

150       for (var i = 0; i < this.aktuelleOPVorbereitung.assetIds.length; i++) {
                                                          ~~~~~~~~
src/app/op-vorbereitung-component/op-vorbereitung.component.ts:151:55 - error TS2339: Property 'assetIds' does not exist on type 'Treatment'.

151         this.get_products(this.aktuelleOPVorbereitung.assetIds[i]);
                                                          ~~~~~~~~
src/app/op-vorbereitung-component/op-vorbereitung.component.ts:218:59 - error TS2339: Property 'assetIds' does not exist on type 'Treatment'.

218           for (var i = 0; i < this.aktuelleOPVorbereitung.assetIds.length; i++) {
                                                              ~~~~~~~~
src/app/op-vorbereitung-component/op-vorbereitung.component.ts:220:100 - error TS2339: Property 'assetIds' does not exist on type 'Treatment'.

220             this.httpClient.get(environment.restURL + '/rest/entry/' + this.aktuelleOPVorbereitung.assetIds[i], { headers }).subscribe((response: any[]) => {
                                                                                                       ~~~~~~~~

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! diamant-frontend@0.0.0 build: `ng build "--configuration=production"`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the diamant-frontend@0.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /var/jenkins_home/workspace/DIM-Diamant-Angular/.npm/_logs/2019-11-27T09_22_40_194Z-debug.log
Build step 'Execute shell' marked build as failure
Finished: FAILURE