ium_470607/lab2/JCD-backup

36 lines
922 B
Plaintext
Raw Normal View History

2021-04-18 20:42:32 +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 {
dockerfile true
}
stages {
stage('script') {
steps {
sh '''
chmod +x script.sh
./script.sh > stats.txt'''
}
}
stage('archive artifact') {
steps {
archiveArtifacts 'stats.txt'
}
}
}
}
}
}