From f5ea6d13de940f8b7790fdf773b9eb20b6ed80cf Mon Sep 17 00:00:00 2001
From: Timo Heister <timo.heister@gmail.com>
Date: Mon, 14 Aug 2023 16:07:39 -0400
Subject: [PATCH] add ubuntu 22.04

---
 Jenkinsfile | 37 +++++++++++++++++++++++++++++++++----
 1 file changed, 33 insertions(+), 4 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 11f4613..31c7bce 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -24,10 +24,10 @@ pipeline
     {
       when {
         allOf {
-            environment name: 'TRUST_BUILD', value: 'false' 
+            environment name: 'TRUST_BUILD', value: 'false'
             not {branch 'master'}
             not {changeRequest authorEmail: "timo.heister@gmail.com"}
-	    }	    
+	    }
       }
       steps {
           echo "Please ask an admin to rerun Jenkins with TRUST_BUILD=true"
@@ -45,7 +45,7 @@ pipeline
           dir 'contrib/ubuntu2004'
         }
       }
-      
+
       steps
       {
         sh '''#!/bin/bash
@@ -66,11 +66,40 @@ pipeline
       }
     }
 
+    stage ("Ubuntu-22.04")
+    {
+      options {timeout(time: 600, unit: 'MINUTES')}
+      agent
+      {
+        dockerfile
+        {
+          dir 'contrib/ubuntu2204'
+        }
+      }
+
+      steps
+      {
+        sh '''#!/bin/bash
+	set -e
+	set -x
+	mpicxx -v
+	cmake --version
+        ./candi.sh -j 10 -p $WORKSPACE
+        cp $WORKSPACE/tmp/build/deal.II-*/detailed.log detailed-ubuntu2204.log
+        '''
+	archiveArtifacts artifacts: 'detailed-ubuntu2204.log', fingerprint: true
+
+        sh '''#!/bin/bash
+        cd $WORKSPACE/tmp/build/deal.II-* && make test
+        '''
+      }
+    }
+
     stage ("OSX-M1")
     {
       options {timeout(time: 600, unit: 'MINUTES')}
       agent
-      {        
+      {
          node
         {
           label 'osx'
-- 
2.39.5