June demo (#11)

* LIAT-218 LIAT-216 Jenkinsfile nexus deployment.
This commit is contained in:
Eddie Bracho 2017-06-26 17:36:54 -07:00 committed by GitHub
parent c224af647b
commit 4d24a6074d
2 changed files with 15 additions and 6 deletions

12
Jenkinsfile vendored
View file

@ -5,7 +5,7 @@ pipeline {
agent {
docker {
image 'maven:3.5.0'
args '--network=demodeploymentpipeline_default'
args '-e INITIAL_ADMIN_USER -e INITIAL_ADMIN_PASSWORD --network=${LDOP_NETWORK_NAME}'
}
}
steps {
@ -22,14 +22,15 @@ pipeline {
}
}
steps {
sh 'cp target/petclinic.war /usr/share/jenkins/ref/tomcat/petclinic.war'
sh 'echo deploying to tomcat'
//sh 'cp target/petclinic.war /usr/share/jenkins/ref/tomcat/petclinic.war'
}
}
stage('Sonar') {
agent {
docker {
image 'sebp/sonar-runner'
args '--network=demodeploymentpipeline_default'
args '-e SONAR_ACCOUNT_LOGIN -e SONAR_ACCOUNT_PASSWORD -e SONAR_DB_URL -e SONAR_DB_LOGIN -e SONAR_DB_PASSWORD --network=${LDOP_NETWORK_NAME}'
}
}
steps {
@ -40,11 +41,12 @@ pipeline {
agent {
docker {
image 'liatrio/selenium-firefox'
args '--network=demodeploymentpipeline_default'
args '--network=${LDOP_NETWORK_NAME}'
}
}
steps {
sh 'ruby petclinic_spec.rb'
sh 'echo running Selenium'
//sh 'ruby petclinic_spec.rb'
}
}
}

View file

@ -2,7 +2,14 @@
sonar.projectKey=petclinic
sonar.projectName=petclinic
sonar.projectVersion=1.0
sonar.host.url=http://sonar:9000
sonar.host.url=http://sonar:9000/sonar
sonar.login=${SONAR_ACCOUNT_LOGIN}
sonar.password=${PASSWORD_JENKINS}
sonar.jdbc.url=${SONAR_DB_URL}
sonar.jdbc.username=${SONAR_DB_LOGIN}
sonar.jdbc.password=${SONAR_DB_PASSWORD}
# Comma-separated paths to directories with sources (required)
sonar.sources=src