test mail
This commit is contained in:
parent
00e1272c10
commit
18c3c2c8c9
@ -20,31 +20,33 @@ pipeline {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('copy artifacts')
|
stage('copy artifacts')
|
||||||
{
|
|
||||||
steps
|
|
||||||
{
|
{
|
||||||
copyArtifacts(fingerprintArtifacts: true, projectName: 's434760-create-dataset', selector: buildParameter('WHICH_BUILD'))
|
steps
|
||||||
|
{
|
||||||
|
copyArtifacts(fingerprintArtifacts: true, projectName: 's434760-create-dataset', selector: buildParameter('WHICH_BUILD'))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
stage('train')
|
||||||
stage('train')
|
|
||||||
{
|
|
||||||
steps
|
|
||||||
{
|
{
|
||||||
sh 'python3.8 train.py ${params.BATCH_SIZE} ${params.EPOCHS}'
|
steps
|
||||||
|
{
|
||||||
|
catchError {
|
||||||
|
sh 'python3.8 train.py ${BATCH_SIZE} ${EPOCHS}'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
stage('archive artifacts') {
|
||||||
stage('archive artifacts') {
|
steps {
|
||||||
steps {
|
archiveArtifacts 'model.h5'
|
||||||
archiveArtifacts 'model.h5'
|
}
|
||||||
}
|
}
|
||||||
}
|
stage('send email') {
|
||||||
stage('send email') {
|
steps {
|
||||||
steps {
|
emailext body: currentBuild.result,
|
||||||
emailext body: 'build status: ${currentBuild.result}',
|
subject: 's434760 - train',
|
||||||
subject: 's434760 - train',
|
to: 'annnow19@st.amu.edu.pl'
|
||||||
to: 'annnow19@st.amu.edu.pl'
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user