mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-23 12:30:50 +01:00
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:
parent
9e458373b0
commit
cbc5ca168b
@ -1 +1 @@
|
||||
xc-local-release/dotnet-packages/master/30
|
||||
xc-local-release/dotnet-packages/master/31
|
||||
|
@ -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/",
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user