ium_444501/Jenkinsfile2
2022-04-03 00:21:21 +02:00

33 lines
813 B
Plaintext

pipeline {
agent {
docker {image 'zadanie'}
}
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')
//sh 'chmod u+x ./stats.sh'
//sh './stats.sh'
sh "python stats.py"
archiveArtifacts 'stats.txt'
}
}
}
}