Zad 03.Jenkins - stats

This commit is contained in:
Cezary Gałązkiewicz 2022-03-28 01:14:06 +02:00
parent e3dedba5ca
commit a2db97d44e
2 changed files with 22 additions and 0 deletions

21
Jenkinsfile_stats Normal file
View File

@ -0,0 +1,21 @@
pipeline {
agent any
stages {
stage('Checkout') {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's470623', url: 'https://git.wmi.amu.edu.pl/s470623/ium_470623.git']]])
}
}
stage('Copy artifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's470623-create-dataset', selector: lastSuccessful()
sh 'chmod u+x ./stats.sh'
sh './stats.sh'
}
}
stage('Archive') {
steps {
archiveArtifacts 'stats.txt'
}
}
}

1
stats.sh Normal file
View File

@ -0,0 +1 @@
wc -l steel_industry_data* > stats.txt