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

Déploiement continu : variables Jenkins #24

@real34

Description

@real34

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'
}
}
}
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions