2021-03-25 11:58:05 +01:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
//Definijuemy parametry, które będzie można podać podczas wywoływania zadania
|
|
|
|
parameters {
|
|
|
|
string (
|
2021-03-28 21:14:26 +02:00
|
|
|
defaultValue: '10000!',
|
|
|
|
description: 'Obcięcie zbioru',
|
|
|
|
name: 'CUTOFF',
|
2021-03-25 11:58:05 +01:00
|
|
|
trim: false
|
|
|
|
)
|
|
|
|
}
|
|
|
|
stages {
|
2021-03-25 12:38:20 +01:00
|
|
|
stage('checkout: Check out from version control') {
|
|
|
|
steps {
|
|
|
|
git credentialsId: 'f746c8e0-e974-4758-838d-1920a7b0e3dc', url: 'https://git.wmi.amu.edu.pl/s434695/ium_434695.git'
|
|
|
|
}
|
|
|
|
}
|
2021-03-28 21:02:12 +02:00
|
|
|
stage('sh: Shell Script') {
|
2021-03-25 11:58:05 +01:00
|
|
|
steps {
|
2021-03-28 21:02:12 +02:00
|
|
|
sh 'chmod +x skrypt.sh'
|
|
|
|
sh './skrypt.sh ${CUTOFF}'
|
2021-03-25 11:58:05 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|