Skip to content

Commit f9d2941

Browse files
committed
parameter for copy-and-build, now a single file
1 parent 634c392 commit f9d2941

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.azure-pipelines/buildAndPackage.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ stages:
5151
steps:
5252
- template: templates/download-artifacts.yml
5353
- template: templates/secure-files.yml
54-
- template: templates/meven-preview/copy-and-build.yml
54+
- template: templates/copy-and-build.yml
55+
parameters:
56+
task: 'publishSnapshotPublicationToSonatypeSnapshotRepository'
5557
- template: templates/alert-failure.yml
5658

5759
- stage: Maven-Release-And-Github-Release
@@ -69,7 +71,9 @@ stages:
6971
- template: templates/secure-files.yml
7072
parameters:
7173
stageID: 'release'
72-
- template: templates/meven-release/copy-and-build.yml
74+
- template: templates/copy-and-build.yml
75+
parameters:
76+
task: 'publishMavenCentralReleasePublicationToSonatypeRepository'
7377
- template: templates/alert-failure.yml
7478

7579
- deployment: Github-Release

.azure-pipelines/templates/maven-preview/copy-and-build.yml renamed to .azure-pipelines/templates/copy-and-build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
parameters:
2+
- name: task
3+
type: string
4+
default: ''
5+
16
steps:
27
- task: CopyFiles@2
38
inputs:
@@ -10,7 +15,7 @@ steps:
1015
gradleWrapperFile: '$(DROP_PATH)/gradlew'
1116
workingDirectory: '$(DROP_PATH)'
1217
options: '-x jar -x javadoc -x javadocJar -x compileJava -x processResources -x classes -x sourceJar'
13-
tasks: 'publishSnapshotPublicationToSonatypeSnapshotRepository'
18+
tasks: ${{ parameters.task }}
1419
publishJUnitResults: true
1520
testResultsFiles: '**/TEST-*.xml'
1621
javaHomeOption: 'JDKVersion'

.azure-pipelines/templates/maven-release/copy-and-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ steps:
33
inputs:
44
SourceFolder: '$(Agent.TempDirectory)'
55
Contents: '**'
6-
TargetFolder: '$(DROP_PATH)'
6+
TargetFolder: '$(DROP_PATH)/'
77

88
- task: Gradle@2
99
inputs:

0 commit comments

Comments
 (0)