ium_444501/Jenkinsfile2

33 lines
813 B
Plaintext
Raw Permalink Normal View History

2022-03-27 21:39:18 +02:00
pipeline {
2022-04-02 23:46:59 +02:00
agent {
docker {image 'zadanie'}
}
2022-03-27 21:39:18 +02:00
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
}
stages {
stage('Check out from version control') {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444501', url: 'https://git.wmi.amu.edu.pl/s444501/ium_444501.git']]])
}
}
stage('Shell Script') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's444501-create-dataset', selector: buildParameter('BUILD_SELECTOR')
2022-04-02 23:53:56 +02:00
2022-04-03 00:21:21 +02:00
//sh 'chmod u+x ./stats.sh'
2022-04-02 23:46:59 +02:00
//sh './stats.sh'
2022-04-03 00:21:21 +02:00
sh "python stats.py"
2022-03-27 21:39:18 +02:00
archiveArtifacts 'stats.txt'
2022-03-27 21:45:22 +02:00
}
}
}
2022-03-27 21:39:18 +02:00
}