updated dockerfile
This commit is contained in:
parent
9689d9c2f9
commit
d348127494
@ -1,10 +1,6 @@
|
||||
pipeline {
|
||||
agent{
|
||||
dockerfile {
|
||||
filename: 'lab4.dockerfile',
|
||||
reuseNode: true,
|
||||
}
|
||||
}
|
||||
agent any
|
||||
|
||||
parameters{
|
||||
buildSelector(
|
||||
defaultSelector: lastSuccessful(),
|
||||
@ -17,30 +13,29 @@ pipeline{
|
||||
steps {
|
||||
checkout scmGit(
|
||||
branches: [[name: '*/master']],
|
||||
userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s458023/ium_458023.git']]
|
||||
userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s487183/ium_458023.git']]
|
||||
)
|
||||
}
|
||||
}
|
||||
stage('Prepare image and stats') {
|
||||
stage('Prepare stats') {
|
||||
agent {
|
||||
// docker {
|
||||
// image 's458023/ium:1'
|
||||
// reuseNode true
|
||||
// }
|
||||
dockerfile {
|
||||
filename 'lab4.dockerfile'
|
||||
reuseNode true
|
||||
}
|
||||
}
|
||||
steps {
|
||||
script {
|
||||
copyArtifacts filter: 'wines_test.csv,wines_dev.csv,wines_train.csv', fingerprintArtifacts: true, projectName: 'z-s458023-create-dataset', selector: workspace()
|
||||
// pobranie obrazu dockera
|
||||
docker.image('s458023/ium:1').pull()
|
||||
|
||||
// testowanie kodu
|
||||
docker.withRegistry('https://registry.hub.docker.com', 'credentials-id') {
|
||||
// Zbuduj kontener Dockerowy
|
||||
docker.image('s458023/ium').inside {
|
||||
// Wykonaj kolejne polecenia w kontenerze
|
||||
sh 'ls -la'
|
||||
sh 'echo "done"'
|
||||
// itd.
|
||||
}
|
||||
}
|
||||
}
|
||||
sh './wines_train.py
|
||||
sh 'predict.py'
|
||||
copyArtifacts projectName: 'z-s458023-create-dataset'
|
||||
sh 'bash /prepare_dataset.sh'
|
||||
sh 'mkdir sacred-files'
|
||||
sh 'python3 wines_train.py'
|
||||
sh 'python3 predict.py'
|
||||
archiveArtifacts 'my_runs/**'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user