Fingerprint
fingerprint
Update file from
APPLICATION_JSONwith application fingerprint.
Usage
fingerprint [ --help ] [ --handler handler ] [ --cached fingerprint ] [ --verbose ] [ --quiet ] [ --audit ] [ --check ] [ --key ]
Update file from APPLICATION_JSON with application fingerprint.
Location:
bin/build/tools/fingerprint.sh
Arguments
--help- Flag. Optional. Display this help.--handler handler- Function. Optional. Use this error handler instead of the default error handler.--cached fingerprint- String. Optional. Instead of computing theapplication-fingerprintusing the hook, use this value.--verbose- Flag. Optional. Be verbose. Default based on value offingerprintinBUILD_DEBUG.--quiet- Flag. Optional. Be quiet (turns verbose off).--audit- Flag. Optional. Keep a record of the files between fingerprints and show what changed to see if certain files are changing often and shouldn't; or should be ignored.--check- Flag. Optional. Check if the fingerprint is up to date and output the current value.--key- String. Optional. Update this key in the JSON file.
Debugging settings
Append to the value of BUILD_DEBUG (a comma-delimited (,) list) and add these tokens to enable debugging:
fingerprint- By default be verbose even if the flag is not specified. (Use--quietto silence if needed)
Return codes
0- Success1- Environment error2- Argument error
Environment
BUILD_DEBUGDebugging Flag – CommaDelimitedList. Constant for turning debugging on during build to find errors
validate "$handler" Fingerprint name "fingerprintSpec"
Validates an application fingerprint
Usage
validate "$handler" Fingerprint name "fingerprintSpec" [ name ] fingerprintSpec
Validates an application fingerprint
Default hook is application-fingerprint.
Example usage:
case "$argument" in
...
--fingerprint) fingerprint=$(validate "$handler" Fingerprint "name" "hookName:jsonPath") || return "$(convertValue $? 120 0)" ;;
...
esac
[ -z "$fingerprint" ] || fingerprint --cached "$fingerprint" --verbose
This function returns the exit return code when fingerprint matches; the calling function should return immediately with a successful exit code.
Location:
bin/build/tools/fingerprint.sh
Arguments
name- Use-for the default hook, or pass in a hook name to use to calculate the fingerprint.fingerprintSpec- String. Required. The value used is the stored fingerprint path in the application JSON file. SpecifyhookName:jsonPathto specify a custom hook name for the value.
Return codes
120- Calling function should exit