Skip to content

Commit

Permalink
Merge pull request #25 from yashviagrawal/main
Browse files Browse the repository at this point in the history
AppknoxPlugin to AppknoxScanner
  • Loading branch information
ginilpg authored Sep 4, 2024
2 parents 6fcd1e0 + cd2c929 commit 233e66f
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ stages {
stage('Appknox Scan') {
steps {
script {
// Perform Appknox scan using AppknoxPlugin
// Perform Appknox scan using AppknoxScanner
step([
$class: 'AppknoxPlugin',
$class: 'AppknoxScanner',
credentialsId: 'your-appknox-access-token-ID', //Specify the Appknox Access Token ID. Ensure the ID matches with the ID given while configuring Appknox Access Token in the credentials.
filePath: FILE_PATH,
riskThreshold: params.RISK_THRESHOLD.toUpperCase()
Expand Down Expand Up @@ -128,9 +128,9 @@ pipeline {
stage('Appknox Scan') {
steps {
script {
// Perform Appknox scan using AppknoxPlugin
// Perform Appknox scan using AppknoxScanner
step([
$class: 'AppknoxPlugin',
$class: 'AppknoxScanner',
credentialsId: 'your-appknox-access-token-id', //Specify the Appknox Access Token ID. Ensure the ID matches with the ID given while configuring Appknox Access Token in the credentials.
filePath: FILE_PATH,
riskThreshold: params.RISK_THRESHOLD.toUpperCase()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@

import org.apache.commons.io.FileUtils;

public class AppknoxPlugin extends Builder implements SimpleBuildStep {
public class AppknoxScanner extends Builder implements SimpleBuildStep {
private final String credentialsId;
private final String filePath;
private final String riskThreshold;
Expand All @@ -67,7 +67,7 @@ public class AppknoxPlugin extends Builder implements SimpleBuildStep {
private static final String CLI_DOWNLOAD_PATH = System.getProperty("user.home") + File.separator + "appknox";

@DataBoundConstructor
public AppknoxPlugin(String credentialsId, String filePath, String riskThreshold) {
public AppknoxScanner(String credentialsId, String filePath, String riskThreshold) {
this.credentialsId = credentialsId;
this.filePath = filePath;
this.riskThreshold = riskThreshold;
Expand Down Expand Up @@ -494,7 +494,7 @@ private String getAccessToken(TaskListener listener) {
@Extension
public static final class DescriptorImpl extends BuildStepDescriptor<Builder> {
public DescriptorImpl() {
super(AppknoxPlugin.class);
super(AppknoxScanner.class);
load();
}

Expand Down

0 comments on commit 233e66f

Please sign in to comment.