Initializes all possible variables in Continua CI
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
deployment
design/logo
doc/img
lib
src
tools/NuGet
.editorconfig
.gitattributes
.gitignore
AUTHORS
CONTRIBUTORS
GitVersionConfig.yaml
LICENSE
README.md
cake.config
scripts - Build - Debug.bat
scripts - Build - Release.bat
scripts - Clean all.bat
scripts - Restore packages.bat

README.md

ContinuaInit

Join the chat at https://gitter.im/CatenaLogic/ContinuaInit

License NuGet downloads Version Pre-release version Chocolatey count Chocolatey version

ContinuaInit

ContinuaInit initializes several variables in a configuration for you. This console application will automatically integrate with Continua CI and set several variables based on the current context.

This application assumes you are using GitFlow.

One of the things one should always do is to try and mainsteam all the configurations so one knows what is happening for each product. However, then you will end up doing a lot of if/else to determine the state of a build:

ContinuaInit

The advantage of these variables is that one can implement logic inside a configuration based on whether the build is a CI build and whether it is an official build. The goal of ContinuaInit was to replace this whole tree by a single call to an executable that contains rules to determine variables and init them all. This results in a much cleaner initialization.

ContinuaInit

Usage

The usage is simple:

ContinuaInitializer.exe -b [branchname] -v [version] -ci [true|false]

Variables being set

Note that if a variable is not found, Continua CI will ignore them

###PublishType

If the branch is master, the PublishType will be set to Official. Otherwise the PublishType will be set to Nightly.

###IsOfficialBuild

true if the branch master, otherwise false

###IsCiBuild

true if the branch does not equal master, otherwise false

###DisplayVersion

Will be set to the version provided by the command line. Then it will apply one of the following values:

nightly => when nightly build

ci => when CI build

#Extending rules

We do accept pull requests. The rules can be implemented by derriving from RuleBase. Make sure to write unit tests for new rules, then the software will always behave as expected.

#Icon

Flask by Mark Caron from The Noun Project