no mongo
All checks were successful
s434749-training/pipeline/head This commit looks good

This commit is contained in:
Alagris 2021-05-10 12:37:12 +02:00
parent 72c7327d13
commit 33491f6458
2 changed files with 12 additions and 4 deletions

View File

@ -2,13 +2,17 @@ pipeline {
agent { agent {
dockerfile true dockerfile true
} }
parameters {
string(name: 'batch_size', defaultValue: '512', description: 'size of batch')
string(name: 'learning_rate', defaultValue: '0.01', description: 'Learning rate')
string(name: 'epochs', defaultValue: '14', description: 'epochs')
}
stages { stages {
stage('Build') { stage('Build') {
steps { steps {
git 'https://git.wmi.amu.edu.pl/s434749/ium_434749.git' git 'https://git.wmi.amu.edu.pl/s434749/ium_434749.git'
copyArtifacts fingerprintArtifacts: true, projectName: 's434749-training', selector: lastSuccessful() copyArtifacts fingerprintArtifacts: true, projectName: 's434749-training', selector: lastSuccessful()
sh 'python3 train_model.py with "mode=eval"' sh "python3 train_model.py with 'mode=eval' 'batch_size=${params.batch_size}' 'learning_rate=${params.learning_rate}' 'epochs=${params.epochs}'"
script{ script{
def results = readFile "${env.WORKSPACE}/results.txt" def results = readFile "${env.WORKSPACE}/results.txt"
} }

View File

@ -2,13 +2,17 @@ pipeline {
agent { agent {
dockerfile true dockerfile true
} }
parameters {
string(name: 'batch_size', defaultValue: '512', description: 'size of batch')
string(name: 'learning_rate', defaultValue: '0.01', description: 'Learning rate')
string(name: 'epochs', defaultValue: '14', description: 'epochs')
}
stages { stages {
stage('Build') { stage('Build') {
steps { steps {
git 'https://git.wmi.amu.edu.pl/s434749/ium_434749.git' git 'https://git.wmi.amu.edu.pl/s434749/ium_434749.git'
copyArtifacts fingerprintArtifacts: true, projectName: 's434749-create-dataset', selector: lastSuccessful() copyArtifacts fingerprintArtifacts: true, projectName: 's434749-create-dataset', selector: lastSuccessful()
sh 'python3 train_model.py' sh "python3 train_model.py with 'batch_size=${params.batch_size}' 'learning_rate=${params.learning_rate}' 'epochs=${params.epochs}'"
} }
post { post {