Reputation: 1
i am working on a gatling project. i need to configure gatling on jenkins to run read tests from different repositories.
by examples:
I have 2 projects on git, project A and project B which contain performance tests.
i want to create a gatling project to configure on the jenkins pipeline to read the performance tests which are on repository A and B
Upvotes: -1
Views: 156
Reputation: 2545
I think it should look something like this:
node {
stages {
stage ('repo A run') {
git url: 'https://github.com/org/repoA'
withMaven {
sh "mvn gatling:test -Dgatling.simulationClass=..."
}
}
stage ('repo B run') {
git url: 'https://github.com/org/repoB'
withMaven {
sh "mvn gatling:test -Dgatling.simulationClass=..."
}
}
}
}
Upvotes: 1