Skip to content

Commit

Permalink
Removed unnecessary steps in test artifacts (#2843)
Browse files Browse the repository at this point in the history
  • Loading branch information
gapra-msft authored Oct 28, 2024
1 parent aaf35cf commit 7a50237
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 121 deletions.
104 changes: 0 additions & 104 deletions release-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1057,15 +1057,8 @@ stages:
steps:
- checkout: none

- script: |
sudo apt update
sudo apt --fix-broken install
ldd --version
displayName: "GLIBC Version"
- template: setup/test_artifacts.yml
parameters:
go_version: '$(AZCOPY_GOLANG_VERSION)'
artifact_name: 'azCopy-binaries'
download_path: '$(System.DefaultWorkingDirectory)'
item_pattern: 'azCopy-binaries/azcopy_linux*amd64'
Expand Down Expand Up @@ -1110,15 +1103,9 @@ stages:
vmImage: $(vmImage)
steps:
- checkout: none
- script: |
sudo apt update
sudo apt --fix-broken install
ldd --version
displayName: "GLIBC Version"

- template: setup/test_artifacts.yml
parameters:
go_version: '$(AZCOPY_GOLANG_VERSION)'
artifact_name: 'azCopy-linux-signed'
download_path: '$(System.DefaultWorkingDirectory)'
item_pattern: 'azCopy-linux-signed/azcopy_linux_*amd64*.tar.gz'
Expand Down Expand Up @@ -1201,17 +1188,9 @@ stages:
- ImageOverride -equals $(AgentName)
steps:
- checkout: none

- script: |
sudo apt update
sudo apt-get install libsecret-1-dev -y
sudo apt --fix-broken install
ldd --version
displayName: "GLIBC Version"

- template: setup/test_artifacts.yml
parameters:
go_version: '$(AZCOPY_GOLANG_VERSION)'
artifact_name: 'azCopy-linux-signed'
download_path: '$(System.DefaultWorkingDirectory)'
item_pattern: 'azCopy-linux-signed/azcopy_linux_*arm64*.tar.gz'
Expand Down Expand Up @@ -1298,16 +1277,8 @@ stages:
steps:
- checkout: none

- script: |
sudo apt update
sudo apt-get install libsecret-1-dev -y
sudo apt --fix-broken install -y
ldd --version
displayName: "GLIBC Version"
- template: setup/test_artifacts.yml
parameters:
go_version: '$(AZCOPY_GOLANG_VERSION)'
artifact_name: 'azCopy-binaries'
download_path: '$(System.DefaultWorkingDirectory)'
item_pattern: 'azCopy-binaries/azcopy_linux*arm64'
Expand Down Expand Up @@ -1356,19 +1327,8 @@ stages:
steps:
- checkout: none

- script: |
sudo yum update -y
sudo yum install git -y
displayName: 'Install Git'
# get glibc version with which build is done
- script: |
ldd --version
displayName: "GLIBC Version"
- template: setup/test_artifacts.yml
parameters:
go_version: '$(AZCOPY_GOLANG_VERSION)'
artifact_name: 'azCopy-linux-signed'
download_path: '$(System.DefaultWorkingDirectory)'
item_pattern: 'azCopy-linux-signed/azcopy-*arm64.rpm'
Expand Down Expand Up @@ -1403,22 +1363,11 @@ stages:
steps:
- checkout: none

- script: |
sudo yum update -y
sudo yum install git -y
displayName: 'Install Git'
- template: setup/test_artifacts.yml
parameters:
go_version: '$(AZCOPY_GOLANG_VERSION)'
artifact_name: 'azCopy-linux-signed'
download_path: '$(System.DefaultWorkingDirectory)'
item_pattern: 'azCopy-linux-signed/azcopy-*x86_64.rpm'

# get glibc version with which build is done
- script: |
ldd --version
displayName: "GLIBC Version"

- script: |
sudo sed -i '/^failovermethod=/d' /etc/yum.repos.d/*.repo
Expand Down Expand Up @@ -1450,24 +1399,13 @@ stages:

steps:
- checkout: none

- script: |
sudo tdnf update -y
sudo tdnf install git -y
displayName: 'Install dependencies'

- template: setup/test_artifacts.yml
parameters:
go_version: '$(AZCOPY_GOLANG_VERSION)'
artifact_name: 'azCopy-linux-signed'
download_path: '$(System.DefaultWorkingDirectory)'
item_pattern: 'azCopy-linux-signed/mariner/azcopy-*x86_64.rpm'

# get glibc version with which build is done
- script: |
ldd --version
displayName: "GLIBC Version"
- script: |
sudo rpm -qip azcopy*x86_64.rpm
sudo rpm -i azcopy*x86_64.rpm
Expand Down Expand Up @@ -1496,18 +1434,6 @@ stages:
value: '$(System.DefaultWorkingDirectory)/azure-storage-azcopy'

steps:
- task: GoTool@0
env:
GO111MODULE: 'on'
inputs:
version: $(AZCOPY_GOLANG_VERSION)

- script: |
echo 'Running GO Vet'
go vet
displayName: 'Golang Vet - Mac'
workingDirectory: $(System.DefaultWorkingDirectory)
- task: DownloadBuildArtifacts@0
displayName: 'Download Build Artifacts'
inputs:
Expand Down Expand Up @@ -1565,18 +1491,6 @@ stages:
value: '$(System.DefaultWorkingDirectory)'

steps:
- task: GoTool@0
env:
GO111MODULE: 'on'
inputs:
version: $(AZCOPY_GOLANG_VERSION)

- script: |
echo 'Running GO Vet'
go vet
displayName: 'Golang Vet - Windows'
workingDirectory: $(root_dir)
- task: DownloadBuildArtifacts@0
displayName: 'Download Build Artifacts'
inputs:
Expand Down Expand Up @@ -1670,12 +1584,6 @@ stages:
steps:
- checkout: none

- script: |
sudo apt update
sudo apt --fix-broken install
ldd --version
displayName: "GLIBC Version"
- task: DownloadBuildArtifacts@0
displayName: 'Download Build Artifacts'
inputs:
Expand Down Expand Up @@ -1711,18 +1619,6 @@ stages:
value: '$(System.DefaultWorkingDirectory)'

steps:
- task: GoTool@0
env:
GO111MODULE: 'on'
inputs:
version: $(AZCOPY_GOLANG_VERSION)

- script: |
echo 'Running GO Vet'
go vet
displayName: 'Golang Vet - Windows'
workingDirectory: $(root_dir)
- task: DownloadBuildArtifacts@0
displayName: 'Download Build Artifacts'
inputs:
Expand Down
17 changes: 0 additions & 17 deletions setup/test_artifacts.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
parameters:
- name: go_version
type: string
- name: artifact_name
type: string
- name: download_path
Expand All @@ -9,21 +7,6 @@ parameters:
type: string

steps:
- script: |
git clone https://github.com/Azure/azure-storage-azcopy
displayName: 'Checkout Code'
workingDirectory: $(System.DefaultWorkingDirectory)
- script: |
git checkout `echo $(Build.SourceBranch) | cut -d "/" -f 1,2 --complement`
displayName: 'Checkout Branch'
workingDirectory: $(System.DefaultWorkingDirectory)/azure-storage-azcopy
- task: ShellScript@2
inputs:
scriptPath: "$(System.DefaultWorkingDirectory)/azure-storage-azcopy/go_installer.sh"
args: "$(System.DefaultWorkingDirectory)/ ${{ parameters.go_version }}"
displayName: "GoTool Custom Setup"

- task: DownloadBuildArtifacts@0
displayName: 'Download Build Artifacts'
Expand Down

0 comments on commit 7a50237

Please sign in to comment.