-
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/3411-Resize-sidebars-using-mouse
* main: (211 commits) #4240 - Facilitate using DIAM serializer in isolation #4240 - Facilitate using DIAM serializer in isolation #4240 - Facilitate using DIAM serializer in isolation [maven-release-plugin] prepare for next development iteration [maven-release-plugin] prepare release inception-29.5 #4230 - Upgrade dependencies #4230 - Upgrade dependencies #4235 - Direct access-by-URL to sidebar curation mode sometimes does not work #4229 - Better project template selection #4229 - Better project template selection #4232 - Drop evaluation page #4229 - Better project template selection #4230 - Upgrade dependencies #4229 - Better project template selection No issue: Update system requirements and improve pointers to Docker-based deployment No issue: Call out to admins to look at the admin guide when reaching the installation section in the users guide. #4215 - Ability to specify GID and UID for the user used inside the Docker image [maven-release-plugin] prepare for next development iteration [maven-release-plugin] prepare release inception-29.4 #4226 - Display logout button on annotation page if dashboard access is disabled ... % Conflicts: % inception/inception-ui-annotation/src/main/java/de/tudarmstadt/ukp/clarin/webanno/ui/annotation/AnnotationPage.java % inception/inception-ui-annotation/src/main/java/de/tudarmstadt/ukp/clarin/webanno/ui/annotation/sidebar/SidebarTabbedPanel.java
- Loading branch information
Showing
979 changed files
with
51,144 additions
and
19,178 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 17', | ||
extraMavenArguments: '-U -Ddkpro.core.testCachePath="${WORKSPACE}/cache/dkpro-core-datasets" -Dmaven.artifact.threads=15 -T 4', | ||
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 params.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 -T 4 -Pjacoco clean verify javadoc:javadoc'; | ||
|
||
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 -Pjacoco,full-tests clean verify javadoc:javadoc' | ||
|
||
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 { | ||
always { | ||
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
Oops, something went wrong.