[java-parent-project] branch main updated: Switch to env-based parameters.
Codeberg
noreply at shibboleth.net
Wed May 6 17:55:12 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch main
in repository java-parent-project.
View the commit online:
https://codeberg.org/Shibboleth/java-parent-project/commit/e08aad3c18fcfd0b8ff1e471181471da387c3230
The following commit(s) were added to refs/heads/main by this push:
new e08aad3 Switch to env-based parameters.
e08aad3 is described below
commit e08aad3c18fcfd0b8ff1e471181471da387c3230
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Wed May 6 13:54:51 2026 -0400
Switch to env-based parameters.
---
resources/jenkins/idpversion.properties | 9 ++
resources/jenkins/java-idp-plugin-duo.jenkinsfile | 111 ---------------------
resources/jenkins/plugin-compatibility.jenkinsfile | 97 ++++++++++++++++++
3 files changed, 106 insertions(+), 111 deletions(-)
diff --git a/resources/jenkins/idpversion.properties b/resources/jenkins/idpversion.properties
new file mode 100644
index 0000000..5cfc1ab
--- /dev/null
+++ b/resources/jenkins/idpversion.properties
@@ -0,0 +1,9 @@
+IDP_BASE=5.0.0
+SHIBSHARED_BASE=9.0.0
+
+IDP_CUR=5.2.1
+SHIBSHARED_CUR=9.2.1
+
+IDP_SNAPSHOT=5.2.2-SNAPSHOT
+SHIBSHARED_SNAPSHOT=9.2.2-SNAPSHOT
+
diff --git a/resources/jenkins/java-idp-plugin-duo.jenkinsfile b/resources/jenkins/java-idp-plugin-duo.jenkinsfile
deleted file mode 100644
index f832f17..0000000
--- a/resources/jenkins/java-idp-plugin-duo.jenkinsfile
+++ /dev/null
@@ -1,111 +0,0 @@
-/*
- * 1) Test plugin snapshot against API-baseline and current IdP version:
- *
- * Git branch: main
- * IdP version(s): 5.0.0 5.2.1
- *
- * 2) Test currrent IdP version and next snapshot against latest plugin version:
- *
- * Git tag(s): 2.2.2
- * IdP versions: 5.2.1 5.2.2-SNAPSHOT
- */
-
-def projname = "java-idp-plugin-duo"
-def plugin_cur = "2.2.2"
-
-def idp_base = "5.0.0"
-def shibshared_base = "9.0.0"
-
-def idp_cur = "5.2.1"
-def shibshared_cur = "9.2.1"
-
-def idp_snapshot = "5.2.2-SNAPSHOT"
-def shibshared_snapshot = "9.2.2-SNAPSHOT"
-
-pipeline {
-
- agent {
- label 'Rocky9'
- }
- options {
- buildDiscarder(logRotator(numToKeepStr: '10'))
- }
- tools {
- jdk 'Amazon-17'
- maven 'Apache Maven'
- }
- triggers {
- cron "@weekly"
- }
- stages {
- stage('Display Java and Maven versions') {
- steps {
- sh 'mvn --version'
- }
- }
- stage('Checkout plugin snapshot') {
- steps {
- dir("${projname}-main") {
- git branch: 'main', url: "https://git.shibboleth.net/git/${projname}"
- }
- }
- }
- stage('Checkout current plugin') {
- steps {
- dir("${projname}-current") {
- git branch: 'main', url: "https://git.shibboleth.net/git/${projname}"
- sh "git checkout ${plugin_cur}"
- }
- }
- }
- stage('Test plugin snapshot with IdP API baseline version') {
- steps {
- dir("${projname}-main") {
- sh "mvn clean test -Didp.version=${idp_base} -Dshib-profile.version=${idp_base} -Dshib-attribute.version=${idp_base} -Dshib-metadata.version=${idp_base} -Dopensaml.version=${idp_base} -Dshib-shared.version=${shibshared_base}"
- }
- }
- }
- stage('Test plugin snapshot with current IdP version') {
- steps {
- dir("${projname}-main") {
- sh "mvn clean test -Didp.version=${idp_cur} -Dshib-profile.version=${idp_cur} -Dshib-attribute.version=${idp_cur} -Dshib-metadata.version=${idp_cur} -Dopensaml.version=${idp_cur} -Dshib-shared.version=${shibshared_cur}"
- }
- }
- }
- stage('Test plugin snapshot with current IdP snapshot') {
- steps {
- dir("${projname}-main") {
- sh "mvn clean test -Didp.version=${idp_snapshot} -Dshib-profile.version=${idp_snapshot} -Dshib-attribute.version=${idp_snapshot} -Dshib-metadata.version=${idp_snapshot} -Dopensaml.version=${idp_snapshot} -Dshib-shared.version=${shibshared_snapshot}"
- }
- }
- }
-
- stage('Test latest released plugin with current IdP version') {
- steps {
- dir("${projname}-current") {
- sh "mvn clean test -Didp.version=${idp_cur} -Dshib-profile.version=${idp_cur} -Dshib-attribute.version=${idp_cur} -Dshib-metadata.version=${idp_cur} -Dopensaml.version=${idp_cur} -Dshib-shared.version=${shibshared_cur}"
- }
- }
- }
-
- stage('Test latest released plugin with current IdP snapshot') {
- steps {
- dir("${projname}-current") {
- sh "mvn clean test -Didp.version=${idp_snapshot} -Dshib-profile.version=${idp_snapshot} -Dshib-attribute.version=${idp_snapshot} -Dshib-metadata.version=${idp_snapshot} -Dopensaml.version=${idp_snapshot} -Dshib-shared.version=${shibshared_snapshot}"
- }
- }
- }
-
- }
- post {
- always {
- testNG(reportFilenamePattern: '**/target/surefire-reports/testng-results.xml')
- }
- failure {
- emailext(to: 'commits at shibboleth.net',
- subject: "Build failed : ${currentBuild.fullDisplayName}",
- body: "See ${env.BUILD_URL}",
- attachLog: 'true')
- }
- }
-}
diff --git a/resources/jenkins/plugin-compatibility.jenkinsfile b/resources/jenkins/plugin-compatibility.jenkinsfile
new file mode 100644
index 0000000..6404ed1
--- /dev/null
+++ b/resources/jenkins/plugin-compatibility.jenkinsfile
@@ -0,0 +1,97 @@
+pipeline {
+
+ environment {
+ PROJNAME = ''
+ PLUGIN_CUR = ''
+ IDP_BASE = ''
+ SHIBSHARED_BASE = ''
+ IDP_CUR = ''
+ SHIBSHARED_CUR = ''
+ IDP_SNAPSHOT = ''
+ SHIBSHARED_SNAPSHOT = ''
+ }
+ agent {
+ label 'Rocky9'
+ }
+ options {
+ buildDiscarder(logRotator(numToKeepStr: '10'))
+ }
+ tools {
+ jdk 'Amazon-17'
+ maven 'Apache Maven'
+ }
+ triggers {
+ cron "@weekly"
+ }
+ stages {
+ stage('Display Java and Maven versions') {
+ steps {
+ sh 'mvn --version'
+ }
+ }
+ stage('Checkout plugin snapshot') {
+ steps {
+ dir("${env.PROJNAME}-main") {
+ git branch: 'main', url: "https://git.shibboleth.net/git/${env.PROJNAME}"
+ }
+ }
+ }
+ stage('Checkout current plugin') {
+ steps {
+ dir("${env.PROJNAME}-current") {
+ git branch: 'main', url: "https://git.shibboleth.net/git/${env.PROJNAME}"
+ sh "git checkout ${env.PLUGIN_CUR}"
+ }
+ }
+ }
+ stage('Test plugin snapshot with IdP API baseline version') {
+ steps {
+ dir("${env.PROJNAME}-main") {
+ sh "mvn clean test -Didp.version=${env.IDP_BASE} -Dshib-profile.version=${env.IDP_BASE} -Dshib-attribute.version=${env.IDP_BASE} -Dshib-metadata.version=${env.IDP_BASE} -Dopensaml.version=${env.IDP_BASE} -Dshib-shared.version=${env.SHIBSHARED_BASE}"
+ }
+ }
+ }
+ stage('Test plugin snapshot with current IdP version') {
+ steps {
+ dir("${env.PROJNAME}-main") {
+ sh "mvn clean test -Didp.version=${env.IDP_CUR} -Dshib-profile.version=${env.IDP_CUR} -Dshib-attribute.version=${env.IDP_CUR} -Dshib-metadata.version=${env.IDP_CUR} -Dopensaml.version=${env.IDP_CUR} -Dshib-shared.version=${env.SHIBSHARED_CUR}"
+ }
+ }
+ }
+ stage('Test plugin snapshot with current IdP snapshot') {
+ steps {
+ dir("${env.PROJNAME}-main") {
+ sh "mvn clean test -Didp.version=${env.IDP_SNAPSHOT} -Dshib-profile.version=${env.IDP_SNAPSHOT} -Dshib-attribute.version=${env.IDP_SNAPSHOT} -Dshib-metadata.version=${env.IDP_SNAPSHOT} -Dopensaml.version=${env.IDP_SNAPSHOT} -Dshib-shared.version=${env.SHIBSHARED_SNAPSHOT}"
+ }
+ }
+ }
+
+ stage('Test latest released plugin with current IdP version') {
+ steps {
+ dir("${env.PROJNAME}-current") {
+ sh "mvn clean test -Didp.version=${env.IDP_CUR} -Dshib-profile.version=${env.IDP_CUR} -Dshib-attribute.version=${env.IDP_CUR} -Dshib-metadata.version=${env.IDP_CUR} -Dopensaml.version=${env.IDP_CUR} -Dshib-shared.version=${env.SHIBSHARED_CUR}"
+ }
+ }
+ }
+
+ stage('Test latest released plugin with current IdP snapshot') {
+ steps {
+ dir("${env.PROJNAME}-current") {
+ sh "mvn clean test -Didp.version=${env.IDP_SNAPSHOT} -Dshib-profile.version=${env.IDP_SNAPSHOT} -Dshib-attribute.version=${env.IDP_SNAPSHOT} -Dshib-metadata.version=${env.IDP_SNAPSHOT} -Dopensaml.version=${env.IDP_SNAPSHOT} -Dshib-shared.version=${env.SHIBSHARED_SNAPSHOT}"
+ }
+ }
+ }
+
+ }
+ post {
+ always {
+ testNG(reportFilenamePattern: '**/target/surefire-reports/testng-results.xml')
+ }
+ failure {
+ emailext(to: 'commits at shibboleth.net',
+ subject: "Build failed : ${currentBuild.fullDisplayName}",
+ body: "See ${env.BUILD_URL}",
+ attachLog: 'true')
+ }
+ }
+}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list