credential-id: 'nordix-cicd-arm-credentials'
username: NORDIX_ARM_USERNAME
password: NORDIX_ARM_TOKEN
+ - ssh-agent-credentials:
+ users:
+ - 'nordixinfra-lfn-gerrit-ssh'
- mask-passwords
- pre-scm-buildstep:
failOnError: true
set -o nounset
set -o pipefail
+DPKG_LOCK="/var/lib/dpkg/lock-frontend"
+# Wait for other apt process to finish by checking the dpkg lock file.
+try=0
+while sudo lsof ${DPKG_LOCK} > /dev/null 2>&1 ; do
+ echo "DPKG file locked: ${DPKG_LOCK}."
+ echo " Waiting for another pkg instalaltion process to finish ..."
+ sleep 10
+ if [[ ${try} -gt 60 ]] ; then
+ echo "ERROR: Max number of re-tries reached, exiting..."
+ exit 1
+ fi
+ try=$((try + 1))
+done
+
sudo apt install -y -q=3 python3-minimal python3-pip virtualenv
# workaround for https://github.com/pypa/virtualenv/issues/1029
cd "infra/jenkins/slave-setup/${TARGET}/"
packer validate *-ubuntu*.json
packer build *-ubuntu*.json
-echo "----------------------------------------------------"
\ No newline at end of file
+echo "----------------------------------------------------"
description: 'Project github repo name'
- string:
name: ghprbActualCommit
- default: 'master'
+ default: 'main'
description: 'CI Repo branch for triggering manual build'
- string:
name: ghprbAuthorRepoGitUrl
description: 'CI Repo URL for triggering manual build'
- string:
name: ghprbTargetBranch
- default: 'master'
+ default: 'main'
description: 'Target branch of the PR'
- string:
name: IMAGE_OS