-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
44 lines (40 loc) · 1.01 KB
/
Jenkinsfile
File metadata and controls
44 lines (40 loc) · 1.01 KB
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
42
43
44
pipeline {
agent any
environment {
GITHUB_TOKEN = credentials('GitHubToken')
}
stages {
stage('Build') {
steps {
echo 'Building En rama distinta de main...'
// Comandos para construir el proyecto
sh 'echo "Compilando el proyecto..."'
}
}
stage('Test') {
steps {
echo 'Testing...'
// Comandos para ejecutar pruebas
sh 'echo "Ejecutando pruebas..."'
}
}
stage('Deploy') {
steps {
echo 'Deploying...'
// Comandos para desplegar el proyecto
sh 'echo "Desplegando el proyecto..."'
}
}
}
post {
always {
echo 'This will always run'
}
success {
echo 'This will run only if the pipeline succeeds'
}
failure {
echo 'This will run only if the pipeline fails'
}
}
}