Repository: flex-falcon
Updated Branches:
  refs/heads/develop d46bbe831 -> 7aa48afbf


- Updated the Jenkinsfile to only deploy artifacts from the "develop" branch.


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

Branch: refs/heads/develop
Commit: 21691573f7f9cd28013a3601fd11c83217a3e59e
Parents: 7405eca
Author: Christofer Dutz <christofer.d...@codecentric.de>
Authored: Tue Sep 27 16:52:34 2016 +0200
Committer: Christofer Dutz <christofer.d...@codecentric.de>
Committed: Tue Sep 27 16:52:34 2016 +0200

----------------------------------------------------------------------
 Jenkinsfile | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/21691573/Jenkinsfile
----------------------------------------------------------------------
diff --git a/Jenkinsfile b/Jenkinsfile
index 79db3d3..8805802 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -34,6 +34,12 @@ node('windows-2012-1') {
     env.FLASHPLAYER_DEBUGGER = "C:\\Program Files 
(x86)\\Adobe\\flashplayer_22_sa_debug.exe"
     env.PATH = "${tool 'Maven 3 (latest)'}\\bin;${env.PATH}"
 
+    // Make sure the feature branches don't change the SNAPSHOTS in Nexus.
+    var mavenGoal = "install"
+    if(env.BRANCH_NAME == 'develop') {
+        mavenGoal = "deploy"
+    }
+
     try {
 
         stage 'Wipe Workspace'
@@ -58,31 +64,27 @@ node('windows-2012-1') {
 
             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'
+                bat 'mvn -U clean $mavenGoal -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 -s C:\\.m2\\settings.xml -P 
apache-snapshots-enabled 
-Dcom.adobe.systemIdsForWhichTheTermsOfTheAdobeLicenseAgreementAreAccepted=3c9041a9,3872fc1e'
+                bat 'mvn -U clean $mavenGoal -s C:\\.m2\\settings.xml -P 
apache-snapshots-enabled 
-Dcom.adobe.systemIdsForWhichTheTermsOfTheAdobeLicenseAgreementAreAccepted=3c9041a9,3872fc1e'
             }
 
         stage 'Build FlexJS Framework'
 
             dir('framework') {
                 echo 'Building FlexJS Framework'
-                bat 'mvn -U clean install -s C:\\.m2\\settings.xml -P 
apache-snapshots-enabled,build-examples,build-distribution 
-Dcom.adobe.systemIdsForWhichTheTermsOfTheAdobeLicenseAgreementAreAccepted=3872fc1e'
+                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 'Cleanup'
-
-            echo 'Cleaning up'
-
     }
 
 
@@ -92,9 +94,9 @@ node('windows-2012-1') {
 
             mail body: "project build error is here: ${env.BUILD_URL}" ,
             from: 'x...@yyyy.com',
-            replyTo: 'y...@yyyy.com',
-            subject: 'project build failed',
-            to: 'z...@yyyyy.com'
+            replyTo: 'd...@flex.apache.org',
+            subject: 'Autobuild for Branch ' env.BRANCH_NAME,
+            to: 'commits@flex.apache.org'
 
         throw err
     }

Reply via email to