Skip to content

Commit

Permalink
Merge pull request 'Release v24.08' (#14) from release_24.08 into master
Browse files Browse the repository at this point in the history
  • Loading branch information
janvonde committed Sep 5, 2024
2 parents b9ca02e + 3504871 commit 42c05e8
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 20 deletions.
11 changes: 10 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ pipeline {
anyOf {
branch 'master'
branch 'release_*'
branch 'hotfix_release_*'
allOf {
branch 'PR-*'
expression { env.CHANGE_BRANCH.startsWith("release_") }
Expand All @@ -43,6 +44,7 @@ pipeline {
anyOf {
branch 'master'
branch 'release_*'
branch 'hotfix_release_*'
allOf {
branch 'PR-*'
expression { env.CHANGE_BRANCH.startsWith("release_") }
Expand All @@ -59,6 +61,7 @@ pipeline {
anyOf {
branch 'master'
branch 'release_*'
branch 'hotfix_release_*'
branch 'sonar_*'
allOf {
branch 'PR-*'
Expand All @@ -83,6 +86,7 @@ pipeline {
anyOf {
branch 'master'
branch 'develop'
branch 'hotfix_release_*'
}
}
steps {
Expand All @@ -95,7 +99,12 @@ pipeline {
}
}
stage('tag release') {
when { branch 'master' }
when {
anyOf {
branch 'master'
branch 'hotfix_release_*'
}
}
steps {
withCredentials([gitUsernamePassword(credentialsId: '93f7e7d3-8f74-4744-a785-518fc4d55314',
gitToolName: 'git-tool')]) {
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Detail | Description
**Plugin identifier** | intranda_administration_ruleset_editor
**Plugin type** | administration
**Licence** | GPL 2.0 or newer
**Documentation (German)** | https://docs.goobi.io/workflow-plugins/v/eng/administration/goobi-plugin-administration-ruleset-editor
**Documentation (English)** | https://docs.goobi.io/workflow-plugins/v/ger/administration/goobi-plugin-administration-ruleset-editor
**Documentation (German)** | https://docs.goobi.io/workflow-plugins/v/ger/administration/goobi-plugin-administration-ruleset-editor
**Documentation (English)** | https://docs.goobi.io/workflow-plugins/v/eng/administration/goobi-plugin-administration-ruleset-editor

## Goobi details

Expand Down
2 changes: 1 addition & 1 deletion module-base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>io.goobi.workflow.plugin</groupId>
<artifactId>plugin-administration-ruleset-editor</artifactId>
<version>24.07</version>
<version>24.08</version>
</parent>
<artifactId>plugin-administration-ruleset-editor-base</artifactId>
<packaging>jar</packaging>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static void createBackup(String fileName) throws IOException {
message += " Please check the permissions in the configured backup directory.";
log.error(message);
String key = "plugin_administration_ruleset_editor_backup_not_writable_check_permissions";
StringBuffer buffer = new StringBuffer();
StringBuilder buffer = new StringBuilder();
buffer.append(Helper.getTranslation(key));
buffer.append(" (");
buffer.append(backupPath);
Expand All @@ -76,9 +76,7 @@ public static void writeFile(String fileName, String content) {
if (!Paths.get(RulesetFileUtils.backupDirectory).toFile().exists()) {
RulesetFileUtils.createDirectory(RulesetFileUtils.backupDirectory);
}
if (!Paths.get(fileName).toFile().exists()) {
RulesetFileUtils.createFile(fileName);
}

try {
Charset charset = RulesetFileUtils.standardCharset;
FileUtils.write(new File(fileName), content, charset);
Expand All @@ -91,16 +89,6 @@ public static void writeFile(String fileName, String content) {
}
}

public static void createFile(String fileName) {
Path path = Paths.get(fileName);
try {
StorageProvider.getInstance().createFile(path);
} catch (IOException ioException) {
ioException.printStackTrace();
log.error("RulesetEditorAdministrationPlugin could not create file " + fileName);
}
}

public static void createDirectory(String directoryName) {
Path path = Paths.get(directoryName);
try {
Expand Down
2 changes: 1 addition & 1 deletion module-gui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>io.goobi.workflow.plugin</groupId>
<artifactId>plugin-administration-ruleset-editor</artifactId>
<version>24.07</version>
<version>24.08</version>
</parent>
<artifactId>plugin-administration-ruleset-editor-gui</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>io.goobi.workflow</groupId>
<artifactId>workflow-base</artifactId>
<version>24.07</version>
<version>24.08</version>
<relativePath />
</parent>
<groupId>io.goobi.workflow.plugin</groupId>
Expand Down

0 comments on commit 42c05e8

Please sign in to comment.