搜索Gradle插件

版本 0.10.1(最新版)

0.10.1

创建于 2019年7月30日。

配置并设置Gradle项目以开发和测试Jenkins Pipeline共享库(https://jenkins.io/doc/book/pipeline/shared-libraries/)

使用plugins DSL

plugins {
  id("com.mkobit.jenkins.pipelines.shared-library") version "0.10.1"
}

使用旧插件应用

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org.cn/m2/")
    }
  }
  dependencies {
    classpath("com.mkobit.jenkins.pipelines:jenkins-pipeline-shared-libraries-gradle-plugin:0.10.1")
  }
}

apply(plugin = "com.mkobit.jenkins.pipelines.shared-library")

使用plugins DSL

plugins {
  id "com.mkobit.jenkins.pipelines.shared-library" version "0.10.1"
}

使用旧插件应用

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org.cn/m2/"
    }
  }
  dependencies {
    classpath "com.mkobit.jenkins.pipelines:jenkins-pipeline-shared-libraries-gradle-plugin:0.10.1"
  }
}

apply plugin: "com.mkobit.jenkins.pipelines.shared-library"

了解如何将插件应用于子项目