mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-12-04 17:11:06 +01:00
Enabled back the exection of devtools and improved the logging
This commit is contained in:
parent
8840a7a496
commit
908bacf6c2
@ -6788,7 +6788,7 @@
|
|||||||
</Target>
|
</Target>
|
||||||
-->
|
-->
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PostBuildEvent Condition=" '$(Configuration)' == 'Release' ">"mt.exe" -manifest "$(ProjectDir)$(ProjectName).manifest" -outputresource:"$(TargetDir)..\..\bin\$(Configuration)\$(TargetFileName)";#1</PostBuildEvent>
|
<PostBuildEvent Condition=" '$(Configuration)' == 'Release' ">mt.exe -nologo -manifest "$(ProjectDir)$(ProjectName).manifest" -outputresource:"$(TargetDir)..\..\bin\$(Configuration)\$(TargetFileName)";#1</PostBuildEvent>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PostBuildEvent>copy "$(ProjectDir)\ReportViewer\resource_report.rdlc" "$(TargetDir)"
|
<PostBuildEvent>copy "$(ProjectDir)\ReportViewer\resource_report.rdlc" "$(TargetDir)"
|
||||||
|
1
devtools/check-roaming.sh
Normal file → Executable file
1
devtools/check-roaming.sh
Normal file → Executable file
@ -32,6 +32,7 @@
|
|||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
|
echo "INFO: check roaming"
|
||||||
dir=$(readlink -f $(dirname "$0"))
|
dir=$(readlink -f $(dirname "$0"))
|
||||||
src=$(readlink -f "$dir/../XenAdmin")
|
src=$(readlink -f "$dir/../XenAdmin")
|
||||||
|
|
||||||
|
2
devtools/deadcheck/deadcheck.sh
Normal file → Executable file
2
devtools/deadcheck/deadcheck.sh
Normal file → Executable file
@ -32,6 +32,8 @@
|
|||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
|
echo "INFO: deadcheck"
|
||||||
|
|
||||||
dir="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
dir="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
src="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )/../../XenAdmin" && pwd )"
|
src="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )/../../XenAdmin" && pwd )"
|
||||||
if [ ! -d "${src}" ]; then
|
if [ ! -d "${src}" ]; then
|
||||||
|
2
devtools/spellcheck/spellcheck.sh
Normal file → Executable file
2
devtools/spellcheck/spellcheck.sh
Normal file → Executable file
@ -32,6 +32,8 @@
|
|||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
|
echo "INFO: spellcheck"
|
||||||
|
|
||||||
dir="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
dir="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
src="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )/../.." && pwd )"
|
src="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )/../.." && pwd )"
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ if [ -n "${FATAL}" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ -n "${DEBUG+xxx}" ];
|
if [ -v DEBUG ];
|
||||||
then
|
then
|
||||||
echo "INFO: DEBUG mode activated (verbose)"
|
echo "INFO: DEBUG mode activated (verbose)"
|
||||||
set -x
|
set -x
|
||||||
@ -84,7 +84,7 @@ fi
|
|||||||
|
|
||||||
production_jenkins_build()
|
production_jenkins_build()
|
||||||
{
|
{
|
||||||
#source ${XENADMIN_DIR}/mk/bumpBuildNumber.sh
|
source ${XENADMIN_DIR}/mk/bumpBuildNumber.sh
|
||||||
source ${XENADMIN_DIR}/devtools/check-roaming.sh
|
source ${XENADMIN_DIR}/devtools/check-roaming.sh
|
||||||
source ${XENADMIN_DIR}/devtools/i18ncheck/i18ncheck.sh
|
source ${XENADMIN_DIR}/devtools/i18ncheck/i18ncheck.sh
|
||||||
source ${XENADMIN_DIR}/devtools/deadcheck/deadcheck.sh
|
source ${XENADMIN_DIR}/devtools/deadcheck/deadcheck.sh
|
||||||
|
14
mk/bumpBuildNumber.sh
Normal file → Executable file
14
mk/bumpBuildNumber.sh
Normal file → Executable file
@ -29,7 +29,7 @@
|
|||||||
# SUCH DAMAGE.
|
# SUCH DAMAGE.
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
echo "INFO: bump build number"
|
||||||
if [ $get_JOB_NAME = "devbuild" ] ; then
|
if [ $get_JOB_NAME = "devbuild" ] ; then
|
||||||
echo Warning: devbuild detected so we will skip the build number increment. All dev builds will have build number 0.
|
echo Warning: devbuild detected so we will skip the build number increment. All dev builds will have build number 0.
|
||||||
exit 0
|
exit 0
|
||||||
@ -45,17 +45,17 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
url="${JENKINS_SERVER}/job/${get_JOB_NAME}/"
|
url="${JENKINS_SERVER}/job/${get_JOB_NAME}/"
|
||||||
if curl -n -s --head --fail "${url}"; then
|
if curl -n -s --fail "${url}" -o out.tmp ; then
|
||||||
echo "URL exists: ${url}"
|
echo "INFO: URL exists: ${url}"
|
||||||
else
|
else
|
||||||
echo "URL does not exist: ${url}"
|
echo "ERROR: URL does not exist: ${url}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
NEXT_BN=$(curl -n "http://hg.uk.xensource.com/cgi/next-xenadmin?job=$get_JOB_NAME&number=$get_BUILD_NUMBER&rev=$get_REVISION")
|
NEXT_BN=$(curl -s -n "http://hg.uk.xensource.com/cgi/next-xenadmin?job=$get_JOB_NAME&number=$get_BUILD_NUMBER&rev=$get_REVISION")
|
||||||
|
|
||||||
echo NEXT_BN=${NEXT_BN}
|
echo "INFO: NEXT_BN=${NEXT_BN}"
|
||||||
|
|
||||||
curl -n --data "nextBuildNumber=${NEXT_BN}" --header "Content-Type: application/x-www-form-urlencoded" ${JENKINS_SERVER}/job/${get_JOB_NAME}/nextbuildnumber/submit
|
curl -s -n --data "nextBuildNumber=${NEXT_BN}" --header "Content-Type: application/x-www-form-urlencoded" ${JENKINS_SERVER}/job/${get_JOB_NAME}/nextbuildnumber/submit
|
||||||
|
|
||||||
set +u
|
set +u
|
||||||
|
4
mk/colour.sh
Normal file → Executable file
4
mk/colour.sh
Normal file → Executable file
@ -39,7 +39,7 @@ ROOTURL=https://xenbuilder.uk.xensource.com
|
|||||||
DEFAULT_OUTPUT=Red
|
DEFAULT_OUTPUT=Red
|
||||||
|
|
||||||
#Get the cookie
|
#Get the cookie
|
||||||
curl -n -q -s -k $ROOTURL/plainlogin -o /dev/null -c /tmp/cookie$$
|
curl -n -s -k $ROOTURL/plainlogin -o /dev/null -c /tmp/cookie$$
|
||||||
|
|
||||||
#If this fails then declare the trunk red as there is a problem with the server
|
#If this fails then declare the trunk red as there is a problem with the server
|
||||||
#otherwise try to work out the actual color of the trunk
|
#otherwise try to work out the actual color of the trunk
|
||||||
@ -47,7 +47,7 @@ if [ $? -ne 0 ]; then
|
|||||||
echo $DEFAULT_OUTPUT
|
echo $DEFAULT_OUTPUT
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
curl -n -q -s -k $ROOTURL/ -o - -b /tmp/cookie$$ | sed -ne 's/.*Trunk is.*\(Green\|Red\|Orange\).*/\1/Ip'
|
curl -n -s -k $ROOTURL/ -o - -b /tmp/cookie$$ | sed -ne 's/.*Trunk is.*\(Green\|Red\|Orange\).*/\1/Ip'
|
||||||
rm /tmp/cookie$$
|
rm /tmp/cookie$$
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -74,6 +74,6 @@
|
|||||||
</Target>
|
</Target>
|
||||||
-->
|
-->
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PostBuildEvent Condition=" '$(Configuration)' == 'Release' ">"mt.exe" -manifest "$(ProjectDir)$(ProjectName).manifest" -outputresource:"$(TargetDir)..\..\bin\Release\$(TargetFileName)";#1</PostBuildEvent>
|
<PostBuildEvent Condition=" '$(Configuration)' == 'Release' ">"mt.exe" -nologo -manifest "$(ProjectDir)$(ProjectName).manifest" -outputresource:"$(TargetDir)..\..\bin\Release\$(TargetFileName)";#1</PostBuildEvent>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
@ -72,6 +72,6 @@
|
|||||||
</Target>
|
</Target>
|
||||||
-->
|
-->
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PostBuildEvent Condition=" '$(Configuration)' == 'Release' ">"mt.exe" -manifest "$(ProjectDir)$(ProjectName).manifest" -outputresource:"$(TargetDir)..\..\bin\Release\$(TargetFileName)";#1</PostBuildEvent>
|
<PostBuildEvent Condition=" '$(Configuration)' == 'Release' ">mt.exe -nologo -manifest "$(ProjectDir)$(ProjectName).manifest" -outputresource:"$(TargetDir)..\..\bin\Release\$(TargetFileName)";#1</PostBuildEvent>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
Loading…
Reference in New Issue
Block a user