Repository: flex-falcon Updated Branches: refs/heads/feature-autobuild/maven-archetypes fe276360f -> ad08b5dfc
- Tried to fix a problem with the Jenkinsfile and dynamic branch names Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/ad08b5df Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/ad08b5df Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/ad08b5df Branch: refs/heads/feature-autobuild/maven-archetypes Commit: ad08b5dfc1c09034253d8e4a057bf0c4757a4e9d Parents: fe27636 Author: Christofer Dutz <christofer.d...@codecentric.de> Authored: Wed Sep 28 16:27:15 2016 +0200 Committer: Christofer Dutz <christofer.d...@codecentric.de> Committed: Wed Sep 28 16:27:15 2016 +0200 ---------------------------------------------------------------------- Jenkinsfile | 63 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 32 insertions(+), 31 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/ad08b5df/Jenkinsfile ---------------------------------------------------------------------- diff --git a/Jenkinsfile b/Jenkinsfile index 8f085f3..bd1b2c3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -41,50 +41,51 @@ node('windows-2012-1') { } try { + withMaven(mavenLocalRepo: '.repository') { - stage 'Wipe Workspace' - // Clean the entire workspace ... for debugging ... - deleteDir() + stage 'Wipe Workspace' + // Clean the entire workspace ... for debugging ... + deleteDir() - stage 'Checkout Upstream Projects' + stage 'Checkout Upstream Projects' - echo 'checking out flexjs-compiler for branch ' + env.BRANCH_NAME - checkout([$class: 'GitSCM', branches: [[name: env.BRANCH_NAME]], extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'compiler']], userRemoteConfigs: [[url: 'https://git-wip-us.apache.org/repos/asf/flex-falcon.git']]]) - //git url: "https://git-wip-us.apache.org/repos/asf/flex-falcon.git", branch: env.BRANCH_NAME + echo 'checking out flexjs-compiler for branch ' + env.BRANCH_NAME + checkout([$class: 'GitSCM', branches: [[name: env.BRANCH_NAME]], extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'compiler']], userRemoteConfigs: [[url: 'https://git-wip-us.apache.org/repos/asf/flex-falcon.git']]]) + //git url: "https://git-wip-us.apache.org/repos/asf/flex-falcon.git", branch: env.BRANCH_NAME - echo 'checking out flexjs-typedefs for branch ' + env.BRANCH_NAME - checkout([$class: 'GitSCM', branches: [[name: env.BRANCH_NAME]], extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'typedefs']], userRemoteConfigs: [[url: 'https://git-wip-us.apache.org/repos/asf/flex-typedefs.git']]]) - //git url: "https://git-wip-us.apache.org/repos/asf/flex-typedefs.git", branch: env.BRANCH_NAME + echo 'checking out flexjs-typedefs for branch ' + env.BRANCH_NAME + checkout([$class: 'GitSCM', branches: [[name: env.BRANCH_NAME]], extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'typedefs']], userRemoteConfigs: [[url: 'https://git-wip-us.apache.org/repos/asf/flex-typedefs.git']]]) + //git url: "https://git-wip-us.apache.org/repos/asf/flex-typedefs.git", branch: env.BRANCH_NAME - echo 'checking out flexjs-framework for branch ' + env.BRANCH_NAME - checkout([$class: 'GitSCM', branches: [[name: env.BRANCH_NAME]], extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'framework']], userRemoteConfigs: [[url: 'https://git-wip-us.apache.org/repos/asf/flex-asjs.git']]]) - //git url: "https://git-wip-us.apache.org/repos/asf/flex-asjs.git", branch: env.BRANCH_NAME + echo 'checking out flexjs-framework for branch ' + env.BRANCH_NAME + checkout([$class: 'GitSCM', branches: [[name: env.BRANCH_NAME]], extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'framework']], userRemoteConfigs: [[url: 'https://git-wip-us.apache.org/repos/asf/flex-asjs.git']]]) + //git url: "https://git-wip-us.apache.org/repos/asf/flex-asjs.git", branch: env.BRANCH_NAME - stage 'Build FlexJS Compiler' + stage 'Build FlexJS Compiler' - dir('compiler') { - echo 'Building FlexJS Compiler' - bat "mvn -U clean ${mavenGoal} -s C:\\.m2\\settings.xml -P apache-snapshots-enabled -Dcom.adobe.systemIdsForWhichTheTermsOfTheAdobeLicenseAgreementAreAccepted=3c9041a9,3872fc1e" - } + dir('compiler') { + echo 'Building FlexJS Compiler' + bat "mvn -U clean ${mavenGoal} -s C:\\.m2\\settings.xml -P apache-snapshots-enabled -Dcom.adobe.systemIdsForWhichTheTermsOfTheAdobeLicenseAgreementAreAccepted=3c9041a9,3872fc1e" + } - stage 'Build FlexJS Typedefs' + stage 'Build FlexJS Typedefs' - dir('typedefs') { - echo 'Building FlexJS Typedefs' - bat "mvn -U clean ${mavenGoal} -s C:\\.m2\\settings.xml -P apache-snapshots-enabled -Dcom.adobe.systemIdsForWhichTheTermsOfTheAdobeLicenseAgreementAreAccepted=3c9041a9,3872fc1e" - } + dir('typedefs') { + echo 'Building FlexJS Typedefs' + bat "mvn -U clean ${mavenGoal} -s C:\\.m2\\settings.xml -P apache-snapshots-enabled -Dcom.adobe.systemIdsForWhichTheTermsOfTheAdobeLicenseAgreementAreAccepted=3c9041a9,3872fc1e" + } - stage 'Build FlexJS Framework' + stage 'Build FlexJS Framework' - dir('framework') { - echo 'Building FlexJS Framework' - bat "mvn -U clean ${mavenGoal} -s C:\\.m2\\settings.xml -P apache-snapshots-enabled,build-examples,build-distribution -Dcom.adobe.systemIdsForWhichTheTermsOfTheAdobeLicenseAgreementAreAccepted=3872fc1e" - } + dir('framework') { + echo 'Building FlexJS Framework' + bat "mvn -U clean ${mavenGoal} -s C:\\.m2\\settings.xml -P apache-snapshots-enabled,build-examples,build-distribution -Dcom.adobe.systemIdsForWhichTheTermsOfTheAdobeLicenseAgreementAreAccepted=3872fc1e" + } - stage 'Release Site Changes' - - echo 'Releasing Site Changes' + stage 'Release Site Changes' + echo 'Releasing Site Changes' + } }