CP-31322: Generate a zip file that includes the xeadmin and dotnet-packages sources.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
Konstantina Chremmou 2020-02-25 12:41:19 +00:00 committed by Mihaela Stoica
parent 9e458373b0
commit cbc5ca168b
3 changed files with 11 additions and 2 deletions

View File

@ -1 +1 @@
xc-local-release/dotnet-packages/master/30
xc-local-release/dotnet-packages/master/31

View File

@ -45,6 +45,11 @@
"target": "xenadmin.git/packages/",
"flat": "true"
},
{
"pattern": "@REMOTE_DOTNET@/SOURCES/dotnet-packages-sources.zip",
"target": "xenadmin.git/packages/",
"flat": "true"
},
{
"pattern": "xs-local-contrib/citrix/xencenter/XenCenterOVF.zip",
"target": "xenadmin.git/packages/",

View File

@ -68,9 +68,13 @@ source ${REPO}/Branding/branding.sh
source ${REPO}/scripts/re-branding.sh $1
#packages sources
mkdir_clean ${SCRATCH_DIR}/SOURCES
cd ${REPO}
gitCommit=`git rev-parse HEAD`
git archive --format=zip -o "_output/${BRANDING_BRAND_CONSOLE}-sources.zip" ${gitCommit}
git archive --format=zip -o "_scratch/SOURCES/xenadmin-sources.zip" ${gitCommit}
cp ${REPO}/packages/dotnet-packages-sources.zip ${SCRATCH_DIR}/SOURCES
cd ${SCRATCH_DIR}/SOURCES && zip ${BRANDING_BRAND_CONSOLE}-source.zip dotnet-packages-sources.zip xenadmin-sources.zip
cp ${SCRATCH_DIR}/SOURCES/${BRANDING_BRAND_CONSOLE}-source.zip ${OUTPUT_DIR}/${BRANDING_BRAND_CONSOLE}-source.zip
${UNZIP} -d ${SCRATCH_DIR} ${REPO}/packages/XenCenterOVF.zip
cd ${REPO} && "${MSBUILD}" ${SWITCHES} XenAdmin.sln