Downloading and verifying files
This step plugin makes it possible to download files and verify them with checksums that exist as process properties. The validation result is saved within the journal.
Last updated
This step plugin makes it possible to download files and verify them with checksums that exist as process properties. The validation result is saved within the journal.
Last updated
Identifier
intranda_step_download_and_verify_assets
Repository
Licence
GPL 2.0 or newer
Last change
07.09.2024 14:12:25
This plugin reads URLs or hash values from several configured process properties, downloads the files from the defined URL and then compares them with the corresponding hash value. Finally, several responses can be given, depending on whether the status is success
or error
. These responses can be sent to another system via REST or simply logged within the journal.
To install the plugin, the following file must be installed:
The configuration file is usually located here:
The content of this configuration file looks like the following example:
The <config>
block can occur repeatedly for different projects or work steps in order to be able to perform different actions within different workflows.
project
This parameter defines which project the current block <config>
should apply to. The name of the project is used here. This parameter can occur several times per <config>
block.
step
This parameter controls which work steps the <config>
block should apply to. The name of the work step is used here. This parameter can occur several times per <config>
block.
maxTryTimes
This value defines the maximum number of attempts to be made before feedback must be given. This parameter is optional and has the default value 1
.
fileNameProperty
This parameter controls the part for downloading and verifying the files. It accepts three attributes. @urlProperty
defines the name of the process property that contains the URL of the file. @hashProperty
defines the name of the process property that contains the checksum of the file. The attribute @folder
is optional and has the default value master
. It controls where the downloaded files are to be saved.
response
This optional parameter can be used to provide multiple responses after downloading and verifying the files. It accepts four attributes and a JSON text for REST requests with a JSON body. More details and examples can be found in the comments of the sample configuration file.