directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject [directory-studio] branch kerby-gssapi-tests updated: Fix
Date Tue, 15 Jun 2021 04:22:15 GMT
This is an automated email from the ASF dual-hosted git repository.

seelmann pushed a commit to branch kerby-gssapi-tests
in repository https://gitbox.apache.org/repos/asf/directory-studio.git


The following commit(s) were added to refs/heads/kerby-gssapi-tests by this push:
     new 82e95e4  Fix
82e95e4 is described below

commit 82e95e475d6ec18ce9c5b1fa022d5870e11badbb
Author: Stefan Seelmann <mail@stefan-seelmann.de>
AuthorDate: Tue Jun 15 06:21:09 2021 +0200

    Fix
---
 Jenkinsfile | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 23a18ee..40dd12a 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -37,7 +37,7 @@ pipeline {
       }
       steps {
         script {
-          inTestLab({ sh 'export DISPLAY=:99; env; ps aux' })
+          inTestLab('jdk-11', { sh 'export DISPLAY=:99; env; ps aux' })
         }
       }
       post {
@@ -58,7 +58,7 @@ pipeline {
           }
           steps {
             script {
-              inTestLab({ sh 'export DISPLAY=:99; mvn -V -U -f pom-first.xml clean install
&& mvn -V clean install -Dorg.eclipse.swtbot.search.timeout=20000 -Denable-ui-tests'
})
+              inTestLab('jdk-11', { sh 'export DISPLAY=:99; mvn -V -U -f pom-first.xml clean
install && mvn -V clean install -Dorg.eclipse.swtbot.search.timeout=20000 -Denable-ui-tests'
})
             }
           }
           post {
@@ -79,7 +79,7 @@ pipeline {
           }
           steps {
             script {
-              inTestLab({ sh 'export DISPLAY=:99; mvn -V -U -f pom-first.xml clean install
&& mvn -V clean install -Dorg.eclipse.swtbot.search.timeout=20000 -Denable-ui-tests'
})
+              inTestLab('jdk-17', { sh 'export DISPLAY=:99; mvn -V -U -f pom-first.xml clean
install && mvn -V clean install -Dorg.eclipse.swtbot.search.timeout=20000 -Denable-ui-tests'
})
             }
           }
           post {
@@ -132,11 +132,11 @@ pipeline {
   }
 }
 
-def inTestLab(Closure action){
+def inTestLab(String dockerImageTag, Closure action){
   docker.image('coheigea/kerby').withRun('-h kerby.example.com -v $(pwd)/tools/testlab/kerby-data:/kerby-data')
{ kerby ->
     docker.image('osixia/openldap:1.5.0').withRun('-h openldap.example.com -v $(pwd)/tools/testlab/ldap.keytab:/etc/krb5.keytab
-v $(pwd)/tools/testlab/krb5.conf:/etc/krb5.conf -e LDAP_TLS_VERIFY_CLIENT=never') { openldap
->
       docker.image('389ds/dirsrv').withRun('-h fedora389ds.example.com -v $(pwd)/tools/testlab/ldap.keytab:/etc/krb5.keytab
-v $(pwd)/tools/testlab/krb5.conf:/etc/krb5.conf -e DS_DM_PASSWORD=admin', 'bash -c "zypper
install -y cyrus-sasl-crammd5 cyrus-sasl-digestmd5 cyrus-sasl-gssapi; set -m; /usr/lib/dirsrv/dscontainer
-r & while ! /usr/lib/dirsrv/dscontainer -H; do sleep 5; done; sleep 5; /usr/sbin/dsconf
localhost backend create --suffix dc=example,dc=org --be-name example; fg"') { fe [...]
-        docker.image('apachedirectory/maven-build:jdk-8').inside("-v ${env.WORKSPACE}/tools/testlab/krb5.conf:/etc/krb5.conf
--link=${kerby.id}:kerby.example.com --link=${openldap.id}:openldap.example.com -e OPENLDAP_HOST=openldap
-e OPENLDAP_PORT=389 -e OPENLDAP_PORT_SSL=636 --link=${fedora389ds.id}:fedora389ds.example.com
-e FEDORA_389DS_HOST=fedora389ds -e FEDORA_389DS_PORT=3389 -e FEDORA_389DS_PORT_SSL=3636")
{
+        docker.image("apachedirectory/maven-build:${dockerImageTag}").inside("-v ${env.WORKSPACE}/tools/testlab/krb5.conf:/etc/krb5.conf
--link=${kerby.id}:kerby.example.com --link=${openldap.id}:openldap.example.com -e OPENLDAP_HOST=openldap.example.com
-e OPENLDAP_PORT=389 -e OPENLDAP_PORT_SSL=636 --link=${fedora389ds.id}:fedora389ds.example.com
-e FEDORA_389DS_HOST=fedora389ds.example.com -e FEDORA_389DS_PORT=3389 -e FEDORA_389DS_PORT_SSL=3636")
{
           action()
         }
       }

Mime
View raw message