-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
41 lines (38 loc) · 1.1 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
pipeline {
agent any
stages {
stage('Checkout') {
steps {
script {
dir('https://github.com/Kells02/Jenkins.git') {
git branch: 'main',
credentialsId: 'jenkinsgit',
url: 'https://github.com/Kells02/Jenkins.git'
}
}
}
}
stage('Create Folder') {
steps {
script {
dir('https://github.com/Kells02/Jenkins.git') {
if (!fileExists('Prueba')) {
sh 'mkdir Prueba'
} else {
echo 'La carpeta ya existe.'
}
}
}
}
}
stage('Debug') {
steps {
script {
dir('https://github.com/Kells02/Jenkins.git') {
sh 'ls -R'
}
}
}
}
}
}