Maven configuration. (default: global-settings)
: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: mvn33)
+ :mvn-version: Version of maven to use. (default: mvn35)
:stream: Keyword that can be used to represent a release code-name.
Often the same as the branch. (default: master)
:submodule-recursive: Whether to checkout submodules recursively.
Maven configuration. (default: global-settings)
: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: mvn33)
+ :mvn-version: Version of maven to use. (default: mvn35)
:stream: Keyword that can be used to represent a release code-name.
Often the same as the branch. (default: master)
:submodule-recursive: Whether to checkout submodules recursively.
Maven configuration. (default: global-settings)
: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: mvn33)
+ :mvn-version: Version of maven to use. (default: mvn35)
:stream: Keyword that can be used to represent a release code-name.
Often the same as the branch. (default: master)
:submodule-recursive: Whether to checkout submodules recursively.
Maven configuration. (default: global-settings)
: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: mvn33)
+ :mvn-version: Version of maven to use. (default: mvn35)
:nexus-cut-dirs: Number of directories to cut from file path for `wget -r`.
:stream: Keyword that can be used to represent a release code-name.
Often the same as the branch. (default: master)
Maven configuration. (default: global-settings)
: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: mvn33)
+ :mvn-version: Version of maven to use. (default: mvn35)
:stream: Keyword that can be used to represent a release code-name.
Often the same as the branch. (default: master)
:submodule-recursive: Whether to checkout submodules recursively.
Maven configuration. (default: global-settings)
: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: mvn33)
+ :mvn-version: Version of maven to use. (default: mvn35)
:stream: Keyword that can be used to represent a release code-name.
Often the same as the branch. (default: master)
:submodule-recursive: Whether to checkout submodules recursively.
Maven configuration. (default: global-settings)
: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: mvn33)
+ :mvn-version: Version of maven to use. (default: mvn35)
:stream: Keyword that can be used to represent a release code-name.
Often the same as the branch. (default: master)
:submodule-recursive: Whether to checkout submodules recursively.
Maven configuration. (default: global-settings)
: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: mvn33)
+ :mvn-version: Version of maven to use. (default: mvn35)
:stream: Keyword that can be used to represent a release code-name.
Often the same as the branch. (default: master)
:submodule-recursive: Whether to checkout submodules recursively.
mvn-global-settings: global-settings
mvn-opts: ''
mvn-params: ''
- mvn-version: mvn33
+ mvn-version: mvn35
staging-profile-id: '' # Unused in this job
stream: master
submodule-recursive: true
mvn-global-settings: global-settings
mvn-opts: ''
mvn-params: ''
- mvn-version: mvn33
+ mvn-version: mvn35
staging-profile-id: '' # Unused by the javadoc jobs
stream: master
submodule-recursive: true
mvn-global-settings: global-settings
mvn-opts: ''
mvn-params: ''
- mvn-version: mvn33
+ mvn-version: mvn35
staging-profile-id: '' # Unused by the javadoc jobs
stream: master
submodule-recursive: true
mvn-goals: clean deploy
mvn-opts: ''
mvn-params: '-Dmerge'
- mvn-version: mvn33
+ mvn-version: mvn35
nexus-cut-dirs: 6 # Number of dirs in the Nexus path to remove for wget -r.
staging-profile-id: '' # Unused by this job.
stream: master
mvn-goals: clean deploy
mvn-opts: ''
mvn-params: ''
- mvn-version: mvn33
+ mvn-version: mvn35
stream: master
submodule-recursive: true
mvn-global-settings: global-settings
mvn-opts: ''
mvn-params: ''
- mvn-version: mvn33
+ mvn-version: mvn35
sonar-mvn-goal: 'sonar:sonar'
staging-profile-id: '' # Unused in this job
stream: master
mvn-goals: clean deploy
mvn-opts: ''
mvn-params: '-Dstream=$STREAM'
- mvn-version: mvn33
+ mvn-version: mvn35
staging-profile-id: '' # Unused in this job
stream: master
submodule-recursive: true
mvn-goals: clean deploy
mvn-opts: ''
mvn-params: '-Dstream=$STREAM'
- mvn-version: mvn33
+ mvn-version: mvn35
staging-profile-id: '' # Unused by this job
stream: master
submodule-recursive: true
source "/tmp/v/lftools/bin/activate"
set -u # Restore unbound variable checking
}
-
-# Check maven-metadata.xml for any unexpected timestamp mismatches
-maven_metadata_validate() {
- stage_dir="$1"
-
- if [ -z "$1" ]; then
- echo "Usage: maven_metadata_validate STAGE_REPO_DIR"
- exit 1
- fi
-
- error_detected=0
- mapfile -t files < <(find "$stage_dir" -name maven-metadata.xml | grep SNAPSHOT)
-
- for f in "${files[@]}"; do
- timestamp=$(xmlstarlet sel \
- -t -v "/metadata/versioning/snapshot/timestamp" "$f")
-
- # Scan all snapshot versions but ignore javadoc and source jars
- mapfile -t ext_timestamps < <(xmlstarlet sel \
- -t -m "/metadata/versioning/snapshotVersions/snapshotVersion" \
- -n \
- --if "classifier='javadoc'" \
- -o "" \
- --elif "classifier='sources'" \
- -o "" \
- --else \
- -o "extension:" -v extension \
- -o " value:" -v value \
- -o " updated:" -v updated \
- "$f")
-
- for t in "${ext_timestamps[@]}"; do
- # Ignore blank timestamps caused by xmlstarlet ignores
- if [[ -z "$t" ]]; then
- continue
- fi
-
- timestamp_error=0
- if [[ $t != *"$timestamp"* ]]; then
- echo "Metadata $f 'value:$timestamp' mismatch vs '$t'"
- timestamp_error=1
- fi
- # Updated is timestamp without the dot character
- if [[ $t != *"${timestamp//\./}"* ]]; then
- echo "Metadata $f 'updated:${timestamp//\./}' mismatch vs '$t'"
- timestamp_error=1
- fi
-
- if [[ $timestamp_error != 0 ]]; then
- error_detected=1
- cat "$f"
- fi
- done
- done
-
- if [ $error_detected -ne 0 ]; then
- echo "ERROR: Mismatches in maven-metadata discovered. Quitting..."
- exit 1
- fi
-}