From 890cfdb5830a614979409fcab47017f86e08d7c9 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Wed, 12 Jan 2022 10:51:59 +0000 Subject: [PATCH] Increase parameterization of CI pipeline --- ci/parameters.yml | 4 ++-- ci/pipeline.yml | 22 +++++++++++----------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/ci/parameters.yml b/ci/parameters.yml index 26303b32..c882eafb 100644 --- a/ci/parameters.yml +++ b/ci/parameters.yml @@ -1,5 +1,5 @@ -github-repo: "https://github.com/spring-projects/spring-restdocs.git" -github-repo-name: "spring-projects/spring-restdocs" +github-organization: "spring-projects" +github-repository: "spring-restdocs" docker-hub-organization: "springci" artifactory-server: "https://repo.spring.io" branch: "2.0.x" diff --git a/ci/pipeline.yml b/ci/pipeline.yml index 18f91b58..8ac8fff4 100644 --- a/ci/pipeline.yml +++ b/ci/pipeline.yml @@ -1,6 +1,6 @@ anchors: git-repo-resource-source: &git-repo-resource-source - uri: ((github-repo)) + uri: "https://github.com/((github-organization))/((github-repository)).git" username: ((github-username)) password: ((github-password)) branch: ((branch)) @@ -16,8 +16,8 @@ anchors: DOCKER_HUB_USERNAME: ((docker-hub-username)) DOCKER_HUB_PASSWORD: ((docker-hub-password)) github-task-params: &github-task-params - GITHUB_REPO: spring-restdocs - GITHUB_ORGANIZATION: spring-projects + GITHUB_REPO: ((github-repository)) + GITHUB_ORGANIZATION: ((github-organization)) GITHUB_PASSWORD: ((github-ci-release-token)) GITHUB_USERNAME: ((github-username)) MILESTONE: ((milestone)) @@ -109,15 +109,15 @@ resources: icon: source-pull source: access_token: ((github-ci-pull-request-token)) - repository: ((github-repo-name)) + repository: ((github-organization))/((github-repository)) base_branch: ((branch)) ignore_paths: ["ci/*"] - name: github-pre-release type: github-release icon: briefcase-download-outline source: - owner: spring-projects - repository: spring-restdocs + owner: ((github-organization)) + repository: ((github-repository)) access_token: ((github-ci-release-token)) pre_release: true release: false @@ -125,15 +125,15 @@ resources: type: github-release icon: briefcase-download source: - owner: spring-projects - repository: spring-restdocs + owner: ((github-organization)) + repository: ((github-repository)) access_token: ((github-ci-release-token)) pre_release: false - name: ci-images-git-repo type: git icon: github source: - uri: ((github-repo)) + uri: https://github.com/((github-organization))/((github-repository)).git branch: ((branch)) paths: ["ci/images/*"] - name: ci-image @@ -141,7 +141,7 @@ resources: icon: docker source: <<: *registry-image-resource-source - repository: ((docker-hub-organization))/spring-restdocs-ci + repository: ((docker-hub-organization))/((github-repository))-ci - name: artifactory-repo type: artifactory-resource icon: package-variant @@ -154,7 +154,7 @@ resources: type: github-status-resource icon: eye-check-outline source: - repository: ((github-repo-name)) + repository: ((github-organization))/((github-repository)) access_token: ((github-ci-status-token)) branch: ((branch)) context: build