From ce08a2b277b5d3f564f82f561b6a473b1236e308 Mon Sep 17 00:00:00 2001 From: Natalia Szymczyk Date: Thu, 20 Apr 2023 23:19:33 +0200 Subject: [PATCH] jenkins2 --- Jenkinsfile | 2 +- Jenkinsfile2 | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 Jenkinsfile2 diff --git a/Jenkinsfile b/Jenkinsfile index fabc15b..4c7015f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,7 +21,7 @@ pipeline { sh './script.sh' } } - stage('ArchiveArtifacts!') { + stage('ArchiveArtifacts') { steps { archiveArtifacts 'liver.data.train' archiveArtifacts 'liver.data.test' diff --git a/Jenkinsfile2 b/Jenkinsfile2 new file mode 100644 index 0000000..b4a5743 --- /dev/null +++ b/Jenkinsfile2 @@ -0,0 +1,28 @@ +pipeline { + agent any + + stages { + stage('Checkout') { + steps { + checkout scm + } + } + stage('CopyArtifacts'){ + steps { + copyArtifacts fingerprintArtifacts: true, projectName: 'z-s487186-create-dataset', selector: lastSuccessful() + } + } + stage('Script') { + steps { + sh 'echo test' + } + } + // stage('ArchiveArtifacts') { + // steps { + // archiveArtifacts 'liver.data.train' + // archiveArtifacts 'liver.data.test' + // archiveArtifacts 'liver.data.dev' + // } + // } + } +} \ No newline at end of file