-
Notifications
You must be signed in to change notification settings - Fork 47
Note
Somkiat Puisungnoen edited this page Aug 9, 2019
·
11 revisions
- https://docs.sonarqube.org/latest/analysis/scan/sonarscanner-for-maven/
- https://docs.sonarqube.org/latest/analysis/analysis-parameters/
- https://github.com/jenkinsci/job-fan-in-plugin
- https://wiki.jenkins.io/display/JENKINS/Join+Plugin
- https://wiki.jenkins.io/display/JENKINS/Publish+Over+SSH+Plugin
- https://wiki.jenkins-ci.org/display/JENKINS/Deploy+Plugin
- https://wiki.jenkins.io/display/JENKINS/Performance+Plugin
- https://wiki.jenkins.io/display/JENKINS/Git+Parameter+Plugin
- https://wiki.jenkins.io/display/JENKINS/Robot+Framework+Plugin
- https://github.com/SeleniumHQ/selenium/wiki/Grid2
- https://www.seleniumeasy.com/selenium-tutorials/configure-selenium-grid-using-json-config-file
- https://github.com/SeleniumHQ/docker-selenium
File node.json
{
"capabilities":
[
{
"browserName": "chrome",
"maxInstances": 20,
"seleniumProtocol": "WebDriver"
}
]
}
Run
$java -jar selenium-server-standalone-4.0.0-alpha-2.jar -role node -hub http://10.10.99.82:4444/grid/register/ -nodeConfig node.json
node {
stage('pull-code') {
git 'https://github.com/up1/workshop-java-web-tdd.git'
}
stage('build') {
sh label: '', script: 'mvnw clean test'
junit 'target/surefire-reports/*.xml'
}
stage('code-coverage') {
sh label: '', script: 'mvnw cobertura:cobertura'
cobertura autoUpdateHealth: false, autoUpdateStability: false, coberturaReportFile: '**/target/site/cobertura/coverage.xml', conditionalCoverageTargets: '70, 0, 0', failUnhealthy: false, failUnstable: false, lineCoverageTargets: '80, 0, 0', maxNumberOfBuilds: 0, methodCoverageTargets: '80, 0, 0', onlyStable: false, sourceEncoding: 'ASCII', zoomCoverageChart: false
}
stage('war') {
sh label: '', script: 'mvnw package -DskipTests'
}
stage('deploy') {
build 'deploy_new'
}
stage('robot') {
parallel Chrome: {
stage ('Chrome'){
}
}, Firefox: {
stage ('Firefox'){
}
}, IE: {
stage ('IE'){
}
}
}
stage('jmeter') {
}
}