Skip to content

Commit a2cd33b

Browse files
committed
Fix CI
1 parent f7ad5d2 commit a2cd33b

File tree

6 files changed

+22
-22
lines changed

6 files changed

+22
-22
lines changed

ci/pipeline.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ anchors:
1212
build_number: ${BUILD_PIPELINE_NAME}-${BUILD_JOB_NAME}-${BUILD_NAME}
1313
disable_checksum_uploads: true
1414
threads: 8
15+
sonatype-task-params: &sonatype-task-params
16+
SONATYPE_USERNAME: ((sonatype-username))
17+
SONATYPE_PASSWORD: ((sonatype-password))
18+
SONATYPE_URL: ((sonatype-url))
19+
SONATYPE_STAGING_PROFILE_ID: ((sonatype-staging-profile-id))
20+
artifactory-task-params: &artifactory-task-params
21+
ARTIFACTORY_SERVER: ((artifactory-server))
22+
ARTIFACTORY_USERNAME: ((artifactory-username))
23+
ARTIFACTORY_PASSWORD: ((artifactory-password))
1524
resource_types:
1625
- name: artifactory-resource
1726
type: registry-image
@@ -85,6 +94,8 @@ jobs:
8594
- task: build-ci-image
8695
privileged: true
8796
file: git-repo/ci/tasks/build-ci-image.yml
97+
params:
98+
DOCKER_HUB_AUTH: ((docker-hub-auth))
8899
output_mapping:
89100
image: ci-image
90101
- put: ci-image
@@ -208,10 +219,13 @@ jobs:
208219
file: git-repo/ci/tasks/promote.yml
209220
params:
210221
RELEASE_TYPE: M
222+
<<: *artifactory-task-params
211223
- task: generate-changelog
212224
file: git-repo/ci/tasks/generate-changelog.yml
213225
params:
214226
RELEASE_TYPE: M
227+
GITHUB_USERNAME: ((github-username))
228+
GITHUB_TOKEN: ((github-ci-release-token))
215229
- put: github-pre-release
216230
params:
217231
name: generated-changelog/tag
@@ -234,6 +248,7 @@ jobs:
234248
file: git-repo/ci/tasks/promote.yml
235249
params:
236250
RELEASE_TYPE: RC
251+
<<: *artifactory-task-params
237252
- task: generate-changelog
238253
file: git-repo/ci/tasks/generate-changelog.yml
239254
params:
@@ -260,8 +275,8 @@ jobs:
260275
file: git-repo/ci/tasks/promote.yml
261276
params:
262277
RELEASE_TYPE: RELEASE
263-
SONATYPE_USER_TOKEN: ((sonatype-username))
264-
SONATYPE_PASSWORD_TOKEN: ((sonatype-password))
278+
<<: *artifactory-task-params
279+
<<: *sonatype-task-params
265280
- name: create-github-release
266281
serial: true
267282
plan:
@@ -276,7 +291,7 @@ jobs:
276291
- task: generate-changelog
277292
file: git-repo/ci/tasks/generate-changelog.yml
278293
params:
279-
RELEASE_TYPE: "RELEASE"
294+
RELEASE_TYPE: RELEASE
280295
- put: github-release
281296
params:
282297
name: generated-changelog/tag
@@ -296,6 +311,9 @@ jobs:
296311
- task: publish-eclipse-update-site
297312
image: ci-image
298313
file: git-repo/ci/tasks/publish-eclipse-update-site.yml
314+
params:
315+
ARTIFACTORY_USERNAME: ((artifactory-username))
316+
ARTIFACTORY_PASSWORD: ((artifactory-password))
299317
groups:
300318
- name: builds
301319
jobs: [build]

ci/tasks/build-ci-image.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ caches:
1313
params:
1414
CONTEXT: ci-images-git-repo/ci/images
1515
DOCKERFILE: ci-images-git-repo/ci/images/ci-image/Dockerfile
16-
DOCKER_HUB_AUTH: ((docker-hub-auth))
1716
run:
1817
path: /bin/sh
1918
args:

ci/tasks/build-project.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ outputs:
77
caches:
88
- path: maven
99
- path: gradle
10-
params:
11-
BRANCH:
1210
run:
1311
path: bash
1412
args:

ci/tasks/generate-changelog.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,8 @@ image_resource:
77
tag: '0.0.6'
88
inputs:
99
- name: git-repo
10-
- name: version
10+
- name: artifactory-repo
1111
outputs:
1212
- name: generated-changelog
13-
params:
14-
GITHUB_USERNAME: ((github-username))
15-
GITHUB_TOKEN: ((github-ci-release-token))
1613
run:
1714
path: git-repo/ci/scripts/generate-changelog.sh

ci/tasks/promote.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,5 @@ platform: linux
33
inputs:
44
- name: git-repo
55
- name: artifactory-repo
6-
params:
7-
RELEASE_TYPE:
8-
SONATYPE_USER_TOKEN:
9-
SONATYPE_PASSWORD_TOKEN:
10-
SONATYPE_URL: ((sonatype-url))
11-
SONATYPE_STAGING_PROFILE_ID: ((sonatype-staging-profile-id))
12-
ARTIFACTORY_SERVER: ((artifactory-server))
13-
ARTIFACTORY_USERNAME: ((artifactory-username))
14-
ARTIFACTORY_PASSWORD: ((artifactory-password))
156
run:
167
path: git-repo/ci/scripts/promote.sh

ci/tasks/publish-eclipse-update-site.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,5 @@ platform: linux
33
inputs:
44
- name: git-repo
55
- name: artifactory-repo
6-
params:
7-
ARTIFACTORY_USERNAME: ((artifactory-username))
8-
ARTIFACTORY_PASSWORD: ((artifactory-password))
96
run:
107
path: git-repo/ci/scripts/publish-eclipse-update-site.sh

0 commit comments

Comments
 (0)