s460929-metrics/Jenkinsfile
2020-04-10 19:28:33 +02:00

42 lines
857 B
Groovy

pipeline {
agent { dockerfile true }
stages {
stage('Githubcheck')
{
steps{
git 'https://git.wmi.amu.edu.pl/s460929/s460929-metrics.git'
}
}
stage("CopyArtifacts")
{
steps{
copyArtifacts fingerprintArtifacts: true, projectName: 's460929-metrics', optional: true, selector: lastWithArtifacts()
}
}
stage("Plot")
{
steps{
sh label: '', script: 'python script.py'
}
}
stage("Result")
{
steps{
archiveArtifacts artifacts: 'plot.png', allowEmptyArchive: true
}
}
stage('Hello') {
steps {
echo 'Hello World'
// sh label:'', script: 'whoami'
}
}
}
}