Skip to content

Commit dbef55a

Browse files
committed
check that the ci profile is active
1 parent 94a33c5 commit dbef55a

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.circleci/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212

1313
- checkout
1414

15+
- run: mvn help:active-profiles
16+
1517
- restore_cache:
1618
key: circleci-demo-java-spring-{{ checksum "pom.xml" }}
1719

pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,19 @@
8282
</plugins>
8383
</build>
8484

85+
<profiles>
86+
<profile>
87+
<id>ci</id>
88+
<activation>
89+
<property>
90+
<name>env.CIRCLECI</name>
91+
<value>true</value>
92+
</property>
93+
</activation>
94+
<properties>
95+
</properties>
96+
</profile>
97+
</profiles>
98+
8599

86100
</project>

0 commit comments

Comments
 (0)