Spring Cloud Pipelines 1.0.0.M2 发布

发布 | Marcin Grzejszczak | 2016 年 10 月 26 日 | ...

我谨代表 Spring Cloud 团队宣布 Spring Cloud Pipelines 的新里程碑版本 - 1.0.0.M2。除了修复一些错误之外,它还提供对 Gradle 项目的开箱即用支持。

为了使 Gradle 项目能够开箱即用,我们做出了以下约定俗成的决定:

  • 使用 Gradlew Wrapper

  • 使用自定义的 deploy 任务来部署工件

  • 通过自定义的 smoke 任务在已部署的应用程序上运行冒烟测试

  • 通过自定义的 e2e 任务在已部署的应用程序上运行端到端测试

  • 自定义的 groupId 任务来检索组 ID

  • 自定义的 artifactId 任务来检索工件 ID

  • 自定义的 currentVersion 任务来检索当前版本

  • 自定义的 stubIds 任务来检索应该下载存根的协作者列表

这些任务的示例实现可以在这里找到。我们将在下面粘贴其内容

test {
    description = "Task to run unit and integration tests"
    testLogging {
        exceptionFormat = 'full'
    }
    jvmArgs = systemPropsFromGradle()
    exclude 'smoke/**'
    exclude 'e2e/**'
}

task smoke(type: Test) {
    description = "Task to run smoke tests"
    testLogging {
        exceptionFormat = 'full'
    }
    jvmArgs = systemPropsFromGradle()
    include 'smoke/**'
}

task e2e(type: Test) {
    description = "Task to run end to end tests"
    testLogging {
        exceptionFormat = 'full'
    }
    jvmArgs = systemPropsFromGradle()
    include 'e2e/**'
}

task deploy(dependsOn: 'publish') {
    description = "Abstraction over publishing artifacts to Artifactory / Nexus"
}

task groupId << {
    println projectGroupId
}
groupId.description = "Task to retrieve Group ID"

task artifactId << {
    println projectArtifactId
}
artifactId.description = "Task to retrieve Artifact ID"

task currentVersion << {
    println projectVersion
}
currentVersion.description = "Task to retrieve version"

task stubIds << {
    println stubrunnerIds
}
stubIds.description = "Task to retrieve Stub Runner IDS"

[test, smoke, e2e, deploy, groupId, artifactId, currentVersion, stubIds].each {
    it.group = "Pipeline"
}

private List<String> systemPropsFromGradle() {
    return project.gradle.startParameter.systemPropertiesArgs.entrySet().collect { "-D${it.key}=${it.value}" }
}

与大多数 Spring 项目不同,该项目在任何存储库中都不可用,因为它不是一个库,而是作为一个 github 存储库提供,供您下载并用作创建部署管道的模板。

请查看以下任何链接以获取更多信息或与我们联系

获取 Spring 新闻简报

与 Spring 新闻简报保持联系

订阅

领先一步

VMware 提供培训和认证,以加速您的进步。

了解更多

获取支持

Tanzu Spring 在一个简单的订阅中提供对 OpenJDK™、Spring 和 Apache Tomcat® 的支持和二进制文件。

了解更多

即将举行的活动

查看 Spring 社区中所有即将举行的活动。

查看全部