forked from apache/incubator-uniffle
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Build docker image with hops hadoop distribution
- Loading branch information
1 parent
4944d54
commit dbee648
Showing
6 changed files
with
81 additions
and
34 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("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}" | ||
echo "NEXUS_CREDS_USR: ${NEXUS_CREDS_USR}, NEXUS_CREDS_PSW: ${NEXUS_CREDS_PSW}" | ||
docker login -u ${NEXUS_CREDS_USR} -p ${NEXUS_CREDS_PSW} docker.hops.works | ||
git checkout ${BUILD_BRANCH} | ||
./build_distribution.sh --spark-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/target/rss-client-${VERSION}.jar /opt/repository/master/rss/${VERSION}/ | ||
""" | ||
} | ||
} | ||
} | ||
} | ||
|
||
post { | ||
success { | ||
build job:'Remote shuffle services', parameters: [ | ||
string(name: 'image', value: "rss"), | ||
string(name: 'branch', value: "master") | ||
] | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.9.0 |