From c1d399ae93c591ad9fb5e4f697254b6d2ac00d40 Mon Sep 17 00:00:00 2001
From: Raghunandan Netrapalli Madhusudhan <raghunandan.madhusudhan@in-tech.com>
Date: Mon, 24 Mar 2025 10:46:13 +0100
Subject: [PATCH] Remove windows build and update jenkinsfile

---
 utils/ci/Jenkinsfile | 120 +++----------------------------------------
 1 file changed, 8 insertions(+), 112 deletions(-)

diff --git a/utils/ci/Jenkinsfile b/utils/ci/Jenkinsfile
index ee9f73d10..10e51c01e 100644
--- a/utils/ci/Jenkinsfile
+++ b/utils/ci/Jenkinsfile
@@ -76,7 +76,7 @@ spec:
         }
       }
     }
-    stage('Linux and Windows build') {
+    stage('Build astas with gecco') {
       parallel {
         stage('Linux') {
           agent {
@@ -94,141 +94,37 @@ spec:
             PYTHON_EXECUTABLE = 'python3'
           }
           stages {
-            stage('Linux: Cleanup and prepare dependencies') {
+            stage('Linux: Cleanup') {
               steps {
                 container('openpass-build') {
                   sh 'bash repo/utils/ci/scripts/build_prepare.sh'
                 }
               }
             }
-            stage('Linux: Code compliance') {
+            stage('Linux: Pull gtgen') {
               steps {
                 container('openpass-build') {
-                  sh 'bash repo/utils/ci/scripts/25_check_inline_docu.sh'
-                  sh 'bash repo/utils/ci/scripts/60_check_clang_format.sh'
-                  sh 'bash repo/utils/ci/scripts/61_check_eol.sh'
-                  sh 'bash repo/utils/ci/scripts/62_static_analysis.sh'
+                  sh 'bash repo/utils/ci/scripts/pull_gtgen.sh'
                 }
               }
             }
-            stage('Linux: Build core and run end-to-end tests') {
+            stage('Linux: Pull gecco') {
               steps {
                 container('openpass-build') {
-                  sh 'bash repo/utils/ci/scripts/build_core_and_e2e.sh'
+                  sh 'bash repo/utils/ci/scripts/pull_gecco.sh'
                 }
               }
             }
-            stage('Linux: Build and run unit tests') {
-              steps {
-                container('openpass-build') {
-                  sh 'bash repo/utils/ci/scripts/build_unittests.sh'
-                }
-              }
-            }
-            stage('Linux: Cleanup') {
+            stage('Linux: Pull opTestrunner') {
               steps {
                 container('openpass-build') {
-                  sh 'bash repo/utils/ci/scripts/cleanup.sh'
-                }
-              }
-            }
-            stage('Linux: Deploy') {
-              when {
-                anyOf {
-                  tag pattern: "v.*", comparator: "REGEXP"
-                  branch "develop"
-                }
-              }
-              steps {
-                container('jnlp') {
-                  sshagent ( ['projects-storage.eclipse.org-bot-ssh']) {
-                    sh 'bash repo/utils/ci/scripts/publish_artifacts.sh'
-                  }
-                }
-              }
-            }
-            stage('Linux: Deploy Docs') {
-              steps {
-                container('openpass-build')
-                {
-                  withCredentials([string(credentialsId: 'gitlab-api-token', variable: 'GITLAB_BOT_TOKEN')])
-                  {
-                    sh 'bash repo/utils/ci/scripts/auto_deploy_docu.sh'
-                  }
-                }
-              }
-            }
-          }
-          post {
-            always {
-              archiveArtifacts allowEmptyArchive: true, artifacts: 'artifacts/**', followSymlinks: false
-              junit allowEmptyResults: true, testResults: 'build/**/*Tests.xml,repo/sim/tests/endToEndTests/pyOpenPASS/result_*.xml'
-            }
-          }
-        }
-        stage('Windows') {
-          agent {
-            node {
-              label 'windows10'
-              customWorkspace "opSimulation"
-            }
-          }
-          environment {
-            MSYSTEM = 'MINGW64'
-            CHERE_INVOKING = 'yes'
-            PYTHON_EXECUTABLE = 'C:/op/python/python.exe'
-            OP_BASE_DIR = '/w'
-            OP_REPO_DIR = '/w/repo'
-            OP_DEPS_DIR = '/w/deps'
-            CCACHE_DIR = '/w/ccache'
-          }
-          stages {
-            stage('Windows: Cleanup and prepare dependencies') {
-              steps {
-                bat 'subst W: %WORKSPACE%'
-                dir('W:/') {
-                  bat 'C:\\op\\msys64\\usr\\bin\\bash -lc repo/utils/ci/scripts/build_prepare.sh'
-                }
-              }
-            }
-            stage('Windows: Build core and run end-to-end tests') {
-              steps {
-                dir('W:/') {
-                  bat 'C:\\op\\msys64\\usr\\bin\\bash -lc repo/utils/ci/scripts/build_core_and_e2e.sh'
-                }
-              }
-            }
-            stage('Windows: Build and run unit tests') {
-              steps {
-                dir('W:/') {
-                  bat 'C:\\op\\msys64\\usr\\bin\\bash -lc repo/utils/ci/scripts/build_unittests.sh'
-                }
-              }
-            }
-            stage('Windows: Cleanup') {
-              steps {
-                dir('W:/') {
-                  bat 'C:\\op\\msys64\\usr\\bin\\bash -lc repo/utils/ci/scripts/cleanup.sh'
-                }
-              }
-            }
-            stage('Windows: Deploy') {
-              when {
-                anyOf {
-                  tag pattern: "v.*", comparator: "REGEXP"
-                  branch "develop"
-                }
-              }
-              steps {
-                sshagent ( ['projects-storage.eclipse.org-bot-ssh']) {
-                  bat 'C:\\op\\msys64\\usr\\bin\\bash -lc repo/utils/ci/scripts/publish_artifacts.sh'
+                  sh 'bash repo/utils/ci/scripts/pull_optestrunner.sh'
                 }
               }
             }
           }
           post {
             always {
-              bat 'subst W: /d'
               archiveArtifacts allowEmptyArchive: true, artifacts: 'artifacts/**', followSymlinks: false
               junit allowEmptyResults: true, testResults: 'build/**/*Tests.xml,repo/sim/tests/endToEndTests/pyOpenPASS/result_*.xml'
             }
-- 
GitLab