Nevercode build version

How can I use the Nevercode build version in my scripts?

Nevercode exports two environment variables that you can use in your build scripts for versioning:

  • NEVERCODE_BUILD,
  • NEVERCODE_BUILD_NUMBER.

NEVERCODE_BUILD is set to true in Nevercode for every build and it indicates that your build is currently running in a CI environment.

NEVERCODE_BUILD_NUMBER environment variable holds the total count of builds (including the ongoing build) for this project in Nevercode. In other words, if you have triggered 10 builds for some project in Nevercode, the next time you build it NEVERCODE_BUILD_NUMBER will be exported as 11.

There are platform specific instructions with example code snippets available:

Nevercode build version

How can I use the Nevercode build version in my scripts?