Loading Jenkinsfile +2 −1 Original line number Diff line number Diff line Loading @@ -24,11 +24,12 @@ pipeline { docker.image('mysql').withRun('-e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=mentorarc -e MYSQL_USER=mentorarc -e MYSQL_PASSWORD=mentorarc') { c -> docker.image('mysql').inside("--link ${c.id}:db") { /* Wait until mysql service is up */ sh 'while ! mysqladmin ping -hdb; do sleep 1; done' sh 'while ! mysqladmin ping -hdb --silent; do sleep 1; done' } docker.image('maven:3-alpine').inside("--link ${c.id}:db") { /* Wait until mysql service is up */ sh 'mv src/main/resources/application.properties.production src/main/resources/application.properties' sh 'mvn test' } Loading src/main/resources/application.properties +10 −1 Original line number Diff line number Diff line spring.jpa.hibernate.ddl-auto=update spring.datasource.url=jdbc:mysql://localhost:3306/mentorarc spring.datasource.username=root spring.datasource.password= spring.jpa.properties.hibernate.show_sql=true spring.jpa.properties.hibernate.use_sql_comments=true spring.jpa.properties.hibernate.format_sql=true spring.jpa.properties.hibernate.type=trace spring.jpa.show-sql=true server.port=8181 No newline at end of file src/main/resources/application.properties.production 0 → 100644 +10 −0 Original line number Diff line number Diff line spring.jpa.hibernate.ddl-auto=update spring.datasource.url=jdbc:mysql://db:3306/mentorarc spring.datasource.username=mentorarc spring.datasource.password=mentorarc spring.jpa.properties.hibernate.show_sql=true spring.jpa.properties.hibernate.use_sql_comments=true spring.jpa.properties.hibernate.format_sql=true spring.jpa.properties.hibernate.type=trace spring.jpa.show-sql=true server.port=8181 No newline at end of file Loading
Jenkinsfile +2 −1 Original line number Diff line number Diff line Loading @@ -24,11 +24,12 @@ pipeline { docker.image('mysql').withRun('-e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=mentorarc -e MYSQL_USER=mentorarc -e MYSQL_PASSWORD=mentorarc') { c -> docker.image('mysql').inside("--link ${c.id}:db") { /* Wait until mysql service is up */ sh 'while ! mysqladmin ping -hdb; do sleep 1; done' sh 'while ! mysqladmin ping -hdb --silent; do sleep 1; done' } docker.image('maven:3-alpine').inside("--link ${c.id}:db") { /* Wait until mysql service is up */ sh 'mv src/main/resources/application.properties.production src/main/resources/application.properties' sh 'mvn test' } Loading
src/main/resources/application.properties +10 −1 Original line number Diff line number Diff line spring.jpa.hibernate.ddl-auto=update spring.datasource.url=jdbc:mysql://localhost:3306/mentorarc spring.datasource.username=root spring.datasource.password= spring.jpa.properties.hibernate.show_sql=true spring.jpa.properties.hibernate.use_sql_comments=true spring.jpa.properties.hibernate.format_sql=true spring.jpa.properties.hibernate.type=trace spring.jpa.show-sql=true server.port=8181 No newline at end of file
src/main/resources/application.properties.production 0 → 100644 +10 −0 Original line number Diff line number Diff line spring.jpa.hibernate.ddl-auto=update spring.datasource.url=jdbc:mysql://db:3306/mentorarc spring.datasource.username=mentorarc spring.datasource.password=mentorarc spring.jpa.properties.hibernate.show_sql=true spring.jpa.properties.hibernate.use_sql_comments=true spring.jpa.properties.hibernate.format_sql=true spring.jpa.properties.hibernate.type=trace spring.jpa.show-sql=true server.port=8181 No newline at end of file