Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(jdk21): add a check on agent availability #37

Merged
merged 3 commits into from
Aug 11, 2023
Merged
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
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ properties([
// Define the sequential stages and the parallel steps inside each stage
def sequentialStages = [:]
// Labels requested in https://github.com/jenkins-infra/pipeline-library/blob/master/vars/buildPlugin.groovy and https://github.com/jenkins-infra/pipeline-library/blob/master/vars/buildPluginWithGradle.groovy
sequentialStages['Tool'] = [ 'maven', 'maven-11', 'maven-17', 'maven-19', 'maven-windows', 'maven-11-windows', 'maven-17-windows', 'maven-19-windows']
sequentialStages['Tool'] = [ 'maven', 'maven-11', 'maven-17', 'maven-19', 'maven-windows', 'maven-11-windows', 'maven-17-windows', 'maven-19-windows', 'maven-21']
sequentialStages['Processor'] = [ 's390x', 'amd64' ] // 'arm64', not tested, unavailable
sequentialStages['Docker'] = [ 's390xdocker', 'docker', 'docker-windows'] //'arm64docker', not tested, unavailable

Expand Down
5 changes: 5 additions & 0 deletions checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ if [ $# -ge 1 ] && [ -n "$1" ] && [ "$1" != "kubernetes" ]; then
jdk="jdk-17";;
maven-19 | jdk-19)
jdk="jdk-19";;
maven-21 | jdk-21)
jdk="jdk-21";;
*)
echo "Label '$1' specified. Using default jdk."
esac
Expand All @@ -87,6 +89,9 @@ if [ $# -ge 1 ] && [ -n "$1" ] && [ "$1" != "kubernetes" ]; then
jdk-19)
jdknumber="19."
;;
jdk-21)
jdknumber="21-beta"
;;
*)
echo "ERROR: JDK not matching the expected ${jdk} for label '$1'"
mvn -v 2>&1
Expand Down