From e1849e4b5b2468d099a904023b752eb5542f2c31 Mon Sep 17 00:00:00 2001 From: JonnyBravo Date: Fri, 17 Mar 2023 08:39:49 +0100 Subject: [PATCH] added --- Jenkinsfile | 16 +++++++++++----- old_jenkinsfile | 23 +++++++++++++++++++++++ 2 files changed, 34 insertions(+), 5 deletions(-) create mode 100644 old_jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile index 10ec7ca..edb4364 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,13 @@ -stage('Setting the variables values') { - steps { - bash '''#!/bin/bash - echo "hello world" - ''' +pipeline { +agent none + stages{ + stage('Setting the variables values') { + agent any + steps { + bash '''#!/bin/bash + echo "hello world" + ''' } } +} +} diff --git a/old_jenkinsfile b/old_jenkinsfile new file mode 100644 index 0000000..aac558a --- /dev/null +++ b/old_jenkinsfile @@ -0,0 +1,23 @@ +pipeline { + agent any + stages { + stage ("SCM checkout") { + steps { + git "https://gitea.schlaubistechtalk.de/JonnyBravo/test_play.git" + + } + } + stage(" execute Ansible") { + steps { + ansiblePlaybook installation: 'ansible', playbook: 'test_play.yml' + } + } + stage("run bash"){ + steps { + bash '''#!/bin/bash + echo "hello world" + ''' + } + } + } +}