diff --git a/Jenkinstats b/Jenkinstats new file mode 100644 index 0000000..e9636f9 --- /dev/null +++ b/Jenkinstats @@ -0,0 +1,26 @@ +pipeline { + agent any + stages { + stage('Checkout') { + steps { + checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [ + [url: 'https://git.wmi.amu.edu.pl/s478841/ium_478841.git']]]) + } + } + stage('Copy Artifacts') { + steps { + copyArtifacts fingerprintArtifacts: true, projectName: 's478841-create-dataset', selector: lastSuccessful() + } + } + stage('sh: Shell Script') { + steps { + sh './data-stats.sh' + } + } + stage('Archive artifacts') { + steps { + archiveArtifacts artifacts: 'stats.txt', followSymlinks: false + } + } + } +} \ No newline at end of file