@@ -53,21 +53,12 @@ pipeline {
5353 docker kill \$ (docker ps -a -q) || true
5454 docker rm \$ (docker ps -a -q) || true
5555 docker rmi -f \$ (docker images -q | uniq) || true
56+ docker system prune -f
5657 sudo rm -rf ./*
57-
58- if [ ! -f "/usr/local/bin/docker-compose" ] ; then
59- if [ ${ params.instance} = "docker-aarch64" ]; then
60- sudo curl -SL https://github.com/docker/compose/releases/download/v2.16.0/docker-compose-linux-aarch64 -o /usr/local/bin/docker-compose
61- else
62- sudo curl -SL https://github.com/docker/compose/releases/download/v2.16.0/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
63- fi
64- sudo chmod +x /usr/local/bin/docker-compose
65- fi
66-
6758 git clone https://github.com/Percona-QA/psmdb-testing
6859 cd psmdb-testing
6960 git checkout ${ params.TESTING_BRANCH}
70-
61+ sudo apt install -y docker-compose-plugin
7162 cd pbm-functional/pytest
7263 cp $PBM_AWS_S3_YML ./conf/pbm/aws.yaml
7364 cp $PBM_GCS_S3_YML ./conf/pbm/gcs.yaml
@@ -76,10 +67,11 @@ pipeline {
7667 cp $PBM_MINIO_S3_YML ./conf/pbm/aws_minio.yaml
7768 cp $PBM_OSS_YML ./conf/pbm/oss.yaml
7869 if [ "${ ADD_JENKINS_MARKED_TESTS} " = "true" ]; then JENKINS_FLAG="--jenkins"; else JENKINS_FLAG=""; fi
79- docker-compose build
80- docker-compose up -d
81- KMS_ID="${ KMS_ID} " docker-compose run test pytest -s --junitxml=junit.xml --shard-id=${ SHARD} --num-shards=10 \$ JENKINS_FLAG ${ params.PYTEST_PARAMS} || true
82- docker-compose down -v --remove-orphans
70+ docker compose build easyrsa
71+ docker compose build
72+ docker compose up -d
73+ KMS_ID="${ KMS_ID} " docker compose run test pytest -s --junitxml=junit.xml --shard-id=${ SHARD} --num-shards=10 \$ JENKINS_FLAG ${ params.PYTEST_PARAMS} || true
74+ docker compose down -v --remove-orphans
8375 curl -H "Content-Type:multipart/form-data" -H "Authorization: Bearer ${ ZEPHYR_TOKEN} " -F "file=@junit.xml;type=application/xml" 'https://api.zephyrscale.smartbear.com/v2/automations/executions/junit?projectKey=PBM' -F 'testCycle={"name":"${ JOB_NAME} -${ BUILD_NUMBER} ","customFields": { "PBM branch": "${ PBM_BRANCH} ","PSMDB docker image": "${ PSMDB} ","instance": "${ instance} "}};type=application/json' -i || true
8476 """
8577 }
0 commit comments