From 9b0116cb3ab34c0f639fb34ee9855aa2c8c654c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Wa=C5=82=C4=99sa?= Date: Sun, 27 Mar 2022 22:37:12 +0200 Subject: [PATCH] Dodanie 'Jenkinsfile-stats' --- Jenkinsfile-stats | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Jenkinsfile-stats diff --git a/Jenkinsfile-stats b/Jenkinsfile-stats new file mode 100644 index 0000000..15c063f --- /dev/null +++ b/Jenkinsfile-stats @@ -0,0 +1,37 @@ +pipeline { + agent any + parameters { + + } + stages { + stage('First step') { + steps { + echo 'Hello world!' + } + } + stage('Checkout') { + steps { + checkout([$class: 'GitSCM', branches: [[name: '*/feature']], extensions: [], userRemoteConfigs: [ + [url: 'https://git.wmi.amu.edu.pl/s478839/ium_478839.git']]]) + } + } + stage('Copy Artifacts') { + copyArtifacts fingerprintArtifacts: true, projectName: 's478839-create-dataset', selector: buildParameter('BUILD_SELECTOR') + } + stage('Shell Script') { + steps { + withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", + "KAGGLE_KEY=${params.KAGGLE_KEY}"]) { + sh "chmod +x -R ${env.WORKSPACE}" + sh './skrypt-simplestats.sh' + } + } + } + stage('Arichve') { + steps{ + archiveArtifacts artifacts: 'understat.csv', followSymlinks: false + + } + } + } +} \ No newline at end of file