name.remal.common-ci

Plugin class: name.remal.gradle_plugins.plugins.ci.CommonCIPlugin

plugins {
    id 'name.remal.common-ci' version '1.5.0'
}
plugins {
    id("name.remal.common-ci") version "1.5.0"
}

 

This plugin adds forBuildOnCi and forBuildOnLocal methods to the project.

forBuildOnCI {
    // this code will be executed if current build is executed on a CI server
}
forBuildOnLocal {
    // this code will be executed if current build is NOT executed on a CI server
}

This plugin creates ci extension of type CIExtension

Also, this plugin configures Gradle to show stacktraces if current build is executed on a CI server.

 

name.remal.gradle_plugins.plugins.ci.CIExtension

Property Type Description
pipelineId String? Current build pipeline ID.
buildId String? Current build ID.
stageName String? Current stage name.
jobName String? Current job name.