Revert "added jenkinsfile"

This reverts commit de3ff0ef9f.
This commit is contained in:
zgolebiewska 2024-05-26 13:59:08 +02:00
parent 32c580f9ba
commit 6528a26016
1 changed files with 0 additions and 85 deletions

View File

@ -1,85 +0,0 @@
pipeline {
agent {
dockerfile {
filename 'Dockerfile'
label 'docker'
}
}
triggers {
upstream(upstreamProjects: 's123456-create-dataset', threshold: hudson.model.Result.SUCCESS)
}
parameters {
string(
defaultValue: '--epochs 100 --batch_size 32 --learning_rate 0.01',
description: 'Parametry trenowania',
name: 'TRAINING_PARAMS'
)
}
environment {
DATASET_PROJECT = 's123456-create-dataset'
DATA_DIR = 'data'
}
stages {
stage('Clone repository') {
steps {
checkout scm
}
}
stage('Copy Dataset') {
steps {
script {
copyArtifacts(
projectName: "${env.DATASET_PROJECT}",
selector: lastSuccessful(),
target: "${env.DATA_DIR}"
)
}
}
}
stage('Set execute permission') {
steps {
script {
sh 'chmod +x data_processing.sh'
}
}
}
stage('Run shell script') {
steps {
script {
sh './data_processing.sh'
}
}
post {
success {
archiveArtifacts artifacts: 'results.txt', allowEmptyArchive: true
}
}
}
stage('Train Model') {
steps {
sh "python3 model.py ${params.TRAINING_PARAMS}"
}
}
stage('Archive Model') {
steps {
archiveArtifacts artifacts: 'orange_quality_model_tf.h5', allowEmptyArchive: true
archiveArtifacts artifacts: 'predictions_tf.json', allowEmptyArchive: true
}
}
}
post {
always {
cleanWs()
}
}
}