Skip to content

How to return values from a CI-independent cake script? #3102

Answered by pascalberger
bergziege asked this question in Q&A
Discussion options

You must be logged in to vote

The problem with environment variables is that they are set for the running process. Every CI system has a slightly different and specific approach to handle this scenario.
What I do in these cases is to write an interface as abstraction layer, with concrete implementations for different CI systems.

Cake.Issues.Recipe is an example for this.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bergziege
Comment options

Answer selected by bergziege
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants