File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -33,15 +33,15 @@ def transformIntoStep(arch, wspwd) {
3333 PARAMS=create_nightly
3434 elif [ "${ env.BRANCH_NAME} " == "stable" ] ; then
3535 PARAMS=create_stable
36- COMMANDS='&& rm -f build_version_defines.h.force && make updateversion && sed -i -e "s/WINDOW_VERSION \\\" [0-9]*\\\" /WINDOW_VERSION \\\"\$ (cat ../.stable-version)\\\" /g" build_version_defines.h && touch build_version_defines.h.force'
36+ COMMANDS='&& rm -f build_version_defines.h.force && make updateversion && sed -i -e "s/WINDOW_VERSION \\\" [0-9]*\\\" /WINDOW_VERSION \\\"\$ (cat ../.stable-version)\\\" /g" build_version_defines.h && touch build_version_defines.h.force && cat build_version_defines.h '
3737 fi
3838 docker run --rm -u jenkins -v \$ (pwd):/workdir \
3939 -v ~/.ssh:/home/jenkins/.ssh \
4040 -v ~/.ccache:/workdir/.ccache \
4141 \$ VOLUMES \
4242 --name "${ env.BUILD_TAG} -${ arch} " \
4343 git.ra-doersch.de:5005/rttr/docker-precise:master -c \
44- "cd build && ./cmake.sh --prefix=. \$ BARCH -DENABLE_WERROR =ON -DRTTR_USE_STATIC_BOOST=ON -DRTTR_PREFIX= \$ COMMANDS && make \$ PARAMS"
44+ "cd build && ./cmake.sh --prefix=. \$ BARCH -DRTTR_ENABLE_WERROR =ON -DRTTR_USE_STATIC_BOOST=ON -DRTTR_PREFIX= \$ COMMANDS && make \$ PARAMS"
4545 EXIT=\$ ?
4646 echo "Exiting with error code \$ EXIT"
4747 exit \$ EXIT
Original file line number Diff line number Diff line change @@ -93,8 +93,16 @@ echo "Current version is: $VERSION-$REVISION"
9393echo " Savegame version: $SAVEGAMEVERSION "
9494
9595unpackedPath=$ARCHNEWDIR /unpacked/s25rttr_$VERSION
96+
97+ # save build version
98+ cp -v build_version_defines.h build_version_defines.h.bak
99+
96100# Install into this folder
97101cmake . -DCMAKE_INSTALL_PREFIX=" ${unpackedPath} " || error
102+
103+ # restore build version, so that it stays definitly the same
104+ cp -v build_version_defines.h.bak build_version_defines.h
105+
98106make install || error
99107DESTDIR=" ${unpackedPath} " ./prepareRelease.sh
100108if [ ! $? = 0 ]; then
You can’t perform that action at this time.
0 commit comments