Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #9 from blackduck-inc/fix-hosting-issue
Browse files Browse the repository at this point in the history
Fix Hosting Issues
  • Loading branch information
jahid1209 authored Oct 1, 2024
2 parents 00569e6 + 8184f71 commit ec13e12
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
24 changes: 12 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>4.73</version>
<version>4.85</version>
<relativePath />
</parent>
<groupId>io.jenkins.plugins</groupId>
Expand All @@ -29,7 +29,7 @@
<!-- https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/ -->
<revision>1.0.0</revision>
<changelist>-SNAPSHOT</changelist>
<jenkins.version>2.401.3</jenkins.version>
<jenkins.version>2.440.3</jenkins.version>
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
<spotless.check.skip>false</spotless.check.skip>
</properties>
Expand All @@ -39,25 +39,25 @@
<dependency>
<!-- Pick up common dependencies for the selected LTS line: https://github.com/jenkinsci/bom#usage -->
<groupId>io.jenkins.tools.bom</groupId>
<artifactId>bom-2.401.x</artifactId>
<version>2496.vddfca_753db_80</version>
<artifactId>bom-2.440.x</artifactId>
<version>3387.v0f2773fa_3200</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-core</artifactId>
<version>5.8.5</version>
<version>5.8.14</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-crypto</artifactId>
<version>5.8.5</version>
<version>5.8.14</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-web</artifactId>
<version>5.8.5</version>
<version>5.8.14</version>
</dependency>
</dependencies>
</dependencyManagement>
Expand All @@ -68,6 +68,11 @@
<artifactId>jackson-databind</artifactId>
<version>2.16.1</version>
</dependency>
<dependency>
<groupId>io.jenkins.plugins</groupId>
<artifactId>apache-httpcomponents-client-5-api</artifactId>
<version>5.4-118.v199115451c4d</version>
</dependency>
<dependency>
<groupId>io.jenkins.plugins</groupId>
<artifactId>gitlab-branch-source</artifactId>
Expand All @@ -79,11 +84,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents.client5</groupId>
<artifactId>httpclient5</artifactId>
<version>5.3.1</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>cloudbees-bitbucket-branch-source</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
@Extension
public class ScannerGlobalConfig extends GlobalConfiguration implements Serializable {
private static final long serialVersionUID = -3129542889827231427L;
private final int CONNECTION_TIMEOUT_IN_SECONDS = 120;
private static final int CONNECTION_TIMEOUT_IN_SECONDS = 120;
private String AUTHORIZATION_FAILURE = "Could not perform the authorization request: ";
private String CONNECTION_SUCCESSFUL = "Connection successful.";

Expand Down Expand Up @@ -272,14 +272,17 @@ private ListBoxModel getOptionsWithApiTokenCredentials() {
ScanCredentialsHelper.API_TOKEN_CREDENTIALS);
}

@SuppressWarnings({"lgtm[jenkins/no-permission-check]", "lgtm[jenkins/csrf]"})
public ListBoxModel doFillBlackDuckSCACredentialsIdItems() {
return getOptionsWithApiTokenCredentials();
}

@SuppressWarnings({"lgtm[jenkins/no-permission-check]", "lgtm[jenkins/csrf]"})
public ListBoxModel doFillPolarisCredentialsIdItems() {
return getOptionsWithApiTokenCredentials();
}

@SuppressWarnings({"lgtm[jenkins/no-permission-check]", "lgtm[jenkins/csrf]"})
public ListBoxModel doFillCoverityCredentialsIdItems() {
Jenkins jenkins = Jenkins.getInstanceOrNull();
if (jenkins == null) {
Expand Down

0 comments on commit ec13e12

Please sign in to comment.