Skip to content

Commit

Permalink
Add setcap step to CircleCI config to avoid permission errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaitoy committed May 27, 2019
1 parent d0e3ab0 commit df5f00b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ jobs:
command: |
sudo apt-get update
sudo apt-get install -y libpcap0.8
- run:
name: Set capabilities on java
command: sudo setcap cap_net_raw,cap_net_admin=eip //usr/lib/jvm/java-10-openjdk-amd64/bin/java
- run:
name: Run mvnw verify
command: sudo ./mvnw verify --global-toolchains mvn/toolchains_circleci_10.xml
command: ./mvnw verify --global-toolchains mvn/toolchains_circleci_10.xml

workflows:
version: 2
Expand Down

0 comments on commit df5f00b

Please sign in to comment.