2023-04-21 10:36:24 +02:00
|
|
|
pipeline {
|
2023-04-21 14:05:54 +02:00
|
|
|
agent any
|
|
|
|
|
|
|
|
parameters{
|
|
|
|
buildSelector(
|
|
|
|
defaultSelector: lastSuccessful(),
|
|
|
|
description: 'Which build to use for copying artifacts',
|
|
|
|
name: 'BUILD_SELECTOR'
|
|
|
|
)
|
|
|
|
}
|
|
|
|
stages {
|
2023-04-21 12:16:27 +02:00
|
|
|
stage('Checkout') {
|
2023-04-21 10:36:24 +02:00
|
|
|
steps {
|
2023-04-21 14:05:54 +02:00
|
|
|
checkout scmGit(
|
|
|
|
branches: [[name: '*/master']],
|
|
|
|
extensions: [cleanBeforeCheckout()],
|
|
|
|
userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s487183/ium_z487183.git']]
|
|
|
|
)
|
2023-04-21 10:36:24 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Prepare stats') {
|
2023-04-21 12:16:27 +02:00
|
|
|
agent {
|
2023-06-29 17:46:10 +02:00
|
|
|
// no idea why it doesn't work
|
|
|
|
// docker {
|
|
|
|
// image 'mmoryl/ium:latest'
|
|
|
|
// reuseNode true
|
|
|
|
// }
|
|
|
|
dockerfile {
|
|
|
|
filename 'Lab4.dockerfile'
|
2023-04-21 12:16:27 +02:00
|
|
|
reuseNode true
|
|
|
|
}
|
|
|
|
}
|
2023-04-21 10:36:24 +02:00
|
|
|
steps {
|
2023-04-21 14:05:54 +02:00
|
|
|
copyArtifacts projectName: 'z487183-create-dataset'
|
2023-04-21 12:16:27 +02:00
|
|
|
sh './prepare-stats.sh'
|
2023-06-29 17:46:10 +02:00
|
|
|
sh 'mkdir sacred-files'
|
2023-06-29 00:45:15 +02:00
|
|
|
sh 'python3 property_model.py'
|
|
|
|
sh 'python3 predict_values.py'
|
2023-06-29 17:46:10 +02:00
|
|
|
// archiveArtifacts 'test_predictions.csv'
|
|
|
|
// archiveArtifacts 'train_predictions.csv'
|
|
|
|
// archiveArtifacts 'dev_predictions.csv'
|
|
|
|
// archiveArtifacts 'stats.txt'
|
|
|
|
archiveArtifacts 'my_runs/**'
|
2023-04-21 10:36:24 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|