Update Dockerfile

This commit is contained in:
Dawid 2021-04-08 22:31:18 +02:00
parent cf61bc31ac
commit 204ce01544

17
Jenkinsfile vendored
View File

@ -1,12 +1,19 @@
pipeline{
agent any
agent {
dockerfile true
}
parameters {
string(defaultValue: '100', description: 'Number of lines to cutoff', name: 'CUTOFF', trim: false)
}
stages{
stage('Docker') {
steps {
sh 'python3 ./stats.py'
}
}
stage('Stage 1'){
steps{
echo 'Init Jenkins File!'
echo 'Hello Jenkins!'
}
}
stage('checkout: Check out from version control'){
@ -17,14 +24,14 @@ pipeline{
stage('sh: Shell Script'){
steps{
withEnv(["CUTOFF=${params.CUTOFF}"]) {
sh "chmod 777 ./data.sh"
sh "./data.sh"
sh "chmod 777 ./script.sh"
sh "./script.sh"
}
}}
stage('Archive artifacts'){
steps{
archiveArtifacts 'test.csv'
archiveArtifacts 'validation.csv'
archiveArtifacts 'dev.csv'
archiveArtifacts 'train.csv'
}
}