download from docker hub?

This commit is contained in:
Jan Nowak 2021-04-10 23:29:15 +02:00
parent 9d752838d9
commit 766d597dea

View File

@ -16,13 +16,15 @@ pipeline {
stage('Clone repo') {
steps {
script {
docker.image("rokoch/ium:01").inside {
sh 'rm -rf ium_426206'
sh 'git clone https://git.wmi.amu.edu.pl/s426206/ium_426206.git'
sh "chmod +x ium_426206/stats.sh"
sh "ium_426206/stats.sh | tee output.txt"
archiveArtifacts 'output.txt'
}
//docker.withRegistry("https://hub.docker.com/r/rokoch/ium"){
docker.image("rokoch/ium:01").inside {
sh 'rm -rf ium_426206'
sh 'git clone https://git.wmi.amu.edu.pl/s426206/ium_426206.git'
sh "chmod +x ium_426206/stats.sh"
sh "ium_426206/stats.sh | tee output.txt"
archiveArtifacts 'output.txt'
}
//}
}
}
}