Skip to content

Commit

Permalink
FiX for CI, issue with docker id collision
Browse files Browse the repository at this point in the history
  • Loading branch information
B-a-S committed Oct 8, 2024
1 parent e5cb294 commit 32f1647
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .ci/job_matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ steps:
echo "INFO: Start docker containers"
DOCKER_IMAGE_NAME="${UCC_DOCKER_IMAGE_NAME}:${BUILD_ID}"
docker pull ${DOCKER_IMAGE_NAME}
docker create -ti --rm $DOCKER_OPT ${DOCKER_IMAGE_NAME} /bin/bash > ${WORKSPACE}/ucc_docker.id
docker start $(cat ${WORKSPACE}/ucc_docker.id)
docker create -ti --rm $DOCKER_OPT ${DOCKER_IMAGE_NAME} /bin/bash > /tmp/ucc_docker-"${BUILD_TAG}".id
docker start $(cat /tmp/ucc_docker-"${BUILD_TAG}".id)
#============================================================================
- name: Run Coverity
credentialsId: "bc9a18d3-1153-449c-b924-7fc9249c9cc0"
Expand All @@ -85,9 +85,9 @@ steps:
run: |
echo "INFO: Run UCC tests"
hostname
docker exec $(cat ${WORKSPACE}/ucc_docker.id) bash -c "\${SRC_DIR}/ucc/.ci/scripts/run_tests_ucc.sh"
docker exec $(cat /tmp/ucc_docker-"${BUILD_TAG}".id) bash -c "\${SRC_DIR}/ucc/.ci/scripts/run_tests_ucc.sh"
always: |
docker rm --force $(cat ${WORKSPACE}/ucc_docker.id)
docker rm --force $(cat /tmp/ucc_docker-"${BUILD_TAG}".id)
#============================================================================
- name: Run docker containers
agentSelector: "{nodeLabel: 'swx-clx01'}"
Expand Down

0 comments on commit 32f1647

Please sign in to comment.