docker integration v8

This commit is contained in:
Karolina Oparczyk 2021-04-14 21:13:22 +02:00
parent d3cfc10455
commit bee8b8d8ec

View File

@ -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'
}
}
}
}