Merge remote-tracking branch 'origin/stats'

# Conflicts:
#	Jenkinsfile
This commit is contained in:
Karolina Oparczyk 2021-04-14 16:20:27 +02:00
commit 17218cd3cb
2 changed files with 26 additions and 0 deletions

24
JenkinsfileStats Normal file
View File

@ -0,0 +1,24 @@
node {
stage('Preparation') {
properties([
parameters([
buildSelector(defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR')
])
]
)
}
stage('Clone repo') {
checkout([$class: 'GitSCM', branches: [[name: '*/stats']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s434765/ium_434765']]])
copyArtifacts filter: 'data_shuf', fingerprintArtifacts: true, projectName: 's434765-create-dataset', selector: buildParameter("BUILD_SELECTOR")
sh '''
#!/usr/bin/env bash
chmod 777 get_stats_simple.sh
./get_stats_simple.sh | tee output.txt
'''
archiveArtifacts 'output.txt'
}
}

2
get_stats_simple.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/bash
wc -l "data_shuf"