소스 검색

Revert "Moved Jenkinsfile to project's root directory"

This reverts commit 9a301176d7939eafffdb16b289f092076fc227f2.
Samuel Thibault 4 년 전
부모
커밋
d4ec740777
2개의 변경된 파일40개의 추가작업 그리고 54개의 파일을 삭제
  1. 0 54
      Jenkinsfile
  2. 40 0
      examples/Jenkinsfile

+ 0 - 54
Jenkinsfile

@@ -1,54 +0,0 @@
-def FAILURE_STAGE
-pipeline {
-   agent any
-
-   stages {
-      stage('Clone repo') {
-         steps {
-            script{
-                FAILURE_STAGE=env.STAGE_NAME
-            }
-            cleanWs()
-            git credentialsId: 'gitlab', url: 'https://gitlab.seis.exa2pro.iti.gr/exa2pro/starpu.git', branch: 'fpga'
-            
-         }
-      }
-      stage('Build') {
-         steps {
-            script{
-                FAILURE_STAGE=env.STAGE_NAME
-            }
-            sh '''
-                ls
-                ./autogen.sh
-                ./configure --prefix=/home/theioak/.jenkins/workspace/starpu_pipeline/lib --disable-build-examples
-                make
-                make install
-                '''
-         }
-      }
-      stage('Test') {
-         steps {
-            script{
-                FAILURE_STAGE=env.STAGE_NAME
-            }
-            sh '''
-                pwd
-                ls
-                git branch
-                find . -type f -name Makefile -exec sed -i "s:MPIEXEC_ARGS = :MPIEXEC_ARGS = --allow-run-as-root:" {} \\;
-                make check
-                '''
-         }
-      }
-   }
-   post {
-      success {
-        mail bcc: '', body: "<b>Build status: Success</b><br>Jenkins pipeline: ${env.JOB_NAME} <br>Build Number: ${env.BUILD_NUMBER} <br> GitLab project: starpu <br> Branch: ft_checkpoint", cc: '', from: 'jenkins@gitlab.seis.iti.gr', replyTo: '', subject: "JENKINS EMAIL NOTIFICATION: Project name -> ${env.JOB_NAME}", to: 'theioak@iti.gr,samuel.thibault@inria.fr', charset: 'UTF-8', mimeType: 'text/html'
-      }
-      failure {
-        mail bcc: '', body: "<b>Build status: Failed</b><br>Jenkins pipeline: ${env.JOB_NAME} <br>Build Number: ${env.BUILD_NUMBER} <br> GitLab project: starpu <br> Branch: ft_checkpoint", cc: '', charset: 'UTF-8', from: 'jenkins@gitlab.seis.iti.gr', mimeType: 'text/html', replyTo: '', subject: "JENKINS EMAIL NOTIFICATION (CI ERROR): Project name -> ${env.JOB_NAME}", to: "theioak@iti.gr,samuel.thibault@inria.fr"
-      }
-   }
-
-}

+ 40 - 0
examples/Jenkinsfile

@@ -0,0 +1,40 @@
+def FAILURE_STAGE
+pipeline {
+   agent any
+   stages {
+      stage('Clone repo') {
+         steps {
+            script{
+                FAILURE_STAGE=env.STAGE_NAME
+            }
+            cleanWs()
+            git credentialsId: 'gitlab', url: 'https://gitlab.seis.exa2pro.iti.gr/exa2pro/starpu.git', branch: 'fpga'
+            
+         }
+      }
+      stage('Build') {
+         steps {
+            script{
+                FAILURE_STAGE=env.STAGE_NAME
+            }
+            sh '''
+                ./autogen.sh
+                ./configure --prefix=/home/jenkins/.jenkins/workspace/starpu_pipeline_updated/lib --disable-build-examples
+                make
+                make install
+                '''
+         }
+      }
+      stage('Test') {
+         steps {
+            script{
+                FAILURE_STAGE=env.STAGE_NAME
+            }
+            sh '''
+                cd examples/cholesky
+                ./cholesky.sh
+                '''
+         }
+      }
+   }
+}