Skip to content

jervis-1.6

Compare
Choose a tag to compare
@samrocketman samrocketman released this 30 Jan 04:47

jervis 1.6 - Nov 10th, 2019

New features:

  • net.gleske.jervis.remotes.GitHubGraphQL has a new method
    getJervisYamlFiles which allows a caller to get multiple Jervis YAML files
    from multiple branches in a single API call. It is overloaded to return a
    list of files in each branch as well.

Pipeline DSL scripts changes in the vars/ folder:

  • New pipeline step isBuilding() which provides a versatile conditional which
    allows a Jenkins pipeline user to filter the type of build that the current
    runtime is. e.g. Cron build, PR build, tag build, branch build... It supports
    checking tags and branches against a filter (literal or regex) so that it
    matches only tags and branches which have a specific name. See the header
    comment in vars/isBuilding.groovy which has
    documentation and examples for how to use the step.

Job DSL scripts changes in the jobs/ folder:

  • Lots of code cleanup. Generating jobs just got a lot simpler! With the
    release of the scm-filter-jervis plugin we can now rely on on-the-fly branch
    detection. So we can generate jobs without pre-populating the repository with
    YAML. Rather than exhaustively listing everything that was deleted please
    review this git diff of code cleanup.

Other notes

  • For tests, net.gleske.jervis.remotes.StaticMocking now supports mocking
    GraphQL and can render a different response depending on the query passed to
    the GraphQL mock. See GitHubGraphQLTest.groovy
    for an example of how it is used in tests.
  • For tests, ./gradlew console now includes test classes in its classpath to
    help with debugging net.gleske.jervis.remotes.StaticMocking.

See the full CHANGELOG...

Releases signed with 8D8BF0E242D8A068572EBF3CE8F732347257E65F.