Kaynağa Gözat

Better bamboo detection (use BAMBOO_ISNTALL env var rather than requiring a custom env var IS_BAMBOO)

DoReports.sh will now symlink build and reports from the main checkout to its current dir on startup so that bamboo can find the results


git-svn-id: http://svn.dmdirc.com/trunk@3942 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Shane Mc Cormack 16 yıl önce
ebeveyn
işleme
12d15bdcf6
2 değiştirilmiş dosya ile 12 ekleme ve 1 silme
  1. 1
    1
      BuildAll.sh
  2. 11
    0
      DoReports.sh

+ 1
- 1
BuildAll.sh Dosyayı Görüntüle

80
 
80
 
81
 PHP=`which php`
81
 PHP=`which php`
82
 
82
 
83
-if [ "${IS_BAMBOO}" != "" -a -e "${BAMBOO}" ]; then
83
+if [ "${BAMBOO_INSTALL}" != "" -a -e "${BAMBOO}" ]; then
84
 	export BAMBOO_DIR=${BAMBOO};
84
 	export BAMBOO_DIR=${BAMBOO};
85
 	export BAMBOO_BUILD=`ls -1 ${BAMBOO} | tail -n 1 | awk -F. '{print $1}'`
85
 	export BAMBOO_BUILD=`ls -1 ${BAMBOO} | tail -n 1 | awk -F. '{print $1}'`
86
 	echo "This is Bamboo Build: "${BAMBOO_BUILD};
86
 	echo "This is Bamboo Build: "${BAMBOO_BUILD};

+ 11
- 0
DoReports.sh Dosyayı Görüntüle

19
 # Increase the memory allowed to be used when running stuff
19
 # Increase the memory allowed to be used when running stuff
20
 export ANT_OPTS=-Xmx512m
20
 export ANT_OPTS=-Xmx512m
21
 
21
 
22
+if [ "${BAMBOO_INSTALL}" != "" ]; then
23
+	# Running as bamboo, symlink/create needed things to let it find the results
24
+	# of the build
25
+	if [ ! -e ${PWD}/reports ]; then
26
+		ln -s ${MYDIR}/reports
27
+	fi;
28
+	if [ ! -e ${PWD}/build ]; then
29
+		ln -s ${MYDIR}/build
30
+	fi;
31
+fi;
32
+
22
 #/bin/sh $MYDIR/oblong.sh "Reports" "Style Report Generation Started";
33
 #/bin/sh $MYDIR/oblong.sh "Reports" "Style Report Generation Started";
23
 cd $MYDIR
34
 cd $MYDIR
24
 $SVN update
35
 $SVN update

Loading…
İptal
Kaydet