-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unify build workflows and argument specification
- Merge the external-pr workflow into the maven workflow - Create .mvn/maven.config and common build arguments to it - Remove unused environment variable 'WORKSPACE' and inline 'JENKINS_URL' env-variable.
- Loading branch information
1 parent
9dc30d6
commit e3d7354
Showing
10 changed files
with
20 additions
and
112 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--show-version | ||
--update-snapshots | ||
-Dsurefire.rerunFailingTestsCount=3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,7 +101,6 @@ pipeline { | |
./gradlew -info \ | ||
--warning-mode all \ | ||
--refresh-dependencies \ | ||
-PJENKINS_URL=$JENKINS_URL \ | ||
-Posspub.userMavenSettings=/home/jenkins/.m2/settings.xml \ | ||
-Posspub.mavenSecurityFile=/home/jenkins/.m2/settings-security.xml \ | ||
-Posspub.version=$XTEXT_VERSION \ | ||
|
@@ -117,7 +116,7 @@ pipeline { | |
} // END dir | ||
} | ||
} | ||
|
||
stage('Deploy to Eclipse project storage') { | ||
steps { | ||
dir('publishing') { | ||
|
@@ -134,18 +133,18 @@ pipeline { | |
S) ZIP_NAME=tmf-xtext-Update-$XTEXT_VERSION.zip ;; | ||
R) ZIP_NAME=tmf-xtext-Update-$VERSION.zip ;; | ||
esac | ||
# | ||
# STEP 2: Zip the repository | ||
# | ||
cd build-result/p2.repository | ||
zip -r $WORKSPACE/publishing/build-result/downloads/$ZIP_NAME . | ||
md5sum --binary $WORKSPACE/publishing/build-result/downloads/$ZIP_NAME > $WORKSPACE/publishing/build-result/downloads/$ZIP_NAME.md5 | ||
cd $WORKSPACE/publishing | ||
''' | ||
} // END dir | ||
|
||
sshagent(['projects-storage.eclipse.org-bot-ssh']) { | ||
dir('publishing') { | ||
sh ''' | ||
|
@@ -163,15 +162,15 @@ pipeline { | |
S) ZIP_NAME=tmf-xtext-Update-$XTEXT_VERSION.zip ;; | ||
R) ZIP_NAME=tmf-xtext-Update-$VERSION.zip ;; | ||
esac | ||
# | ||
# STEP 3: Upload zip und .md5 | ||
# | ||
TARGET_DROP_PATH=$DOWNLOAD_AREA/$VERSION/$BUILD_ID | ||
# ensure target directory exists | ||
ssh [email protected] "mkdir -p $TARGET_DROP_PATH" | ||
scp $WORKSPACE/publishing/build-result/downloads/$ZIP_NAME $WORKSPACE/publishing/build-result/downloads/$ZIP_NAME.md5 [email protected]:$TARGET_DROP_PATH | ||
# | ||
# STEP 4: Unpack zip to p2 repository location | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters