AusweisApp2/resources/jenkins/dsl/Builds/Build_Win32_GNU_MSI.groovy

35 lines
800 B
Groovy

import common.Build
import static common.Constants.strip
def j = new Build
(
name: 'Win32_GNU_MSI',
libraries: 'Win32_GNU',
label: "Windows7_${MERCURIAL_REVISION_BRANCH}",
artifacts: 'build/*.msi'
).generate(this)
j.with
{
steps
{
batchFile(strip("""\
cd build &
cmake ../source -G\"MinGW Makefiles\"
-DCMAKE_PREFIX_PATH=%WORKSPACE%\\libs\\build\\dist
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
-DCMAKE_BUILD_TYPE=release
-DJENKINS_APPCAST=${MERCURIAL_REVISION_BRANCH}_Appcast
-DWIN_SIGN_KEYSTORE=%WIN_SIGN_KEYSTORE%
-DWIN_SIGN_KEYSTORE_PSW=%WIN_SIGN_KEYSTORE_PSW%
-DWIN_SIGN_SUBJECT_NAME=%WIN_SIGN_SUBJECT_NAME%
-DSELFPACKER=true
"""))
batchFile('cd build & mingw32-make %MAKE_FLAGS% package')
batchFile('cd build & mingw32-make package.sign')
}
}