updating and testing ImageMatcher pipeline

This commit is contained in:
dzaitsev
2025-05-03 14:15:59 +03:00
parent 4c12a3244f
commit 0dbf25be65
+25 -29
View File
@@ -9,7 +9,7 @@ pipeline {
tools { tools {
// Define any tools needed specifically for building ImageMatcher // 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 // dotnetsdk 'dotnet-sdk' // If ImageMatcher is a .NET project
} }
@@ -24,38 +24,34 @@ pipeline {
} }
stages { stages {
// Use a dir() step to ensure all subsequent steps run in the shared workspace // Use a dir() step to ensure all subsequent stages/steps run in the shared workspace
stage('Run in Shared Workspace') { dir(env.SHARED_WORKSPACE) {
steps { echo "Changing directory to shared workspace: ${env.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') { stage('Build ImageMatcher') {
steps { steps {
echo 'Building ImageMatcher...' echo 'Building ImageMatcher...'
// Add steps here to build the ImageMatcher project // Add steps here to build the ImageMatcher project
// This might involve compiling code, running build scripts, etc. // This might involve compiling code, running build scripts, etc.
// Based on your original script, this likely involves running a build.cmd // 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 // 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 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 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 { post {