I have stored a NuGet package in Artifactory or Nexus. Octopus pulls package from Artifactory and push to the target server.
Now, I want to check whether the package is correctly transferred to the target machine without any data corruption due to network, etc. To achieve this, I’m trying to use Checksum to check the file for any errors. Algo (SHA-256, MD5, etc.)
I have 2 steps in Octopus project:
- Transfer package from Artifactory to Target server
- Powershell script – Pull Checksum value from Step #1 (step output or logs) and use it for further validations
- There is a SHA-1, SHA-256 or MD5 checksum associated with every package stored in Artifactory/Nexus.
- When package is transferred to the target machine, I can find checksum value in the Octopus release deployment logs – raw data.
Question : How can I pull Checksum value from Step #1 (step output or logs) and use in the Step #2?