Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions azure-pipelines-rpi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ pr:
- rpi-6.6.y
- rpi-6.12.y

resources:
repositories:
- repository: wiki-scripts
type: github
name: analogdevicesinc/wiki-scripts
endpoint: analogdevicesinc

stages:
- stage: Builds
jobs:
Expand Down Expand Up @@ -119,3 +126,24 @@ stages:
ARTIFACTORY_PATH: $(PATH)
ARTIFACTORY_TOKEN: $(TOKEN)
displayName: "Push to Artifactory"

- job: Push_to_Cloudsmith
condition: succeeded()
pool:
name: Default
demands:
- agent.name -equals linux-rpi
steps:
- checkout: self
fetchDepth: 1
clean: true
- checkout: wiki-scripts
fetchDepth: 1
clean: true
- task: DownloadPipelineArtifact@2
inputs:
path: $(Build.SourcesDirectory)/bin
- bash: $(Build.SourcesDirectory)/linux/ci/travis/prepare_artifacts_rpi.sh cloudsmith
env:
CLOUDSMITH_API_KEY: $(CLOUDSMITH_API_KEY)
displayName: "Push to Cloudsmith"
21 changes: 21 additions & 0 deletions ci/travis/prepare_artifacts_rpi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,25 @@ artifacts_swdownloads() {
-i ${KEY_FILE} -r rpi_archives_properties.txt ${DEST_SERVER}/${BUILD_SOURCEBRANCHNAME}
}

#upload artifacts to Cloudsmith
artifacts_cloudsmith() {
artifacts_structure
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe consider adding set -e?

cd ${SOURCE_DIRECTORY}/${timestamp}
mv ./32bit/rpi_modules_32bit.tar.gz ./
mv ./64bit/rpi_modules_64bit.tar.gz ./
tar -C ${PWD}/32bit -czvf rpi_latest_boot_32bit.tar.gz .
tar -C ${PWD}/64bit -czvf rpi_latest_boot_64bit.tar.gz .
rm -r ./32bit
rm -r ./64bit
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: new line here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regarding the duplicated work, we want to keep the azure pipeline until we ensure that the github action ones export also the current structure that we use in the boot partition for Kuiper. This applies also for the main linux build, not just rpi one.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, can you still update the PT based on comments?


python3 ${BUILD_SOURCESDIRECTORY}/wiki-scripts/utils/cloudsmith_utils/upload_to_cloudsmith.py \
--repo="sdg-linux-rpi" \
--version="linux_rpi/${BUILD_SOURCEBRANCHNAME}/${timestamp}/" \
--local_path="${SOURCE_DIRECTORY}/${timestamp}" \
--tags="git_sha-${GIT_SHA};timestamp_${timestamp}" \
--token="${CLOUDSMITH_API_KEY}" \
--log_file="upload_to_cloudsmith.log" \
--no_rel_path
}

artifacts_${1}