Update Jenkinsfile4

This commit is contained in:
s464903 2024-05-11 11:50:42 +02:00
parent 113cdff5c4
commit 8282f85a65

View File

@ -24,7 +24,7 @@ pipeline {
steps {
script {
checkout scm
def testImage = docker.build("test-image", "-f Dockerfile2 .")
def testImage = docker.build("image", "-f Dockerfile2 .")
}
}
}
@ -32,7 +32,7 @@ pipeline {
stage('Run in container - Checkout') {
steps {
script {
docker.image('test-image').inside {
docker.image('image').inside {
// Step: Clone the git repository
checkout scm
}
@ -43,7 +43,7 @@ pipeline {
stage('Run in container - Build') {
steps {
script {
docker.image('test-image').inside {
docker.image('image').inside {
// Step: Build
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
@ -57,7 +57,7 @@ pipeline {
stage('Run in container - Run ipynb script') {
steps {
script {
docker.image('test-image').inside {
docker.image('image').inside {
docker.cp('Biblioteka_DL_trenowanie.ipynb', '/Biblioteka_DL_trenowanie.ipynb')
}
}
@ -67,7 +67,7 @@ pipeline {
stage('Run in container - Archive Artifacts') {
steps {
script {
docker.image('test-image').inside {
docker.image('image').inside {
// Step: Archive Artifacts
stash includes: 'model.keras', name: 'artifacts'
}