forked from logicalclocks/incubator-uniffle
-
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.
Build docker image with hops hadoop distribution
- Loading branch information
1 parent
477bc30
commit 100e672
Showing
7 changed files
with
81 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
pipeline { | ||
agent { | ||
label "local" | ||
} | ||
environment { | ||
VERSION = readFile "${env.WORKSPACE}/version.txt" | ||
BUILD_BRANCH = readFile "${env.WORKSPACE}/build_branch.txt" | ||
} | ||
stages { | ||
stage("checkout") { | ||
steps { | ||
sh """ | ||
set -ex | ||
git fetch --all | ||
git checkout ${BUILD_BRANCH} | ||
git reset --hard origin/${BUILD_BRANCH} | ||
""" | ||
} | ||
} | ||
stage("build and publish") { | ||
agent { | ||
label "local" | ||
} | ||
steps { | ||
withCredentials([usernamePassword(credentialsId: 'cred', passwordVariable: 'NEXUS_CREDS_PSW', usernameVariable: 'NEXUS_CREDS_USR')]) { | ||
sh """ | ||
set -ex | ||
echo "Building RSS version ${VERSION} on branch ${BUILD_BRANCH}" | ||
docker login -u ${NEXUS_CREDS_USR} -p ${NEXUS_CREDS_PSW} docker.hops.works | ||
./build_distribution.sh --spark3-profile spark3 --hadoop-profile hadoop3.2 --without-dashboard | ||
cd deploy/kubernetes/docker || exit | ||
./build.sh --hadoop-version 3.2.0.13-EE-SNAPSHOT --registry docker.hops.works --nexus-user $NEXUS_CREDS_USR --nexus-password $NEXUS_CREDS_PSW | ||
cd ../../.. | ||
mkdir -p /opt/repository/master/rss/${VERSION}/ | ||
cp client-spark/spark3-shaded/target/rss-client-spark3-shaded-${VERSION}.jar /opt/repository/master/rss/${VERSION}/ | ||
""" | ||
} | ||
} | ||
} | ||
} | ||
} |
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 @@ | ||
branch-0.9 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
0.9.0 |