diff options
| author | 2025-07-22 21:04:37 -0500 | |
|---|---|---|
| committer | 2025-07-22 21:04:37 -0500 | |
| commit | 4cae3c2244e14dd5c24c040ecff12a9d2c0cde4f (patch) | |
| tree | 72c0de61f8ea3cb6ae76369402ac9245a878eb81 | |
| parent | Fixing Jenkins Setup: Attempt2 (diff) | |
update the Jenkinsfile to explicitly tell the docker build command which file to use with the -f flag: Attempt3
| -rw-r--r-- | Jenkinsfile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index e8d568d..83be0ac 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,9 +6,9 @@ pipeline { steps {
script {
echo 'Building the Docker image...'
- // Build the Docker image from the Dockerfile in the current directory
+ // Build the Docker image from the Dockerfile.jenkins in the current directory
// and tag it as 'lush-arch-test'
- sh 'docker build -t lush-arch-test .'
+ sh 'docker build -f Dockerfile.jenkins -t lush-arch-test .'
}
}
}
@@ -61,4 +61,4 @@ pipeline { sh 'docker rmi lush-arch-test || true'
}
}
-}
\ No newline at end of file +}
|
