Skip to content

Support Jenkins CI #313

Closed
Closed
@serra

Description

@serra

See the comment thread in #288.

I'll see if I can get something to work in my environment. I'll open a PR then.

Current implementations write a message to the build output. This message should then be picked up by the build server. In Team City, this concept is called Service Messages.

AFAIK a similar concept is not available in Jenkins CI, which would mean the Jenkins implementation would be conceptually different. Before picking this up, I'll wait for some answers to my post to the Jenkins newsgroup.

Todo

There does not appear to be a similar concept to service message in Jenkins. There are however several Jenkins plugins that add similar functionality to Jenkins, e.g. environment script plugin mentioned in the comments thread. We require use of this (or similar) plugin:

  • select a plugin - Going for EnvInject
    • Evaluate EnvironmentScript. Cannot be used; can only be run from .sh ish shells, which we cannot assume to be present on our .net build slaves IMO
    • Evaluate EnvInject, e.g. from sample here. This one would work.
  • implement /buildserver with tests for Jenkins CI
  • set up jenkins job that runs agains my fork, building the propertiesfile_output branch. Build steps:
    • 1. create gitversion binary
    • 2. run this binary to generate environment variables pipe to gitversion.properties file
    • 3. in the next step verify (by simply printing) the values of the environment variables set
  • Update documentation
  • Open PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions