jenkinsfile fix

This commit is contained in:
cghislai 2021-11-27 17:53:47 +01:00
parent 202bdab666
commit 53116080e4
2 changed files with 12 additions and 7 deletions

6
Jenkinsfile vendored
View File

@ -63,12 +63,12 @@ pipeline {
sh '''
VERSION_CODE=$(./tools/jenkins-increment-buildnumber.sh || echo $?)
[ "$VERSION_CODE" == "0" ] && exit 1
git config user.email "jenkins@valuya.be"
git config user.email "jenkins@valuya.com"
git config user.name "Jenkins release"
git add pubspec.yaml
git remote add ssh "ssh://git@gitea.fteamdev.valuya.be:2022/fiscalteam/nitro-trustee-mobile.git"
git remote add ssh "ssh://git@gitea.valuya.com:2022/Valuya/embedded_webview.git"
git commit -m "Bump to build $VERSION_CODE"
export GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/var/run/ssh/known_hosts.gitea.fteamdev.valuya.be"
export GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/var/run/ssh/known_hosts.gitea.valuya.com"
git push ssh HEAD:$GIT_PUSH_BRANCH
if [ "$SKIP_PUSH_TAG" != "true" ] ; then
git tag "$GIT_TAG"

View File

@ -49,12 +49,17 @@ android {
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
signingConfig signingConfigs.release
}
}
}