Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,39 @@ pipeline {
}
}
}
stage('Check Changes') {
steps {
checkout scm
container('maven') {
script {
// Default: run tests
env.SKIP_TESTS = "false"

// Only check for docs-only changes in PR builds
if (env.CHANGE_TARGET) {
echo "PR build detected, checking if only docs changed..."

def relevantChanges = sh(
script: '''
(git diff --exit-code --name-only origin/${CHANGE_TARGET}...HEAD && echo "all") | sed '/^docs[/]/d'
''',
returnStdout: true
).trim()


if (relevantChanges == "") {
env.SKIP_TESTS = "true"
echo "✓ Only docs/ changes detected - tests will be skipped"
} else {
echo "✗ Relevant changes detected - tests will run"
}
} else {
echo "Non-PR build - tests will always run"
}
}
}
}
}
stage('Build') {
steps {
checkout scm
Expand Down Expand Up @@ -331,6 +364,9 @@ pipeline {
}

stage('Test') {
when {
environment name: 'SKIP_TESTS', value: 'false'
}
parallel {
stage('main-tests') {
steps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
</li>
<li><i class="fa fa-caret-right fa-fw"></i><a href="#ide-plugins">IDE plugins</a>
</li>
<li><i class="fa fa-caret-right fa-fw"></i><a href="#maven-plugins">Maven Plugins</a>
</li>
<li><i class="fa fa-caret-right fa-fw"></i><a href="#arquillian-containers">Arquillian Containers</a>
</li>
<li><i class="fa fa-caret-right fa-fw"></i><a href="#jakarta-ee">Jakarta EE Documentation</a>
Expand Down
6 changes: 6 additions & 0 deletions docs/website/src/main/resources/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ Using GlassFish in all major IDEs is documented at the OmniFish developer pages:
* [GlassFish in Eclipse IDE](https://omnifish.ee/developers/glassfish-server/ide-plugins-for-glassfish/eclipse-ide/)
* [GlassFish in Netbeans](https://omnifish.ee/developers/glassfish-server/ide-plugins-for-glassfish/netbeans/)

## Maven Plugins {#maven-plugins}

Maven plugins for GlassFish:

* [Embedded GlassFish Maven Plugin](https://github.com/eclipse-ee4j/glassfish-maven-embedded-plugin) - A Maven plugin for managing Embedded GlassFish server instances during the build lifecycle, useful for integration testing and running applications directly from Maven.

## Arquillian Containers {#arquillian-containers}

Information about using GlassFish with Arquillian for integration testing:
Expand Down