Skip to content
This repository has been archived by the owner on Sep 3, 2019. It is now read-only.

Déploiement continu : variables Jenkins #24

Open
real34 opened this issue Oct 9, 2017 · 0 comments
Open

Déploiement continu : variables Jenkins #24

real34 opened this issue Oct 9, 2017 · 0 comments

Comments

@real34
Copy link
Contributor

real34 commented Oct 9, 2017

Actuellement la pipeline n'est plus fonctionnelle car Jenkins semble ne plus avoir les variables configurées.
Ce ticket consiste à les remettre en place.

But : la branche master est déployée en production (zoupam.occi.tech), les autres branches sont déployées sur https://zoupam-features.occi.tech/xxxxxx (où xxxxxx est le nom de la branche)

Lorsqu'une branche de feature est déployée, en se rendant sur https://ci.occitech.fr/blue/organizations/jenkins/Zoupam/branches/ on la voit bien et on peut valider la fonctionnalité de la PR

Cf

zoupam/Jenkinsfile

Lines 19 to 32 in 2974f94

node {
if (BRANCH_NAME=='master') {
withCredentials([string(credentialsId: 'DEPLOYMENT_PROD_TARGET_PATH', variable: 'DEPLOYMENT_TARGET_PATH')]) {
echo 'Build project and deploy it live'
sh 'make deploy_prod'
}
} else {
withCredentials([string(credentialsId: 'DEPLOYMENT_FEATURE_TARGET_PATH', variable: 'DEPLOYMENT_TARGET_PATH_BASE')]) {
echo 'Build project and deploy it in a feature branch'
sh 'DEPLOYMENT_TARGET_PATH=$DEPLOYMENT_TARGET_PATH_BASE/${BRANCH_NAME} make deploy_prod'
}
}
}
}

@real34 real34 added this to Prêt in Application Oct 9, 2017
@ghost ghost moved this from Prêt to En cours in Application Oct 11, 2017
@ghost ghost self-assigned this Oct 11, 2017
ghost pushed a commit that referenced this issue Oct 11, 2017
ghost pushed a commit that referenced this issue Oct 11, 2017
ghost pushed a commit that referenced this issue Oct 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Application
En cours
Development

No branches or pull requests

1 participant