Repository: flex-falcon
Updated Branches:
  refs/heads/feature-autobuild/maven-archetypes 7c2b4609b -> e152a8abf


- 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/e152a8ab
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/e152a8ab
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/e152a8ab

Branch: refs/heads/feature-autobuild/maven-archetypes
Commit: e152a8abf679a658a1d6480f5bd9dcc4299b8832
Parents: 7c2b460
Author: Christofer Dutz <[email protected]>
Authored: Wed Sep 28 20:26:44 2016 +0200
Committer: Christofer Dutz <[email protected]>
Committed: Wed Sep 28 20:26:44 2016 +0200

----------------------------------------------------------------------
 Jenkinsfile | 62 +++++++++++++++++++++++++-------------------------------
 1 file changed, 28 insertions(+), 34 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/e152a8ab/Jenkinsfile
----------------------------------------------------------------------
diff --git a/Jenkinsfile b/Jenkinsfile
index c1c731a..9b349dc 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -41,53 +41,47 @@ node('windows-2012-1') {
     }
 
     try {
-        // Make sure each branch uses it's own maven local repo so the 
artifacts
-        // don't interfere with the ones of other branches.
-        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']]])
 
-                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']]])
 
-                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']]])
 
-            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} 
-Dmaven.repo.local=..\\.repository -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} 
-Dmaven.repo.local=..\\.repository -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} 
-Dmaven.repo.local=..\\.repository -s C:\\.m2\\settings.xml -P 
apache-snapshots-enabled,build-examples,build-distribution 
-Dcom.adobe.systemIdsForWhichTheTermsOfTheAdobeLicenseAgreementAreAccepted=3872fc1e"
+            }
 
-            stage 'Release Site Changes'
+        stage 'Release Site Changes'
+
+            echo 'Releasing Site Changes'
 
-                echo 'Releasing Site Changes'
-        }
     }
 
 

Reply via email to