title: GitLab CI CD runner not loading properties file for profile
body: <p>When I run a command <code>mvn clean test -Dspring.profiles.active=GITLAB-CI-TEST</code> in the GitLab CI CD it not loading properties file <code>application-gitlab-ci-test.properties</code>. It is loading only <code>application.properties</code>. </p>
  
  <p>As file <code>application-gitlab-ci-test.properties</code> contains the different value for <code>spring.datasource.url</code>  the pipeline is failing in the remote runners with error </p>
  
  <pre><code>The last packet sent successfully to the server was 0 milliseconds ago. 
  The driver has not received any packets from the server.
  </code></pre>
  
  <p>Of course, this error is expected as properties file <code>application.properties</code> refers to the localhost database.</p>
  
  <p>Code which loading <code>application-gitlab-ci-test.properties</code>:</p>
  
  <pre class="lang-java prettyprint-override"><code>@Profile("GITLAB-CI-TEST")
  @PropertySource("classpath:application-gitlab-ci-test.properties")
  @Configuration
  public class GitLabCiTestProfile {
  }
  </code></pre>
  
  <p>When I try to run the same command locally it's working as expected and in logs, I see the following records:</p>
  
  <blockquote>
    <p>2020-03-30 19:23:00.609 DEBUG 604 --- [           main]
    o.s.b.c.c.ConfigFileApplicationListener  : Loaded config file
    'file:/G:/****/****/****/****/target/classes/application.properties'
    (classpath:/application.properties)</p>
    
    <p>2020-03-30 19:23:00.609 DEBUG 604 --- [           main]
    o.s.b.c.c.ConfigFileApplicationListener  : Loaded config file
    'file:/G:/****/****/****/****/target/classes/application-GITLAB-CI-TEST.properties' (classpath:/application-GITLAB-CI-TEST.properties) for profile
    GITLAB-CI-TEST</p>
  </blockquote>
  
  <p>I noticed that remote runners missing the second line. This one which loading <code>application-GITLAB-CI-TEST.properties</code>.</p>
  
  <p>I also tried <code>mvn clean test --batch-mode -PGITLAB-CI-TEST</code> and this one too failing in the remote host but in local run working as expected.</p>
  
  <p>I found the workaround for this issue by using the command </p>
  
  <pre><code>mvn clean test --batch-mode -Dspring.datasource.url=jdbc:mysql://mysql-db:3306/*******?useSSL=false&amp;allowPublicKeyRetrieval=true
  </code></pre>
  
  <p>Can you please help me to solve this issue as this workaround is not satisfying me?</p>