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