This commit is contained in:
Jan Nowak 2021-04-10 20:32:06 +02:00
parent a8dd740c2f
commit 182cb25077

77
Jenkinsfile vendored
View File

@ -1,38 +1,41 @@
pipeline { node {
agent { dockerfile true } stage('One') {
parameters {
string( properties([
defaultValue: '0', parameters([
description: 'Umożliwia zdefiniowanie wielkości odcięcia zbioru danych.', string(defaultValue: '',
name: 'CUTOFF', description: 'Kaggle username',
trim: false name: 'KAGGLE_USERNAME',
) trim: false),
string( password(defaultValue: '',
defaultValue: 'rokoch', description: 'Kaggle token',
description: 'Kaggle username', name: 'KAGGLE_KEY')
name: 'KAGGLE_USERNAME', ])
trim: false ]
) )
password( stage('Two') {
defaultValue: '',
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
name: 'KAGGLE_KEY' withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
) "KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
}
stages {
stage('checkout') { checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s426206/ium_426206.git']]])
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s426206/ium_426206.git']]]) checkout scm
}
} def image = docker.build("image")
image.inside {
stage('docker') { sh 'ls -l'
steps {
sh 'cat /etc/issue'
sh 'ls -l' }
sh 'chmod +x skrypt.sh'
sh './skrypt.sh 0'
}
}
}
}
} }
} }