YARN-6336. Jenkins report YARN new UI build failure. Contributed by Sunil G.
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/bb6a214c Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/bb6a214c Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/bb6a214c Branch: refs/heads/HADOOP-13345 Commit: bb6a214cd34b9c87b0ba68205c680024ad294587 Parents: 4416a07 Author: Rohith Sharma K S <[email protected]> Authored: Wed Mar 15 15:53:57 2017 +0530 Committer: Rohith Sharma K S <[email protected]> Committed: Wed Mar 15 15:54:09 2017 +0530 ---------------------------------------------------------------------- hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/pom.xml | 13 ++++++------- .../hadoop-yarn-ui/src/main/webapp/package.json | 6 ++++-- 2 files changed, 10 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/bb6a214c/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/pom.xml ---------------------------------------------------------------------- diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/pom.xml b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/pom.xml index ae7ab0d..31d2f5e 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/pom.xml +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/pom.xml @@ -31,7 +31,7 @@ <properties> <packaging.type>pom</packaging.type> <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> <npmVersion>2.15.5</npmVersion> <keep-ui-build-cache>false</keep-ui-build-cache> @@ -169,12 +169,11 @@ </goals> <configuration> <workingDirectory>${webappTgtDir}</workingDirectory> - <executable>ember</executable> + <executable>${node.executable}</executable> <arguments> - <argument>build</argument> - <argument>-prod</argument> - <argument>--output-path</argument> - <argument>${basedir}/target/dist</argument> + <argument>node/npm/bin/npm-cli</argument> + <argument>run</argument> + <argument>build:mvn</argument> </arguments> </configuration> </execution> @@ -187,7 +186,7 @@ <artifactId>maven-war-plugin</artifactId> <configuration> <webXml>${basedir}/src/main/webapp/WEB-INF/web.xml</webXml> - <warSourceDirectory>${basedir}/target/dist</warSourceDirectory> + <warSourceDirectory>${webappTgtDir}/dist</warSourceDirectory> </configuration> </plugin> http://git-wip-us.apache.org/repos/asf/hadoop/blob/bb6a214c/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/package.json ---------------------------------------------------------------------- diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/package.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/package.json index 573e505..105dad3 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/package.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/package.json @@ -8,8 +8,10 @@ "test": "tests" }, "scripts": { - "build": "ember build", - "start": "ember server" + "build": "TMPDIR=tmp node ./node_modules/ember-cli/bin/ember build", + "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": "", "engines": { --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
