# Do not fail the build if there is trouble trying to collect distribution patch diffs
set +e
-wget --progress=dot:mega $ACTUALBUNDLEURL
+wget --no-verbose --show-progress --progress=dot:giga $ACTUALBUNDLEURL
echo "Extracting the last distribution found on nexus..."
unzip -q $BUNDLE
mv $BUNDLEFOLDER /tmp/distro_old
for try in $(seq $STACK_RETRIES); do
# shellcheck disable=SC1083
openstack stack create --timeout "$OS_TIMEOUT" -t {stack-template} -e "$WORKSPACE/opendaylight-infra-environment.yaml" --parameter "job_name=$VM_NAME" --parameter "silo=$SILO" "$STACK_NAME"
- openstack stack list
echo "$try: Waiting for $OS_TIMEOUT minutes to create $STACK_NAME."
for i in $(seq $OS_TIMEOUT); do
sleep 60
;;
CREATE_FAILED)
echo "ERROR: Failed to initialize infrastructure. Deleting stack and possibly retrying to create..."
- openstack stack list
openstack stack delete --yes "$STACK_NAME"
openstack stack show "$STACK_NAME"
# after stack delete, poll for 10m to know when stack is fully removed
# http://www.eclipse.org/legal/epl-v10.html
##############################################################################
+# Force any errors to cause the script to end with failure
+set -eu -o pipefail
+
function print_usage {
echo "Usage: $0 <staging-repo>"
echo ""
fi
mkdir $SIGNATURES_DIR
-mvn org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7:deploy-staged-repository \
+mvn org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8:deploy-staged-repository \
+ -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
-DskipStagingRepositoryClose=true \
-DrepositoryDirectory="$SIGNATURES_DIR" \
-DnexusUrl=https://nexus.opendaylight.org/ \
-DserverId="opendaylight.staging" | tee /tmp/deploy-staged-repository.log
STAGED_REPO_ID=`grep 'Created staging repository with ID' /tmp/deploy-staged-repository.log | sed -e 's/.*ID "//' -e 's/".*//'`
-echo "Staged Repo: $STAGED_REPO"
+echo "Staged Repo: $STAGED_REPO_ID"
#
# Finally retrieve and sign artifacts.
do
echo "Signing $i"
./odlrelease sign http://nexus.opendaylight.org/content/repositories/$SIGNREPO/org/opendaylight/$i/
- mvn org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7:deploy-staged-repository \
+ mvn org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8:deploy-staged-repository \
+ -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
-DskipStagingRepositoryClose=true \
-DstagingRepositoryId=$STAGED_REPO_ID \
-DrepositoryDirectory="$SIGNATURES_DIR" \