blob: 8344eaf7a1467035f8fc2efbf890fb734ecf1f8e [file] [log] [blame]
Michal Vasko34a6d742019-12-10 15:25:07 +01001#!/usr/bin/env bash
2
3GIT_PATH=`git rev-parse --show-cdup`
4if [ "$GIT_PATH" != "" ]; then
5 echo "Must be run from repository root"
6 exit
7fi
8
9if [ $# -ne 2 ]; then
10 echo "Usage $0 <osb-user> <osb-pass>"
11 exit
12fi
13
14# for correct git log command output used in changelog
15LC_TIME=en_US.UTF-8
16# upload package even if the version is not newer
17FORCEVERSION=1
18# needed so that the package is even created
19TRAVIS_EVENT_TYPE=cron
20# what package to upload (devel = libnetconf2-experimental, master = libnetconf2)
21TRAVIS_BRANCH=`git branch --show-current`
22
23# OSB login
24osb_user=$1
25osb_pass=$2
26
27# create and upload the package
28. ./packages/create-package.sh