-
Improvement
-
Resolution: Fixed
-
Minor
-
None
It would be useful to be able to include the 'force re-analysis' option in a pipeline job in the case of an analysis failure (for example, due to a misconfiguration).
We plan to use Anchore mostly as a quality gate with Jenkins. Currently if an analysis failure occurs, the image must be manually unsubscribed, and then deleted before the Jenkins job can be re-run.
Ideally, with the 'force' option, the problem could be fixed and the job re-run without any manual intervention.
[JENKINS-47541] Support --force option for Anchore analysis
Description |
Original:
It would be useful to be able to include the 'force re-analysis' option in a pipeline job in the case of an analysis failure (for example, due to a misconfiguration). We plan to use Anchore mostly as a quality gate with Jenkins. Currently if an analysis failure occurs, the image but be manually unsubscribed, and then deleted before the Jenkins job can be re-run. Ideally, with the 'force' option, the problem could be fixed and the job re-run without any manual intervention. |
New:
It would be useful to be able to include the 'force re-analysis' option in a pipeline job in the case of an analysis failure (for example, due to a misconfiguration). We plan to use Anchore mostly as a quality gate with Jenkins. Currently if an analysis failure occurs, the image must be manually unsubscribed, and then deleted before the Jenkins job can be re-run. Ideally, with the 'force' option, the problem could be fixed and the job re-run without any manual intervention. |
Assignee | Original: Daniel Nurmi [ nurmi ] | New: Swathi Gangisetty [ swathigangisetty ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Fixed but Unreleased [ 10203 ] |
Status | Original: Fixed but Unreleased [ 10203 ] | New: Resolved [ 5 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Tim,
We were discussing and are considering that another approach would be to alter the anchore-engine service itself such that, if an image was in 'analysis_failed' state, and a new 'add' comes in, it pops back to 'not_analyzed' and the system tries again (which is exactly what '–force' does today). That way, you wouldn't have to set an option in Jenkins plugin at all, and we think it might be an even more convenient way to handle this scenario - what do you think about this solution?
Best
-Dan