X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fopflex%2Fscripts%2Fdeploy-opflex.sh;fp=jjb%2Fopflex%2Fscripts%2Fdeploy-opflex.sh;h=0000000000000000000000000000000000000000;hb=55a41db88df3dba21a5d377e4bbf31fd4486f48c;hp=3ee1e2f41cf6467e43a17c118dc2956eadcecc10;hpb=a5d78bb6f9bc02bd5003af525bf084139de8e633;p=releng%2Fbuilder.git diff --git a/jjb/opflex/scripts/deploy-opflex.sh b/jjb/opflex/scripts/deploy-opflex.sh deleted file mode 100644 index 3ee1e2f41..000000000 --- a/jjb/opflex/scripts/deploy-opflex.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -l -# SPDX-License-Identifier: EPL-1.0 -############################################################################## -# Copyright (c) 2017 The Linux Foundation and others. -# -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Eclipse Public License v1.0 -# which accompanies this distribution, and is available at -# http://www.eclipse.org/legal/epl-v10.html -############################################################################## -# -# Todo: remove this script once change no 5753 is merged in global-jjb -# This script publishes OpFlex artifacts to Nexus repository. -# -# $MAVEN_REPO_URL : Jenkins global variable should be defined. -# $REPO_ID : Provided by a job parameter. -# $GROUP_ID : Provided by a job parameter. -# $UPLOAD_FILES_PATH : Provided by a job parameter. -echo "---> scripts/deploy-opflex.sh" - -# DO NOT enable -u because $MAVEN_PARAMS and $MAVEN_OPTIONS could be unbound. -# Ensure we fail the job if any steps fail. -set -e -o pipefail -set +u - -export MAVEN_OPTIONS -export MAVEN_PARAMS - -DEPLOY_LOG="$WORKSPACE/archives/deploy-maven-file.log" -mkdir -p "$WORKSPACE/archives" - -while IFS="" read -r file -do - lftools deploy maven-file "$MAVEN_REPO_URL" \ - "$REPO_ID" \ - "$file" \ - -b "$MVN" \ - -g "$GROUP_ID" \ - -p "$MAVEN_PARAMS $MAVEN_OPTIONS" \ - |& tee "$DEPLOY_LOG" -done < <(find "$UPLOAD_FILES_PATH" -type f -name "*")