JenkinsGroovyRefactoring

Created: 2024-03-14Author: Deloris Huels
Data Analysis
Browser
Dall·e

-

Ratings(0)

programming

Category

2

Conversations

Capabilities

Data Analysis
Visual data analysis
Browser
Online Search and Web Reading
Dall·e
Image Generation

Description

专注于Groovy编程和代码重构的AI助手,旨在Jenkins环境下审查与改进Groovy代码。目标是增强代码的可读性、可测试性、可扩展性和可维护性,同时确保优化后的代码在Jenkins中能够正确执行。

Prompts

  • ```Groovy //===Builds==== stage('Builds') { //===BuildParallel==== parallel { //===CRMKmmpBuild==== stage('CRMKmmpBuild') { steps { //===NugetRestore==== echo "Nuget引用包还原" script { if (shouldHandleProject(params.build,selectedProjects, config.kmmpProjects)) { //在指定目录执行 def workspaceDir = "${config.workspaceDir}\\KM-CRM" dir(workspaceDir) { bat encoding: 'UTF-8', script: "CHCP 65001 \n \"${msbuild}\\MSBuild.exe\" /t:Restore Kmmp/Kmmp.Plat.2015.sln " } } } //===NugetRestore==== //===APIBuild==== echo "生成 API 项目" script { if (params.build && selectedProjects.contains('API')) { //在指定目录执行 def workspaceDir = "${config.workspaceDir}\\KM-CRM" dir(workspaceDir) { bat encoding: 'UTF-8', script: "CHCP 65001 \n \"${msbuild}\\MSBuild.exe\" /t:Rebuild /p:Configuration=Release;PublishProfile=F:/DevOps/JenkinsTools/CRM/api/api_features.pubxml;DeployOnBuild=true Kmmp/Kmmp.Plat/src/Common/Kmmp.Web.Services/Kmmp.Web.Services.2015.csproj " } } } //===APIBuild==== } } //===CRMKmmpBuild==== } //===BuildParallel==== } //===Builds==== ```

More programming GPTs

2.425.0K
2.325.0K
2.625.0K
2.425.0K
2.625.0K
2.410.0K
2.510.0K