migrate artifacts to sahara-extra

Change-Id: I00fc23eba9049002d6498b77636450384ae9dc02
This commit is contained in:
Vitaly Gridnev 2016-09-12 12:17:35 +03:00
parent 728a106985
commit c808fe5b4b
5 changed files with 11 additions and 4 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -2,10 +2,15 @@
set -eux
set -o pipefail
export BRANCH=$1
export BRANCH=${BRANCH:-master}
echo "Building all needed hadoop-openstack versions"
hadoop_versions=(2.2.0 2.3.0 2.5.0 2.6.0 2.7.1)
for ver in ${hadoop_versions[*]}
do
./tools/build-hadoop-openstack.sh ${ver}
./tools/build-hadoop-openstack.sh $BRANCH ${ver}
done
cp -r ./common-artifacts ./../dist/

View File

@ -7,12 +7,13 @@ function usage {
echo "Usage: $(basename $0) <hadoop-version>"
}
if [[ $# -ne 1 ]]; then
if [[ $# -ne 2 ]]; then
usage
exit 1
fi
HADOOP_VERSION=${1}
BRANCH=${1}
HADOOP_VERSION=${2}
case "${HADOOP_VERSION}" in
"2.2.0" | "2.3.0" | "2.5.0" | "2.6.0" | "2.7.1")
EXTRA_ARGS="-P hadoop2"
@ -27,5 +28,6 @@ echo "Build hadoop-openstack library"
pushd hadoop-swiftfs
mvn clean package ${EXTRA_ARGS:-} -Dhadoop.version=${HADOOP_VERSION}
mkdir -p ./../dist/hadoop-openstack/
mv target/hadoop-openstack-3.0.0-SNAPSHOT.jar ./../dist/hadoop-openstack/hadoop-openstack-${HADOOP_VERSION}.jar
mkdir -p ./../dist/hadoop-openstack/${BRANCH}
mv target/hadoop-openstack-3.0.0-SNAPSHOT.jar ./../dist/hadoop-openstack/${BRANCH}/hadoop-openstack-${HADOOP_VERSION}.jar
popd