Merge remote-tracking branch 'origin/stats'
# Conflicts: # Jenkinsfile
This commit is contained in:
commit
17218cd3cb
24
JenkinsfileStats
Normal file
24
JenkinsfileStats
Normal 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
2
get_stats_simple.sh
Normal file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
wc -l "data_shuf"
|
Loading…
Reference in New Issue
Block a user