From 48dfd81eab7a1b3e6a6417b47ec0a5c7bd057de8 Mon Sep 17 00:00:00 2001 From: Pranav dhiran Date: Wed, 17 Jun 2026 14:10:03 +0530 Subject: [PATCH] chore: remove obsolete Azure DevOps CI configuration CI has fully migrated to GitHub Actions (.github/workflows/). The old Azure DevOps pipeline config is dead code. - Delete ci/ directory (6 pipeline files) - Delete root azure-pipelines.yml - Drop ci/azure-pipelines.yml entry from repolint.json (.github/workflows/* already satisfies the OR-list) Closes #790 Signed-off-by: Pranav dhiran --- azure-pipelines.yml | 46 ----------------------------------- ci/azure-pipelines.yml | 44 --------------------------------- ci/check-component.yml | 39 ----------------------------- ci/check-license-and-docs.yml | 10 -------- ci/dashandapi_post.yml | 12 --------- ci/dashandapi_pre.yml | 13 ---------- ci/process-components.yml | 30 ----------------------- repolint.json | 3 +-- 8 files changed, 1 insertion(+), 196 deletions(-) delete mode 100644 azure-pipelines.yml delete mode 100644 ci/azure-pipelines.yml delete mode 100644 ci/check-component.yml delete mode 100644 ci/check-license-and-docs.yml delete mode 100644 ci/dashandapi_post.yml delete mode 100644 ci/dashandapi_pre.yml delete mode 100644 ci/process-components.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index cb5afb707..000000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,46 +0,0 @@ -# Starter pipeline -# Start with a minimal pipeline that you can customize to build and deploy your code. -# Add steps that build, run tests, deploy, and more: -# https://aka.ms/yaml - -trigger: - - main - -pool: - vmImage: "ubuntu-18.04" - -variables: - - group: credentials - -stages: - - stage: PreCheck - displayName: Check license and documents - jobs: - - job: CheckLicenseAndDocs - condition: false - steps: - - template: ci/check-license-and-docs.yml - - - stage: ProcessComponents - displayName: ProcessComponents - condition: false - jobs: - - template: ci/process-components.yml - parameters: - param: - - name: dashandapi - pretest: "dashandapi_pre.yml" - posttest: "dashandapi_post.yml" - images: - - imagename: "hyperledger/cello-api-engine" - dockerfile: "build_image/docker/common/api-engine/Dockerfile.in" - - imagename: "hyperledger/cello-nginx" - dockerfile: "build_image/docker/common/nginx/Dockerfile.in" - - imagename: "hyperledger/cello-dashboard" - dockerfile: "build_image/docker/common/dashboard/Dockerfile.in" -# - name: fabricoperator -# images: -# - imagename: "hyperledger/cello-k8s-operator-agent" -# dockerfile: "src/agent/fabric-operator/agent/Dockerfile" -# - imagename: "hyperledger/cello-k8s-operator-controller" -# dockerfile: "src/agent/fabric-operator/Dockerfile" diff --git a/ci/azure-pipelines.yml b/ci/azure-pipelines.yml deleted file mode 100644 index 39be2edc1..000000000 --- a/ci/azure-pipelines.yml +++ /dev/null @@ -1,44 +0,0 @@ -# Starter pipeline -# Start with a minimal pipeline that you can customize to build and deploy your code. -# Add steps that build, run tests, deploy, and more: -# https://aka.ms/yaml - -trigger: -- master - -pool: - vmImage: 'ubuntu-18.04' - -variables: - - group: credentials - -stages: -- stage: PreCheck - displayName: Check license and documents - jobs: - - job: CheckLicenseAndDocs - steps: - - template: ci/check-license-and-docs.yml - -- stage: ProcessComponents - displayName: ProcessComponents - jobs: - - template: ci/process-components.yml - parameters: - param: - - name: dashandapi - pretest: "dashandapi_pre.yml" - posttest: "dashandapi_post.yml" - images: - - imagename: "hyperledger/cello-api-engine" - dockerfile: "build_image/docker/common/api-engine/Dockerfile.in" - - imagename: "hyperledger/cello-nginx" - dockerfile: "build_image/docker/common/nginx/Dockerfile.in" - - imagename: "hyperledger/cello-dashboard" - dockerfile: "build_image/docker/common/dashboard/Dockerfile.in" -# - name: fabricoperator -# images: -# - imagename: "hyperledger/cello-k8s-operator-agent" -# dockerfile: "src/agent/fabric-operator/agent/Dockerfile" -# - imagename: "hyperledger/cello-k8s-operator-controller" -# dockerfile: "src/agent/fabric-operator/Dockerfile" diff --git a/ci/check-component.yml b/ci/check-component.yml deleted file mode 100644 index 186e10562..000000000 --- a/ci/check-component.yml +++ /dev/null @@ -1,39 +0,0 @@ -# -# SPDX-License-Identifier: Apache-2.0 -# - -steps: - - script: | - echo Checking changes in ${{ parameters.componentName }} - dashandapi=("src/api-engine/" "src/dashboard/" - "build_image/docker/common/") - - allchanges=$(git diff --name-only HEAD HEAD~1) - echo 'changed files in the pull request' - echo "$allchanges" - - hasTopChanges=$(echo "$allchanges" | grep -v '/') - if [ ! -z "$hasTopChanges" ]; then - echo 'Top level changes found, continue!' - echo "##vso[task.setvariable variable=ContinueJob]True" - exit 0 - fi - - comp=${{ parameters.componentName }} - compItems="${comp}[@]" - changesFound='False' - for item in "${!compItems}"; do - if echo "${allchanges}" | grep -q "$item" - then - changesFound='True' - fi - done - - if [ "$changesFound" == 'True' ]; then - echo 'Changes found for the component, continue' - echo "##vso[task.setvariable variable=ContinueJob]True" - else - echo 'No changes found for the component' - echo "##vso[task.setvariable variable=ContinueJob]False" - fi - displayName: "Check changes" diff --git a/ci/check-license-and-docs.yml b/ci/check-license-and-docs.yml deleted file mode 100644 index d386ba175..000000000 --- a/ci/check-license-and-docs.yml +++ /dev/null @@ -1,10 +0,0 @@ -# -# SPDX-License-Identifier: Apache-2.0 -# - -steps: - - script: | - set -eu -o pipefail - make license - find ./docs -type f -name "*.md" -exec egrep -l " +$$" {} \; - displayName: 'License and document checks' diff --git a/ci/dashandapi_post.yml b/ci/dashandapi_post.yml deleted file mode 100644 index 5ad1a0cf2..000000000 --- a/ci/dashandapi_post.yml +++ /dev/null @@ -1,12 +0,0 @@ -# -# SPDX-License-Identifier: Apache-2.0 -# - -steps: -- script: | - MODE=dev make start - sleep 10 - make test-api - MODE=dev make stop - make check-dashboard - displayName: 'Run API and Dashboard tests' diff --git a/ci/dashandapi_pre.yml b/ci/dashandapi_pre.yml deleted file mode 100644 index bcd0cf529..000000000 --- a/ci/dashandapi_pre.yml +++ /dev/null @@ -1,13 +0,0 @@ -# -# SPDX-License-Identifier: Apache-2.0 -# - -steps: - - script: | - set -eu -o pipefail - sudo pip install --upgrade pip - sudo pip install wheel - sudo pip install tox - cd src/api-engine - tox - displayName: 'Run tox' diff --git a/ci/process-components.yml b/ci/process-components.yml deleted file mode 100644 index e6c453d0a..000000000 --- a/ci/process-components.yml +++ /dev/null @@ -1,30 +0,0 @@ -parameters: - param: [] - -jobs: -- ${{ each component in parameters.param }}: - - job: ${{ component.name }} - steps: - - template: check-component.yml - parameters: - componentName: ${{ component.name }} - - ${{ if component.pretest }}: - - ${{ if eq(variables['ContinueJob'], 'True') }}: - - template: ${{ component.pretest }} - - ${{ each image in component.images }}: - - script: | - docker build -t ${{ image.imagename }} -f ${{ image.dockerfile }} . - displayName: Build ${{ image.imagename }} docker image - condition: eq(variables['ContinueJob'], 'True') - - script: docker images - displayName: 'List available images' - condition: eq(variables['ContinueJob'], 'True') - - ${{ if component.posttest }}: - - ${{ if eq(variables['ContinueJob'], 'True') }}: - - template: ${{ component.posttest }} - - ${{ each image in component.images }}: - - script: | - docker login --username $(DockerHub-Username) --password $(DockerHub-Password) - docker push ${{ image.imagename }} - displayName: Publish docker image ${{ image.imagename }} - condition: and(eq(variables['Build.Reason'], 'IndividualCI'), eq(variables['ContinueJob'], 'True')) diff --git a/repolint.json b/repolint.json index 8a9f95f47..f5719b76e 100644 --- a/repolint.json +++ b/repolint.json @@ -32,8 +32,7 @@ ".circleci/config.yml", "Jenkinsfile", ".drone.yml", - ".github/workflows/*", - "ci/azure-pipelines.yml" + ".github/workflows/*" ] } ],