2021-04-24 13:31:02 +02:00
|
|
|
pipeline {
|
|
|
|
agent none
|
|
|
|
stages {
|
|
|
|
stage('copy files') {
|
|
|
|
agent any
|
|
|
|
steps {
|
|
|
|
sh '''
|
|
|
|
cp ./lab3/script.sh .
|
|
|
|
cp ./lab3/python_script.py .
|
|
|
|
cp ./lab3/Dockerfile .
|
|
|
|
cp ./lab3/requirements.txt .
|
|
|
|
'''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('docker') {
|
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 'kubakonieczny/ium:v1.0'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('script') {
|
|
|
|
steps {
|
|
|
|
sh '''
|
|
|
|
chmod +x script.sh
|
|
|
|
./script.sh > stats.txt'''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('archive artifact') {
|
|
|
|
steps {
|
|
|
|
archiveArtifacts 'stats.txt'
|
|
|
|
}
|
|
|
|
}
|
2021-04-11 18:46:58 +02:00
|
|
|
}
|
2021-03-28 17:41:49 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|