From c1207ceda51d36d6c1b44c4d9976459930ce4f88 Mon Sep 17 00:00:00 2001 From: jakubknczny Date: Sun, 18 Apr 2021 20:42:32 +0200 Subject: [PATCH] test whats up --- lab2/JCD-backup | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 lab2/JCD-backup diff --git a/lab2/JCD-backup b/lab2/JCD-backup new file mode 100644 index 0000000..7b32b33 --- /dev/null +++ b/lab2/JCD-backup @@ -0,0 +1,35 @@ +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' + } + } + } + } + } +}