Jenkins scripts latest state from the server

This commit is contained in:
Damjan Adamic
2016-01-03 16:58:24 +01:00
parent c5e0eb84b8
commit a4e6c90d1d
8 changed files with 23 additions and 19 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
set -e
# make sure we are in the good directory
cd ~opentx/release/
cd ~opentx/release-20/
# release all components
./release-companion.sh
+8 -4
View File
@@ -4,7 +4,7 @@
set -e
# make sure we are in the good directory
cd ~opentx/release/
cd ~opentx/release-20/
# pull the latest changes
./update-repo.sh
@@ -15,17 +15,21 @@ line=`grep "VERSION = " Makefile`
version=`expr "$line" : 'VERSION = \([0-9]\..*\)'`
# create companion rpm
cd ~opentx/release/companion-build/
rm -rf ~opentx/release-20/companion-build/
mkdir -p $_
cd $_
cmake ../opentx/companion/src
make package
cp ./companion-$version-i686.rpm /var/www/html/downloads-20/companion/
make stamp
chmod -Rf g+w . || true
# request companion compilation on Windows
cd /var/www/html/downloads-20/companion/
wget -qO- http://winbox.open-tx.org/companion-builds/compile.php?branch=2.0
wget -qO- http://winbox.open-tx.org/companion-builds/compile20.php?branch=2.0
wget -O companionInstall_$version.exe http://winbox.open-tx.org/companion-builds/companionInstall_$version.exe
mv ~opentx/release/opentx/companion/companion.stamp ./companion-windows.stamp
mv ~opentx/release-20/opentx/companion/companion.stamp ./companion-windows.stamp
chmod -Rf g+w . || true
+2 -2
View File
@@ -4,7 +4,7 @@
set -e
# make sure we are in the good directory
cd ~opentx/release/
cd ~opentx/release-20/
# pull the latest changes
./update-repo.sh
@@ -20,7 +20,7 @@ cd ../../..
tar czf ./opentx.tgz opentx/radio/src opentx/radio/util
# copy the stamp and the release-notes to the http server
cd ~opentx/release/
cd ~opentx/release-20/
cp opentx/radio/src/stamp-opentx.txt /var/www/html/downloads-20/firmware/
cp opentx/radio/releasenotes.txt /var/www/html/downloads-20/firmware/
cp opentx/radio/src/lua_fields.txt /var/www/html/downloads-20/firmware/
+1 -1
View File
@@ -4,7 +4,7 @@
set -e
# make sure we are in the good directory
cd ~opentx/release/
cd ~opentx/release-20/
# pull the latest changes
./update-repo.sh
+1 -1
View File
@@ -4,7 +4,7 @@
set -e
# make sure we are in the good directory
cd ~opentx/release/
cd ~opentx/release-20/
# pull the latest changes
cd opentx