39 lines
1.2 KiB
Groovy
39 lines
1.2 KiB
Groovy
pipeline {
|
|
agent any
|
|
stages {
|
|
stage('Stage 1') {
|
|
steps {
|
|
echo 'Hello world!'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
pipeline{
|
|
agent any
|
|
properties([parameters([text(defaultValue: '100', description: 'Number of lines to cutoff', name: 'CUTOFF')])])
|
|
stages{
|
|
stage('Stage 1'){
|
|
steps{
|
|
echo 'Init Jenkins file!'
|
|
}
|
|
}
|
|
stage('checkout: Check out from version control'){
|
|
steps{
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '87e24204-a0e1-4840-b235-2b993c922d83', url: 'https://git.wmi.amu.edu.pl/s434804/ium_434804']]])
|
|
}
|
|
}
|
|
stage('sh: Shell Script'){
|
|
steps{
|
|
withEnv(["CUTOFF=${params.CUTOFF}"])
|
|
./data.sh
|
|
}
|
|
}
|
|
stage('Archive artifacts'){
|
|
steps{
|
|
archiveArtifacts 'test.csv'
|
|
archiveArtifacts 'validation.csv'
|
|
archiveArtifacts 'train.csv'
|
|
}
|
|
}
|
|
}
|
|
} |