Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Analyzes a published docker image and stores results in Anchore Engine. If you are looking to scan or analyze a local build of an image see scanLocalImage and analyzeLocalImage respectively.

...

Input NameInput CodeRequiredDescription
Anchore UserFDANCR_INP_USERYesThe Anchore User used when uploading the results.
Anchore PasswordFDANCR_INP_PASSWORDYesThe Anchore Password used when uploading the results.
Anchore UrlFDANCR_INP_URLYesThe API url for the Anchore Engine install. Typically http://yourhost:8228/v1
Image NameFDANCR_INP_IMAGE_NAMEYes

The full image tag including the registry to analyze. For example:

  • docker.io/ubuntu:16.06 
  • compregistry.azurecr.io/myuser/myimage:latest
Wait For ResultsFDANCR_INP_WAIT_FOR_RESULTSYesShould the plugin wait for the results or simply start the upload and complete. If you want to use the Groovy Fail Condition or Plugin Outputs this needs to be true.
Groovy Fail ConditionFDANCR_INP_SCAN_FAIL_CONDITIONNo

Optional groovy script to determine if the scan should fail the workflow. Available variables include all FlexDeploy environment variables and the following scan result variables:

  • STATUS
  • FINAL_ACTION
  • STOP_COUNT
  • WARN_COUNT
  • ALL_COUNTS

See more information here for configuring the Groovy Fail Condition.

Force AnalyzeFDANCR_INP_FORCE_ANALYZENoShould the analysis be run if this image tag has already been analyzed and stored in Anchore Engine? If this is false, the existing analysis will just be returned.

Outputs

See the main plugin page for outputs and groovy script validation.

Info
titleOutputs

These outputs will only be returned if Wait For Results is true

...