Update 'lab6/Jenkinsfile'
All checks were successful
s449288-training/pipeline/head This commit looks good
All checks were successful
s449288-training/pipeline/head This commit looks good
This commit is contained in:
parent
b0e1ecd6a8
commit
4664e19d2e
9
lab6/Jenkinsfile
vendored
9
lab6/Jenkinsfile
vendored
@ -2,6 +2,13 @@ pipeline {
|
|||||||
agent {
|
agent {
|
||||||
dockerfile true
|
dockerfile true
|
||||||
}
|
}
|
||||||
|
parameters {
|
||||||
|
string(
|
||||||
|
defaultValue: '100',
|
||||||
|
description: 'Example training parameter',
|
||||||
|
name: 'EPOCHS_NUM'
|
||||||
|
)
|
||||||
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Stage 1') {
|
stage('Stage 1') {
|
||||||
steps {
|
steps {
|
||||||
@ -10,7 +17,7 @@ pipeline {
|
|||||||
copyArtifacts filter: '*', projectName: 's449288-create-dataset'
|
copyArtifacts filter: '*', projectName: 's449288-create-dataset'
|
||||||
echo 'Datasets copied'
|
echo 'Datasets copied'
|
||||||
echo 'Conducting simple regression model test'
|
echo 'Conducting simple regression model test'
|
||||||
sh 'python3 simple_regression.py'
|
sh 'python3 simple_regression.py $EPOCHS_NUM'
|
||||||
echo 'Model and predictions saved'
|
echo 'Model and predictions saved'
|
||||||
sh 'head lego_reg_results.csv'
|
sh 'head lego_reg_results.csv'
|
||||||
sh 'ls -lh lego_reg_model'
|
sh 'ls -lh lego_reg_model'
|
||||||
|
Loading…
Reference in New Issue
Block a user