diff --git a/JenkinsfileStats b/JenkinsfileStats index 3e50212..00d89a2 100644 --- a/JenkinsfileStats +++ b/JenkinsfileStats @@ -12,13 +12,17 @@ node { } 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' - } + docker.image('karopa/ium:latest').inside { + stage('Test') { + 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' + } + } + } } \ No newline at end of file