2021-04-20 21:12:58 +02:00
|
|
|
pipeline{
|
|
|
|
agent any
|
|
|
|
stages{
|
|
|
|
stage('checkout: Check out from version control'){
|
|
|
|
steps{
|
|
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '321737ab-1c4d-475f-9667-513cf19ba596', url: 'https://git.wmi.amu.edu.pl/s434780/ium_434780.git']]])
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Copy artifacts'){
|
|
|
|
steps{
|
|
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 's434780-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('sh: Shell Script'){
|
|
|
|
steps{
|
2021-04-20 21:25:16 +02:00
|
|
|
sh '''
|
|
|
|
chmod +x script.sh
|
|
|
|
./stats.sh'''
|
2021-04-20 21:12:58 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Archive artifacts'){
|
|
|
|
steps{
|
|
|
|
archiveArtifacts 'stats.txt'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|