- Split up the "Build" step into multiple smaller ones.
Project: http://git-wip-us.apache.org/repos/asf/incubator-edgent/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-edgent/commit/60444199 Tree: http://git-wip-us.apache.org/repos/asf/incubator-edgent/tree/60444199 Diff: http://git-wip-us.apache.org/repos/asf/incubator-edgent/diff/60444199 Branch: refs/heads/develop Commit: 60444199724b5eb6c33cdbc0fb350e7a3bb5315c Parents: ede4ab6 Author: Christofer Dutz <christofer.d...@c-ware.de> Authored: Tue Oct 31 11:45:24 2017 +0100 Committer: Christofer Dutz <christofer.d...@c-ware.de> Committed: Tue Oct 31 11:45:24 2017 +0100 ---------------------------------------------------------------------- Jenkinsfile | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-edgent/blob/60444199/Jenkinsfile ---------------------------------------------------------------------- diff --git a/Jenkinsfile b/Jenkinsfile index 6fa4b55..38c6849 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -50,22 +50,28 @@ node('ubuntu') { checkout scm } - stage ('Build') { - echo 'Building' + stage ('Build Edgent') { + echo 'Building Edgent' 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' + stage ('Build Samples') { + echo 'Building samples' 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' + } + + stage ('Build Templates') { + echo 'Building templates' 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" - - echo 'Verify get-edgent-jars' + } + + stage ('Verify get-engent-jars') { + echo 'Verifying get-edgent-jars' sh "cd samples/get-edgent-jars; ./get-edgent-jars.sh" }