:java-version: Version of Java to use for the build. (default: openjdk8)
:mvn-global-settings: The name of the Maven global settings to use for
Maven configuration. (default: global-settings)
+ :mvn-goals: The maven goals to perform for the build.
+ (default: clean install)
:mvn-opts: Sets MAVEN_OPTS. (default: '')
:mvn-params: Additional mvn parameters to pass to the cli. (default: '')
:mvn-version: Version of maven to use. (default: mvn35)
github-url: 'https://github.com'
java-version: openjdk8
mvn-global-settings: global-settings
+ mvn-goals: clean install
mvn-opts: ''
mvn-params: ''
mvn-version: mvn35
- shell: echo 'Using SonarCloud'
- lf-infra-maven-sonarcloud:
java-version: '{java-version}'
+ mvn-goals: '{mvn-goals}'
mvn-settings: '{mvn-settings}'
mvn-version: '{mvn-version}'
sonarcloud-project-key: '{sonarcloud-project-key}'
- shell: echo 'Using SonarQube'
- lf-infra-maven-sonar:
java-version: '{java-version}'
+ mvn-goals: '{mvn-goals}'
mvn-settings: '{mvn-settings}'
mvn-version: '{mvn-version}'
java-version: '{java-version}'
- inject:
# Switch this to the sonar wrapper when JJB 2.0 is available
- properties-content: SONAR_HOST_URL=$SONAR_URL
+ properties-content: |
+ SONAR_HOST_URL=$SONAR_URL
+ MAVEN_GOALS={mvn-goals}
- lf-provide-maven-settings:
global-settings-file: global-settings
settings-file: '{mvn-settings}'
SONAR_HOST_URL=https://sonarcloud.io
PROJECT_KEY={sonarcloud-project-key}
PROJECT_ORGANIZATION={sonarcloud-project-organization}
+ MAVEN_GOALS={mvn-goals}
API_TOKEN={sonarcloud-api-token}
- lf-provide-maven-settings:
global-settings-file: global-settings