Showing
1 changed file
with
18 additions
and
0 deletions
jenkins/Jenkinsfile
0 → 100644
| 1 | +pipeline { | ||
| 2 | + agent any | ||
| 3 | + stages { | ||
| 4 | + stage('Echo') { | ||
| 5 | + steps { | ||
| 6 | + echo 'Olá, este é um exemplo de um Jenkinsfile!' | ||
| 7 | + } | ||
| 8 | + } | ||
| 9 | + stage('Escrever') { | ||
| 10 | + steps { | ||
| 11 | + script { | ||
| 12 | + def mensagem = 'O Jenkins é incrível!' | ||
| 13 | + writeFile file: 'mensagem.txt', text: mensagem | ||
| 14 | + } | ||
| 15 | + } | ||
| 16 | + } | ||
| 17 | + } | ||
| 18 | +} |
-
Please register or login to post a comment