Post Steps部分
Exec cmmand
cd /data/build/test-admin/
rm -f app.jar
rm -f Dockerfile
cp target/app.jar ./
cp docker/Dockerfile ./
docker build -t test-admin .
docker tag test-admin 192.168.1.100/test/test-admin:1.2-SNAPSHOT
docker push 192.168.1.100/test/test-admin:1.2-SNAPSHOT
docker rmi -f $(docker images|grep test-admin|awk '{print $3}')
Execute SonarQube Scanner部分
sonar.projectKey=test-admin
sonar.projectName=test-admin
sonar.version=1.0
sonar.sources=src/main/java
sonar.java.binaries=target/classes
sonar.language=java
sona.sourceEncoding=UTF-8