From 0dbf25be65c62fc8a01de4feb1d1a42cb739d8b3 Mon Sep 17 00:00:00 2001 From: dzaitsev Date: Sat, 3 May 2025 14:15:59 +0300 Subject: [PATCH] updating and testing ImageMatcher pipeline --- build/jenkins/ImageMatcher | 54 ++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 29 deletions(-) diff --git a/build/jenkins/ImageMatcher b/build/jenkins/ImageMatcher index 0f36ab6..5f78eb7 100644 --- a/build/jenkins/ImageMatcher +++ b/build/jenkins/ImageMatcher @@ -9,7 +9,7 @@ pipeline { tools { // Define any tools needed specifically for building ImageMatcher - git 'Default' // Git is NOT needed for checkout in this pipeline + // git 'Default' // Git is NOT needed for checkout in this pipeline // dotnetsdk 'dotnet-sdk' // If ImageMatcher is a .NET project } @@ -24,38 +24,34 @@ pipeline { } stages { - // Use a dir() step to ensure all subsequent steps run in the shared workspace - stage('Run in Shared Workspace') { - steps { - dir(env.SHARED_WORKSPACE) { - echo "Changing directory to shared workspace: ${env.SHARED_WORKSPACE}" + // Use a dir() step to ensure all subsequent stages/steps run in the shared workspace + dir(env.SHARED_WORKSPACE) { + echo "Changing directory to shared workspace: ${env.SHARED_WORKSPACE}" - // Removed: stage('Checkout ImageMatcher Code') - Code is checked out by Dependencies pipeline + // Removed: stage('Checkout ImageMatcher Code') - Code is checked out by Dependencies pipeline - stage('Build ImageMatcher') { - steps { - echo 'Building ImageMatcher...' - // Add steps here to build the ImageMatcher project - // This might involve compiling code, running build scripts, etc. - // Based on your original script, this likely involves running a build.cmd - // The code is expected to be in the 'gps-denied' subdirectory relative to the shared workspace - dir('gps-denied\\image-matcher') { // Change directory to the ImageMatcher build location relative to SHARED_WORKSPACE - bat 'build.cmd' // Replace with the actual build command - } - } + stage('Build ImageMatcher') { + steps { + echo 'Building ImageMatcher...' + // Add steps here to build the ImageMatcher project + // This might involve compiling code, running build scripts, etc. + // Based on your original script, this likely involves running a build.cmd + // The code is expected to be in the 'gps-denied' subdirectory relative to the shared workspace + dir('gps-denied\\image-matcher') { // Change directory to the ImageMatcher build location relative to SHARED_WORKSPACE + bat 'build.cmd' // Replace with the actual build command } - - // Optional: Archive ImageMatcher build artifacts if needed by Azaion Build - // stage('Archive ImageMatcher Artifacts') { - // steps { - // echo 'Archiving ImageMatcher artifacts...' - // // Path is relative to the current directory (SHARED_WORKSPACE) - // archiveArtifacts artifacts: 'path/to/imagematcher/build/output/**' // Adjust path - // } - // } - } // end dir(env.SHARED_WORKSPACE) + } } - } + + // Optional: Archive ImageMatcher build artifacts if needed by Azaion Build + // stage('Archive ImageMatcher Artifacts') { + // steps { + // echo 'Archiving ImageMatcher artifacts...' + // // Path is relative to the current directory (SHARED_WORKSPACE) + // archiveArtifacts artifacts: 'path/to/imagematcher/build/output/**' // Adjust path + // } + // } + } // end dir(env.SHARED_WORKSPACE) } post {