summaryrefslogtreecommitdiff
path: root/publish-packages.sh
diff options
context:
space:
mode:
authorLakshmi Priya Sekar <lasekar@microsoft.com>2016-07-14 15:42:33 -0700
committerLakshmi Priya Sekar <lasekar@microsoft.com>2016-07-29 17:47:37 -0700
commitf5afe9b479acea4d2f4c80d0b86b8db6a869ff96 (patch)
tree3fd39ea446a193bcea48238fd866ec4d64253b3b /publish-packages.sh
parentf9350e92692fbc6972138115bfc5336750da9069 (diff)
downloadcoreclr-f5afe9b479acea4d2f4c80d0b86b8db6a869ff96.tar.gz
coreclr-f5afe9b479acea4d2f4c80d0b86b8db6a869ff96.tar.bz2
coreclr-f5afe9b479acea4d2f4c80d0b86b8db6a869ff96.zip
Use run tool in coreclr dev workflow.
Diffstat (limited to 'publish-packages.sh')
-rwxr-xr-xpublish-packages.sh57
1 files changed, 6 insertions, 51 deletions
diff --git a/publish-packages.sh b/publish-packages.sh
index 555a590256..8170419fb5 100755
--- a/publish-packages.sh
+++ b/publish-packages.sh
@@ -4,68 +4,23 @@ usage()
{
echo "Publishes the NuGet packages to the specified location."
echo "For publishing to Azure the following properties are required."
- echo " /p:CloudDropAccountName=\"account name\""
- echo " /p:CloudDropAccessToken=\"access token\""
- echo " /p:__BuildType=\"Configuration\""
- echo " /p:__BuildArch=\"Architecture\""
+ echo " -AzureAccount=\"account name\""
+ echo " -AzureToken=\"access token\""
+ echo " -BuildType=\"Configuration\""
+ echo " -BuildArch=\"Architecture\""
echo "Configuration can be Release, Checked, or Debug"
echo "Architecture can be x64, x86, arm, or arm64"
exit 1
}
working_tree_root="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-publish_log=$working_tree_root/publish.log
-# Use uname to determine what the OS is.
-OSName=$(uname -s)
-case $OSName in
- Linux)
- __BuildOS=Linux
- ;;
-
- Darwin)
- __BuildOS=OSX
- ;;
-
- FreeBSD)
- __BuildOS=FreeBSD
- ;;
-
- OpenBSD)
- __BuildOS=OpenBSD
- ;;
-
- NetBSD)
- __BuildOS=NetBSD
- ;;
-
- SunOS)
- __BuildOS=SunOS
- ;;
-
- *)
- echo "Unsupported OS $OSName detected, configuring as if for Linux"
- __BuildOS=Linux
- ;;
-esac
-
-options="/nologo /v:minimal /flp:v=detailed;Append;LogFile=$publish_log"
-
-echo "Running publish-packages.sh $*" > $publish_log
-
-echo "Running init-tools.sh"
-$working_tree_root/init-tools.sh
-
-echo "Publishing packages..."
-echo -e "\n$working_tree_root/Tools/dotnetcli/dotnet $working_tree_root/Tools/MSBuild.exe $working_tree_root/src/publish.proj $options $*" /p:__BuildOS=$__BuildOS >> $publish_log
-$working_tree_root/Tools/dotnetcli/dotnet $working_tree_root/Tools/MSBuild.exe $working_tree_root/src/publish.proj $options $* /p:__BuildOS=$__BuildOS
+$working_tree_root/run.sh publish-packages -BuildOS $*
if [ $? -ne 0 ]
then
- echo -e "\nPackage publishing failed. Aborting." >> $publish_log
- echo "ERROR: An error occurred while publishing packages; see $publish_log for more details. There may have been networking problems, so please try again in a few minutes."
+ echo "ERROR: An error occurred while publishing packages; see $working_tree_root/publish-packages.log for more details. There may have been networking problems, so please try again in a few minutes."
exit 1
fi
echo "Publish completed successfully."
-echo -e "\nPublish completed successfully." >> $publish_log
exit 0 \ No newline at end of file