YARN-6336. Jenkins report YARN new UI build failure. Contributed by Sunil G.

This commit is contained in:
Rohith Sharma K S 2017-03-15 15:53:57 +05:30
parent 4416a07c9c
commit bb6a214cd3
2 changed files with 10 additions and 9 deletions

View File

@ -31,7 +31,7 @@
<properties> <properties>
<packaging.type>pom</packaging.type> <packaging.type>pom</packaging.type>
<webappTgtDir>${basedir}/target/src/main/webapp</webappTgtDir> <webappTgtDir>${basedir}/target/src/main/webapp</webappTgtDir>
<node.executable>node</node.executable> <node.executable>${basedir}/target/src/main/webapp/node/node</node.executable>
<nodeVersion>v4.4.5</nodeVersion> <nodeVersion>v4.4.5</nodeVersion>
<npmVersion>2.15.5</npmVersion> <npmVersion>2.15.5</npmVersion>
<keep-ui-build-cache>false</keep-ui-build-cache> <keep-ui-build-cache>false</keep-ui-build-cache>
@ -169,12 +169,11 @@
</goals> </goals>
<configuration> <configuration>
<workingDirectory>${webappTgtDir}</workingDirectory> <workingDirectory>${webappTgtDir}</workingDirectory>
<executable>ember</executable> <executable>${node.executable}</executable>
<arguments> <arguments>
<argument>build</argument> <argument>node/npm/bin/npm-cli</argument>
<argument>-prod</argument> <argument>run</argument>
<argument>--output-path</argument> <argument>build:mvn</argument>
<argument>${basedir}/target/dist</argument>
</arguments> </arguments>
</configuration> </configuration>
</execution> </execution>
@ -187,7 +186,7 @@
<artifactId>maven-war-plugin</artifactId> <artifactId>maven-war-plugin</artifactId>
<configuration> <configuration>
<webXml>${basedir}/src/main/webapp/WEB-INF/web.xml</webXml> <webXml>${basedir}/src/main/webapp/WEB-INF/web.xml</webXml>
<warSourceDirectory>${basedir}/target/dist</warSourceDirectory> <warSourceDirectory>${webappTgtDir}/dist</warSourceDirectory>
</configuration> </configuration>
</plugin> </plugin>

View File

@ -8,8 +8,10 @@
"test": "tests" "test": "tests"
}, },
"scripts": { "scripts": {
"build": "ember build", "build": "TMPDIR=tmp node ./node_modules/ember-cli/bin/ember build",
"start": "ember server" "start": "TMPDIR=tmp node ./node_modules/ember-cli/bin/ember server",
"build:mvn": "TMPDIR=tmp node/node ./node_modules/ember-cli/bin/ember build -prod"
}, },
"repository": "", "repository": "",
"engines": { "engines": {