Dodanie 'Jenkinsfile2'
ex 6
This commit is contained in:
parent
f67b062fb9
commit
4903c5142a
29
Jenkinsfile2
Normal file
29
Jenkinsfile2
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
parameters{
|
||||||
|
buildSelector(
|
||||||
|
defaultSelector: lastSuccessful(),
|
||||||
|
name: 's478831-create-dataset',
|
||||||
|
description: 'Which build to use for copying artifacts'
|
||||||
|
)
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage('Checkout') {
|
||||||
|
steps {
|
||||||
|
script {
|
||||||
|
git credentialsId: 'jenkins-user-github', url: 'https://git.wmi.amu.edu.pl/s478831/ium_478831.git'
|
||||||
|
sh "ls -lart ./*"
|
||||||
|
sh "git branch -a"
|
||||||
|
sh "git checkout master"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage("Shell Script") {
|
||||||
|
steps {
|
||||||
|
sh "chmod u+x ./script2.sh"
|
||||||
|
sh "./script2.sh"
|
||||||
|
archiveArtifacts 'stats.csv'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user