build-ai-yaml: 参数: wrapperScript:gradlew 任务:发布 publishLocation:raas平台
steps:
- task: Gradle@2
displayName: 'gradlew publish'
inputs:
gradleWrapperFile: '$(Parameters.wrapperScript)'
options: '-PvstsGradleAccessToken=$(System.AccessToken)'
tasks: '$(Parameters.tasks)'
- task: CopyFiles@2
displayName: 'Copy Files to: $(build.artifactstagingdirectory)'
inputs:
SourceFolder: '$(system.defaultworkingdirectory)'
Contents: '*/.jar'
TargetFolder: '$(build.artifactstagingdirectory)'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'
publishLocation: '$(Parameters.publishLocation)'
build-pipeline.yaml 触发: 分支机构: 包括: -特征/* -bug / *
paths:
include:
-package/application-insights-library/*
steps:
-template: templates/packages/java/build-ai.yaml
错误是它说:未找到wrapperScript。我已经更改了使用参数,数据类型和所有参数的方式。
需要建立此管道