forked from apache/flink
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
travis: add script to deploy both versions of ozone to sonatype
- Loading branch information
Showing
3 changed files
with
23 additions
and
4 deletions.
There are no files selected for viewing
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,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
|
||
# | ||
# This script is called by travis to deploy our project to sonatype SNAPSHOTS. | ||
# It will deploy both a hadoop v1 and a hadoop v2 (yarn) artifact | ||
# | ||
|
||
# Check if push/commit is eligible for pushing | ||
echo "Job: $TRAVIS_JOB_NUMBER ; isPR: $TRAVIS_PULL_REQUEST" | ||
if [[ $TRAVIS_JOB_NUMBER == *1 ]] && [[ $TRAVIS_PULL_REQUEST == "false" ]] ; then | ||
# Deploy regular hadoop v1 to maven | ||
mvn -DskipTests deploy --settings deploysettings.xml; | ||
|
||
# deploy hadoop v2 (yarn) | ||
echo "Generating poms for hadoop-yarn." | ||
./tools/generate_specific_pom.sh 0.4-ozone-SNAPSHOT 0.4-ozone-hadoop2-SNAPSHOT | ||
mvn -f pom.hadoop2.xml -DskipTests clean deploy --settings deploysettings.xml; | ||
fi |
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