You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@clerezza.apache.org by ha...@apache.org on 2022/05/19 14:18:30 UTC

svn commit: r1901064 - /clerezza/site/Jenkinsfile

Author: hasan
Date: Thu May 19 14:18:30 2022
New Revision: 1901064

URL: http://svn.apache.org/viewvc?rev=1901064&view=rev
Log:
CLEREZZA-1063: Add Jenkinsfile

Added:
    clerezza/site/Jenkinsfile

Added: clerezza/site/Jenkinsfile
URL: http://svn.apache.org/viewvc/clerezza/site/Jenkinsfile?rev=1901064&view=auto
==============================================================================
--- clerezza/site/Jenkinsfile (added)
+++ clerezza/site/Jenkinsfile Thu May 19 14:18:30 2022
@@ -0,0 +1,23 @@
+pipeline {
+    agent {
+        label 'ubuntu'
+    }
+
+    stages {
+        stage('build') {
+            steps {
+                script {
+                    // Checkout branch with generated content
+                    sh """
+                        git clone --depth 1 --branch master https://gitbox.apache.org/repos/asf/clerezza.git clerezza.git
+                        cd clerezza.git
+                        mvn -Psite-build install site -pl '!tutorial'
+                        cd ..
+                        cp -r clerezza.git/target/site/apidocs/* production/apidocs/latest
+                        svn status
+                    """
+                }
+            }
+        }
+    }
+}