jenkinsfile fix
Some checks are pending
gestemps/comptaplanapp/pipeline/head Build queued...

This commit is contained in:
cghislai 2021-11-27 17:53:53 +01:00
parent 12eba45ff1
commit 3816a01fdf

12
Jenkinsfile vendored
View File

@ -7,9 +7,9 @@ pipeline {
buildDiscarder(logRotator(numToKeepStr: '10')) buildDiscarder(logRotator(numToKeepStr: '10'))
} }
parameters { parameters {
string(name: 'APP_TITLE', defaultValue: 'Embedded Webview', description: 'Application title') string(name: 'APP_TITLE', defaultValue: 'My Comptaplan', description: 'Application title')
string(name: 'APP_URI', defaultValue: 'https://www.charlyghislain.com', description: 'Application uri') string(name: 'APP_URI', defaultValue: 'https://my.comptaplan.be', description: 'Application uri')
string(name: 'APP_COLOR', defaultValue: 'red', description: 'Application color (blue, teal, ...)') string(name: 'APP_COLOR', defaultValue: 'blue', description: 'Application color (blue, teal, ...)')
string(name: 'BUILD_MODE', defaultValue: 'debug', description: 'Flutter build mode (debug/release)') string(name: 'BUILD_MODE', defaultValue: 'debug', description: 'Flutter build mode (debug/release)')
string(name: 'UPLOAD_TRACK', defaultValue: 'alpha', description: 'Upload track') string(name: 'UPLOAD_TRACK', defaultValue: 'alpha', description: 'Upload track')
string(name: 'RELEASE_MESSAGE', defaultValue: 'Nouvelle version', description: 'A release message') string(name: 'RELEASE_MESSAGE', defaultValue: 'Nouvelle version', description: 'A release message')
@ -63,12 +63,12 @@ pipeline {
sh ''' sh '''
VERSION_CODE=$(./tools/jenkins-increment-buildnumber.sh || echo $?) VERSION_CODE=$(./tools/jenkins-increment-buildnumber.sh || echo $?)
[ "$VERSION_CODE" == "0" ] && exit 1 [ "$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 config user.name "Jenkins release"
git add pubspec.yaml 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/comptaplan_app.git"
git commit -m "Bump to build $VERSION_CODE" 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 git push ssh HEAD:$GIT_PUSH_BRANCH
if [ "$SKIP_PUSH_TAG" != "true" ] ; then if [ "$SKIP_PUSH_TAG" != "true" ] ; then
git tag "$GIT_TAG" git tag "$GIT_TAG"