Repository: flex-falcon
Updated Branches:
  refs/heads/develop 68370ba83 -> d3f2a5780


- Playing around with the Jenkinsfile


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/d3f2a578
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/d3f2a578
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/d3f2a578

Branch: refs/heads/develop
Commit: d3f2a57807cb206186aeee2955ff499988b3ca13
Parents: 68370ba
Author: Christofer Dutz <christofer.d...@codecentric.de>
Authored: Wed Sep 21 13:17:56 2016 +0200
Committer: Christofer Dutz <christofer.d...@codecentric.de>
Committed: Wed Sep 21 13:17:56 2016 +0200

----------------------------------------------------------------------
 Jenkinsfile | 37 +++++++++++++++++++++++++++----------
 1 file changed, 27 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/d3f2a578/Jenkinsfile
----------------------------------------------------------------------
diff --git a/Jenkinsfile b/Jenkinsfile
index 62e8867..b42f333 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -17,30 +17,44 @@ node('windows-2012-1') {
 
     try {
 
+        stage 'Wipe Workspace'
+            // Clean the entire workspace ... for debugging ...
+            deleteDir()
+
         stage 'Checkout Upstream Projects'
 
-                echo 'checking out flexjs-typedefs for branch'
-                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-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-framework for branch'
-                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'
 
-            echo 'Building FlexJS Compiler'
-            bat 'mvn -U clean deploy -s C:\\.m2\\settings.xml -P 
apache-snapshots-enabled 
-Dcom.adobe.systemIdsForWhichTheTermsOfTheAdobeLicenseAgreementAreAccepted=3c9041a9,3872fc1e'
+            dir('compiler') {
+                echo 'Building FlexJS Compiler'
+                bat 'mvn -U clean deploy -s C:\\.m2\\settings.xml -P 
apache-snapshots-enabled 
-Dcom.adobe.systemIdsForWhichTheTermsOfTheAdobeLicenseAgreementAreAccepted=3c9041a9,3872fc1e'
+            }
 
         stage 'Build FlexJS Typedefs'
 
+            dir('typedefs') {
                 echo 'Building FlexJS Typedefs'
-                bat 'mvn -U clean deploy -f typedefs\\pom.xml -s 
C:\\.m2\\settings.xml -P apache-snapshots-enabled 
-Dcom.adobe.systemIdsForWhichTheTermsOfTheAdobeLicenseAgreementAreAccepted=3c9041a9,3872fc1e'
+                bat 'mvn -U clean deploy -s C:\\.m2\\settings.xml -P 
apache-snapshots-enabled 
-Dcom.adobe.systemIdsForWhichTheTermsOfTheAdobeLicenseAgreementAreAccepted=3c9041a9,3872fc1e'
+            }
 
         stage 'Build FlexJS Framework'
 
+            dir('frameworks') {
                 echo 'Building FlexJS Framework'
-                bat 'mvn -U clean install -f framework\\pom.xml -s 
C:\\.m2\\settings.xml -P 
apache-snapshots-enabled,build-examples,build-distribution 
-Dcom.adobe.systemIdsForWhichTheTermsOfTheAdobeLicenseAgreementAreAccepted=3872fc1e'
+                bat 'mvn -U clean install -s C:\\.m2\\settings.xml -P 
apache-snapshots-enabled,build-examples,build-distribution 
-Dcom.adobe.systemIdsForWhichTheTermsOfTheAdobeLicenseAgreementAreAccepted=3872fc1e'
+            }
 
         stage 'Release Site Changes'
 
@@ -49,6 +63,7 @@ node('windows-2012-1') {
         stage 'Cleanup'
 
             echo 'Cleaning up'
+
     }
 
 
@@ -65,5 +80,7 @@ node('windows-2012-1') {
         throw err
     }
 
+    // Clean the entire workspace ... for debugging ...
+    deleteDir()
 
 }
\ No newline at end of file

Reply via email to