├── .github ├── CODEOWNERS ├── dependabot.yml └── workflows │ └── jenkins-security-scan.yml ├── docs └── images │ ├── workflow.png │ ├── build_options.png │ ├── build_report.png │ ├── build_summary.png │ └── freestyle_build_step.png ├── src └── main │ ├── webapp │ ├── images │ │ └── anchore.png │ ├── help │ │ ├── help-Annotations.html │ │ ├── help-OverrideAEURL.html │ │ ├── help-OverrideAEAccount.html │ │ └── help-OverrideAECredentials.html │ ├── css │ │ └── anchore.css │ └── js │ │ └── renderOutput.js │ ├── resources │ ├── com │ │ └── anchore │ │ │ └── jenkins │ │ │ └── plugins │ │ │ └── anchore │ │ │ ├── AnchoreBuilder │ │ │ ├── help-engineurl.html │ │ │ ├── help-engineaccount.html │ │ │ ├── help-enginepass.html │ │ │ ├── help-engineuser.html │ │ │ ├── help-anchoreioPass.html │ │ │ ├── help-debug.html │ │ │ ├── help-engineRetryInterval.html │ │ │ ├── help-anchoreioUser.html │ │ │ ├── help-engineRetries.html │ │ │ ├── help-forceAnalyze.html │ │ │ ├── help-bailOnFail.html │ │ │ ├── help-bailOnPluginFail.html │ │ │ ├── help-policyBundleId.html │ │ │ ├── help-anchoreui.html │ │ │ ├── help-autoSubscribeTagUpdates.html │ │ │ ├── help-name.html │ │ │ ├── help-excludeFromBaseImage.html │ │ │ ├── global.jelly │ │ │ └── config.jelly │ │ │ ├── Annotation │ │ │ └── config.jelly │ │ │ ├── AnchoreAction │ │ │ ├── summary.jelly │ │ │ └── index.jelly │ │ │ └── AnchoreProjectAction │ │ │ ├── detailGraph.jelly │ │ │ ├── jobMain.jelly │ │ │ └── floatingBox.jelly │ └── index.jelly │ └── java │ └── com │ └── anchore │ └── jenkins │ └── plugins │ └── anchore │ ├── Util.java │ ├── Annotation.java │ ├── ConsoleLog.java │ ├── BuildConfig.java │ ├── AnchoreAction.java │ ├── AnchoreProjectAction.java │ ├── AnchoreBuilder.java │ └── BuildWorker.java ├── .gitignore ├── Makefile ├── TESTING.md ├── pom.xml ├── README.md └── LICENSE /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @bradleyjones 2 | -------------------------------------------------------------------------------- /docs/images/workflow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/anchore-container-scanner-plugin/master/docs/images/workflow.png -------------------------------------------------------------------------------- /docs/images/build_options.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/anchore-container-scanner-plugin/master/docs/images/build_options.png -------------------------------------------------------------------------------- /docs/images/build_report.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/anchore-container-scanner-plugin/master/docs/images/build_report.png -------------------------------------------------------------------------------- /docs/images/build_summary.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/anchore-container-scanner-plugin/master/docs/images/build_summary.png -------------------------------------------------------------------------------- /src/main/webapp/images/anchore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/anchore-container-scanner-plugin/master/src/main/webapp/images/anchore.png -------------------------------------------------------------------------------- /docs/images/freestyle_build_step.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkinsci/anchore-container-scanner-plugin/master/docs/images/freestyle_build_step.png -------------------------------------------------------------------------------- /src/main/resources/com/anchore/jenkins/plugins/anchore/AnchoreBuilder/help-engineurl.html: -------------------------------------------------------------------------------- 1 |
Anchore Plugin enables Jenkins users to scan container images, generate analysis, evaluate gate policy, and execute customizable 40 | * queries. The plugin can be used in a freestyle project as a step or invoked from a pipeline script
41 | * 42 | *Requirements:
43 | * 44 | * Note that returning {@link
475 | * FormValidation#error(String)} does not prevent the form from being saved. It just means that a message will be displayed to the
476 | * user
477 | */
478 | @SuppressWarnings("unused")
479 | public FormValidation doCheckName(@QueryParameter String value) {
480 | if (!Strings.isNullOrEmpty(value)) {
481 | return FormValidation.ok();
482 | } else {
483 | return FormValidation.error("Please enter a valid file name");
484 | }
485 | }
486 |
487 | @SuppressWarnings("unused")
488 | public ListBoxModel doFillEngineCredentialsIdItems(@QueryParameter String credentialsId) {
489 | StandardListBoxModel result = new StandardListBoxModel();
490 |
491 | if (!Jenkins.getActiveInstance().hasPermission(Jenkins.ADMINISTER)) {
492 | return result.includeCurrentValue(credentialsId);
493 | }
494 |
495 | return result.includeEmptyValue()
496 | .includeMatchingAs(ACL.SYSTEM, Jenkins.getActiveInstance(), StandardUsernamePasswordCredentials.class,
497 | Collections.