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 72948dd2aef8a3868a4ea7f3fad5de41a1a4e54d, 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 72948dd2aef8a3868a4ea7f3fad5de41a1a4e54d (refs/remotes/origin/develop)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 72948dd2aef8a3868a4ea7f3fad5de41a1a4e54d
Commit message: "fix"
 > git rev-list --no-walk abe3f52c6c195741b819e5a16d391c948d3e482b # timeout=10
[DIM-Diamant-Angular] $ /bin/sh -xe /tmp/jenkins1853619359375284735.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.20 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.20
updated 1 package in 62.162s
+ 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.20) 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-12-11T08:49:01.185Z - Hash: 219599cb2c7c9c5cd8bf - Time: 21285ms

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:151:55 - error TS2339: Property 'assetIds' does not exist on type 'Treatment'.

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

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

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

221             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-12-11T08_49_01_229Z-debug.log
Build step 'Execute shell' marked build as failure
Finished: FAILURE