-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/1336-Add-dark-mode
* main: No issue. Slightly improving PDF editor visual No issue: Experiment with a Jenkinsfile No issue: Experiment with a Jenkinsfile No issue: Experiment with a Jenkinsfile No issue: Experiment with a Jenkinsfile No issue: Experiment with a Jenkinsfile #4058 - Cannot export texts containing certain characters as UIMA CAS XMI #3673 - Update dependencies #4066 - Display document name on export failure No issue. Minor additions to BioC format description #4062 - ViewportTracker should focus on block-like elements #4058 - Cannot export texts containing certain characters as UIMA CAS XMI #4032 - Allow using externalized strings from backend code #4060 - Clean up redundant code in annotation handlers #4026: Support for error tracking with Sentry
- Loading branch information
Showing
59 changed files
with
520 additions
and
748 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,170 @@ | ||
config = [ | ||
agentLabel: '', | ||
maven: 'Maven 3', | ||
jdk: 'Zulu 11', | ||
extraMavenArguments: '', | ||
wipeWorkspaceBeforeBuild: true, | ||
wipeWorkspaceAfterBuild: true | ||
] | ||
|
||
pipeline { | ||
parameters { | ||
string( | ||
name: 'extraMavenArguments', | ||
defaultValue: config.extraMavenArguments, | ||
description: "Extra arguments to be passed to Maven (for testing; overrides only current build)") | ||
string( | ||
name: 'agentLabel', | ||
defaultValue: config.agentLabel, | ||
description: "Eligible agents (in case a build keeps running on a broken agent; overrides only current build)") | ||
booleanParam( | ||
name: 'wipeWorkspaceBeforeBuild', | ||
defaultValue: config.wipeWorkspaceBeforeBuild, | ||
description: "Wipe workspace before build (for testing; next build only)") | ||
booleanParam( | ||
name: 'wipeWorkspaceAfterBuild', | ||
defaultValue: config.wipeWorkspaceAfterBuild, | ||
description: "Wipe workspace after build (for testing; next build only)") | ||
} | ||
|
||
agent { | ||
label agentLabel | ||
} | ||
|
||
tools { | ||
maven config.maven | ||
jdk config.jdk | ||
} | ||
|
||
options { | ||
buildDiscarder(logRotator( | ||
numToKeepStr: '25', | ||
artifactNumToKeepStr: '5' | ||
)) | ||
skipDefaultCheckout() | ||
} | ||
|
||
stages { | ||
stage("Checkout code") { | ||
steps { | ||
script { | ||
if (params.wipeWorkspaceBeforeBuild) { | ||
echo "Wiping workspace..." | ||
cleanWs(cleanWhenNotBuilt: true, | ||
deleteDirs: true, | ||
disableDeferredWipeout: true, | ||
notFailBuild: true) | ||
} | ||
} | ||
|
||
dir('checkout') { | ||
checkout scm | ||
} | ||
} | ||
} | ||
|
||
// Display information about the build environment. This can be useful for debugging | ||
// build issues. | ||
stage("Info") { | ||
steps { | ||
echo '=== Environment variables ===' | ||
script { | ||
if (isUnix()) { | ||
sh 'printenv' | ||
} | ||
else { | ||
bat 'set' | ||
} | ||
} | ||
} | ||
} | ||
|
||
// Perform a merge request build. This is a conditional stage executed with the GitLab | ||
// sources plugin triggers a build for a merge request. To avoid conflicts with other | ||
// builds, this stage should not deploy artifacts to the Maven repository server and | ||
// also not install them locally. | ||
stage("PR build") { | ||
when { branch 'PR-*' } | ||
|
||
steps { | ||
script { | ||
currentBuild.description = 'Triggered by: <a href="' + CHANGE_URL + '">' + BRANCH_NAME + | ||
': ' + env.CHANGE_BRANCH + '</a> (' + env.CHANGE_AUTHOR_DISPLAY_NAME + ')' | ||
} | ||
|
||
dir('checkout') { | ||
withMaven(maven: config.maven, jdk: config.jdk, mavenLocalRepo: "$WORKSPACE/.repository") { | ||
script { | ||
def mavenCommand = 'mvn ' + | ||
params.extraMavenArguments + | ||
' -B -Dmaven.test.failure.ignore=true clean verify'; | ||
|
||
if (isUnix()) { | ||
sh script: mavenCommand | ||
} | ||
else { | ||
bat script: mavenCommand | ||
} | ||
} | ||
} | ||
|
||
script { | ||
def mavenConsoleIssues = scanForIssues tool: mavenConsole() | ||
def javaIssues = scanForIssues tool: java() | ||
def javaDocIssues = scanForIssues tool: javaDoc() | ||
publishIssues id: "analysis", issues: [mavenConsoleIssues, javaIssues, javaDocIssues] | ||
} | ||
} | ||
} | ||
} | ||
|
||
// Perform a SNAPSHOT build of a main branch. This stage is typically executed after a | ||
// merge request has been merged. On success, it deploys the generated artifacts to the | ||
// Maven repository server. | ||
stage("SNAPSHOT build") { | ||
when { branch pattern: "main|release/.*", comparator: "REGEXP" } | ||
|
||
steps { | ||
dir('checkout') { | ||
withMaven(maven: config.maven, jdk: config.jdk, mavenLocalRepo: "$WORKSPACE/.repository") { | ||
script { | ||
def mavenCommand = 'mvn ' + | ||
params.extraMavenArguments + | ||
' -B -Dmaven.test.failure.ignore=true clean verify' | ||
|
||
if (isUnix()) { | ||
sh script: mavenCommand | ||
} | ||
else { | ||
bat script: mavenCommand | ||
} | ||
} | ||
} | ||
|
||
script { | ||
def mavenConsoleIssues = scanForIssues tool: mavenConsole() | ||
def javaIssues = scanForIssues tool: java() | ||
def javaDocIssues = scanForIssues tool: javaDoc() | ||
def spotBugsIssues = scanForIssues tool: spotBugs() | ||
def taskScannerIssues = scanForIssues tool: taskScanner() | ||
publishIssues id: "analysis", issues: [mavenConsoleIssues, javaIssues, javaDocIssues, spotBugsIssues, taskScannerIssues] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
post { | ||
success { | ||
script { | ||
if (params.wipeWorkspaceAfterBuild) { | ||
echo "Wiping workspace..." | ||
cleanWs(cleanWhenNotBuilt: false, | ||
deleteDirs: true, | ||
disableDeferredWipeout: true, | ||
notFailBuild: true) | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -294,7 +294,7 @@ | |
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
|
Oops, something went wrong.