Repository: incubator-edgent Updated Branches: refs/heads/develop bdb2cd815 -> 9ad48657a
Jenkinsfile: add building samples verification Project: http://git-wip-us.apache.org/repos/asf/incubator-edgent/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-edgent/commit/b176fd21 Tree: http://git-wip-us.apache.org/repos/asf/incubator-edgent/tree/b176fd21 Diff: http://git-wip-us.apache.org/repos/asf/incubator-edgent/diff/b176fd21 Branch: refs/heads/develop Commit: b176fd2133a45cbfa7e36c4048b5a94c71015656 Parents: 0d8d9f6 Author: Dale LaBossiere <dlab...@us.ibm.com> Authored: Mon Oct 23 18:00:24 2017 -0400 Committer: Dale LaBossiere <dlab...@us.ibm.com> Committed: Mon Oct 23 18:00:24 2017 -0400 ---------------------------------------------------------------------- Jenkinsfile | 11 +++++++++++ 1 file changed, 11 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-edgent/blob/b176fd21/Jenkinsfile ---------------------------------------------------------------------- diff --git a/Jenkinsfile b/Jenkinsfile index 07ed98f..a56ea86 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -53,6 +53,17 @@ node('ubuntu') { stage ('Build') { echo 'Building' sh "${mvnHome}/bin/mvn ${mavenFailureMode} ${mavenLocalRepo} -Pplatform-android,platform-java7,distribution,toolchain -Djava8.home=${env.JAVA_HOME} -Dedgent.build.ci=true clean ${mavenGoal} sonar:sonar site:site" + + echo 'Verify samples build, etc' + sh "cd samples; ${mvnHome}/bin/mvn ${mavenFailureMode} ${mavenLocalRepo} clean package" + sh "cd samples/topology; ./run-sample.sh HelloEdgent" + sh "cd samples; ${mvnHome}/bin/mvn ${mavenFailureMode} ${mavenLocalRepo} -Pplatform-java7 clean package" + sh "cd samples/topology; ./run-sample.sh HelloEdgent" + + echo 'Verify app template builds, etc' + sh "cd samples/template; ${mvnHome}/bin/mvn ${mavenFailureMode} ${mavenLocalRepo} clean package; ./run-app.sh" + sh "cd samples/template; ${mvnHome}/bin/mvn ${mavenFailureMode} ${mavenLocalRepo} -Pplatform-java7 clean package; ./run-app.sh" + sh "cd samples/template; ${mvnHome}/bin/mvn ${mavenFailureMode} ${mavenLocalRepo} -Pplatform-android clean package; ./run-app.sh" } stage ('Stage Site') {