Skip to content

Commit

Permalink
PBM. Run tests using release tag in testing repo (#3073)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandraromanchenko authored Dec 18, 2024
1 parent 279f86c commit bad018e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions pbm/pbm-functional-tests.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,11 @@ pipeline {
fi
sudo chmod +x /usr/local/bin/docker-compose
fi
"""
git poll: false, branch: params.TESTING_BRANCH, url: 'https://github.com/Percona-QA/psmdb-testing.git'
sh """
git clone https://github.com/Percona-QA/psmdb-testing
cd psmdb-testing
git checkout ${params.TESTING_BRANCH}
cd pbm-functional/pytest
docker-compose build
docker-compose up -d
Expand Down
2 changes: 1 addition & 1 deletion psmdb/psmdb-docker-arm.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ pipeline {
PBM_RELEASE=\$(cd percona-backup-mongodb && git branch -r | grep release | sed 's|origin/||' | sort --version-sort | tail -1)
echo \$PBM_RELEASE
""").trim()
build job: 'pbm-functional-tests', propagate: false, wait: false, parameters: [string(name: 'PBM_BRANCH', value: pbm_branch ), string(name: 'PSMDB', value: psmdb_image ), string(name: 'instance', value: 'docker-64gb-aarch64')]
build job: 'pbm-functional-tests', propagate: false, wait: false, parameters: [string(name: 'PBM_BRANCH', value: pbm_branch ), string(name: 'PSMDB', value: psmdb_image ), string(name: 'instance', value: 'docker-64gb-aarch64'), string(name: 'TESTING_BRANCH', value: "pbm-${pbm_branch}")]
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion psmdb/psmdb-docker.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ pipeline {
PBM_RELEASE=\$(cd percona-backup-mongodb && git branch -r | grep release | sed 's|origin/||' | sort --version-sort | tail -1)
echo \$PBM_RELEASE
""").trim()
build job: 'pbm-functional-tests', propagate: false, wait: false, parameters: [string(name: 'PBM_BRANCH', value: pbm_branch ), string(name: 'PSMDB', value: psmdb_image )]
build job: 'pbm-functional-tests', propagate: false, wait: false, parameters: [string(name: 'PBM_BRANCH', value: pbm_branch ), string(name: 'PSMDB', value: psmdb_image ), string(name: 'TESTING_BRANCH', value: "pbm-${pbm_branch}")]
}
}
}
Expand Down

0 comments on commit bad018e

Please sign in to comment.