This commit is contained in:
s452108 2020-04-03 12:38:43 +02:00
parent 3cb87e0b7d
commit 002c895762
2 changed files with 19 additions and 2 deletions

2
count.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/bash
wc -l > file.txt

View File

@ -2,9 +2,24 @@ pipeline {
agent any
stages {
stage('Stage 1') {
stage('Cloning GIT') {
steps {
echo 'Hello World2222'
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s452108/s452108-mlworkshops']]])
}
}
stage('Copy Artifacts') {
steps {
copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful()
}
}
stage('Count words') {
steps {
sh label: '', script: 'count.sh'
}
}
stage('Archive atifacts') {
steps {
archiveArtifacts 'file.txt'
}
}
}