Refacere repo
This commit is contained in:
25
Jenkins_jobs/jenkinsfile
Normal file
25
Jenkins_jobs/jenkinsfile
Normal file
@@ -0,0 +1,25 @@
|
||||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
stage ('scm checkout') {
|
||||
steps {
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
stage ('primul job') {
|
||||
steps {
|
||||
sh 'pwd'
|
||||
sh 'echo "Hello! Bine ai venit la It_School Jenkins startup!" > jenkins.txt'
|
||||
sh 'ls -alh'
|
||||
}
|
||||
}
|
||||
stage ('job doi') {
|
||||
steps {
|
||||
script {
|
||||
def Age=21
|
||||
echo "I have ${Age} years old"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user