Skip to content

Commit

Permalink
Validate JFrog configuration and update bamboo to 9.3.2 (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
sverdlov93 authored Aug 10, 2023
1 parent 2fc97c4 commit e8ae9b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jfrog.bamboo</groupId>
<artifactId>bamboo-jfrog-plugin</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.2</version>

<organization>
<name>JFrog Ltd</name>
Expand All @@ -30,7 +30,7 @@
<packaging>atlassian-plugin</packaging>

<properties>
<bamboo.version>9.3.1</bamboo.version>
<bamboo.version>9.3.2</bamboo.version>
<bamboo.data.version>${bamboo.version}</bamboo.data.version>
<amps.version>8.10.1</amps.version>
<plugin.testrunner.version>2.0.3</plugin.testrunner.version>
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/org/jfrog/bamboo/JfContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ public void validate(@NotNull ActionParametersMap params, @NotNull ErrorCollecti
super.validate(params, errorCollection);
String cliCommand = params.getString(JF_TASK_COMMAND);
if (!StringUtils.startsWith(StringUtils.trim(cliCommand), "jf ")) {
errorCollection.addErrorMessage("JFrog CLI command should start with 'jf '");
errorCollection.addErrorMessage("JFrog CLI command should start with 'jf '.");
}
if (StringUtils.isBlank(params.getString(JF_TASK_SERVER_ID))) {
errorCollection.addErrorMessage("JFrog configuration should be selected");
}
}
}

0 comments on commit e8ae9b0

Please sign in to comment.