Update Jenkinsfile4
This commit is contained in:
parent
d0b0d1cbc8
commit
d603b5373c
34
Jenkinsfile4
34
Jenkinsfile4
@ -33,30 +33,22 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
docker.image('test-image').inside {
|
docker.image('test-image').inside {
|
||||||
stage('Checkout') {
|
// Step: Clone the git repository
|
||||||
steps {
|
checkout scm
|
||||||
// Step: Clone the git repository
|
|
||||||
checkout scm
|
// Step: Build
|
||||||
}
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||||
|
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
||||||
|
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
||||||
|
sh 'kaggle datasets list'
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Build') {
|
// Step: Run ipynb script
|
||||||
steps {
|
sh "mkdir /notebooks"
|
||||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
sh "cp Biblioteka_DL_trenowanie.ipynb /notebooks/Biblioteka_DL_trenowanie.ipynb"
|
||||||
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
|
||||||
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
|
||||||
sh 'kaggle datasets list'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage('Run ipynb script') {
|
// Step: Archive Artifacts
|
||||||
steps {
|
stash includes: 'model.keras', name: 'artifacts'
|
||||||
sh "mkdir /notebooks"
|
|
||||||
sh "cp Biblioteka_DL_trenowanie.ipynb /notebooks/Biblioteka_DL_trenowanie.ipynb"
|
|
||||||
archiveArtifacts 'model.keras'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user