categorize jenkins stage
This commit is contained in:
parent
17f6ffef8d
commit
62506b9399
30
Jenkinsfile
vendored
30
Jenkinsfile
vendored
@ -1,14 +1,30 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent { dockerfile true }
|
agent { dockerfile true }
|
||||||
stages {
|
stages {
|
||||||
stage('Hello') {
|
stage('Checkout') {
|
||||||
steps {
|
steps {
|
||||||
echo 'Hello World'
|
checkout([$class: 'GitSCM',
|
||||||
checkout scm;
|
branches: [[name: '*/master']],
|
||||||
copyArtifacts(projectName: 'ASR-eval');
|
doGenerateSubmoduleConfigurations: false,
|
||||||
sh 'chmod +x ./service.sh';
|
extensions: [],
|
||||||
sh './service.sh';
|
submoduleCfg: [],
|
||||||
archiveArtifacts artifacts: 'lines_count.txt', fingerprint: true;
|
userRemoteConfigs: [[
|
||||||
|
url: 'https://git.wmi.amu.edu.pl/s452111/s452111-mlworkshops']]])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Copy Artifacts') {
|
||||||
|
steps {
|
||||||
|
copyArtifacts filter: 'wikiniews_results.tsv, fingerprintArtifacts: true,
|
||||||
|
projectName: 'ASR-eval', selector: lastSuccessful()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Count words') {
|
||||||
|
sh 'chmod +x ./service.sh'
|
||||||
|
sh './service.sh wikiniews_results.tsv'
|
||||||
|
}
|
||||||
|
stage('Archive artifacts') {
|
||||||
|
steps {
|
||||||
|
archiveArtifacts: 'lines_count.txt', fingerprint: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
wc -l ./new_file > lines_count.txt
|
wc -l wikiniews_results.tsv > lines_count.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user