Merge "Configure tep-ip for genius auto tunnels"
[releng/builder.git] / jjb / stage-release.sh
1 #!/bin/bash
2 # SPDX-License-Identifier: EPL-1.0
3 ##############################################################################
4 # Copyright (c) 2016 The Linux Foundation and others.
5 #
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Eclipse Public License v1.0
8 # which accompanies this distribution, and is available at
9 # http://www.eclipse.org/legal/epl-v10.html
10 ##############################################################################
11
12 # Assuming that mvn deploy created the hide/from/pom/files/stage directory.
13 cd hide/from/pom/files || exit 1
14 mkdir -p m2repo/org/opendaylight/
15
16 rsync -avz --exclude 'maven-metadata*' \
17            --exclude '_remote.repositories' \
18            --exclude 'resolver-status.properties' \
19            "stage/org/opendaylight/$PROJECT" m2repo/org/opendaylight/
20
21 mvn org.sonatype.plugins:nexus-staging-maven-plugin:1.6.2:deploy-staged-repository \
22     -DrepositoryDirectory="$(pwd)/m2repo" \
23     -DnexusUrl=https://nexus.opendaylight.org/ \
24     -DstagingProfileId="$STAGING_PROFILE_ID" \
25     -DserverId="opendaylight-staging" \
26     -s "$SETTINGS_FILE" \
27     -gs "$GLOBAL_SETTINGS_FILE" | tee "$WORKSPACE/deploy-staged-repository.log"