From de11bf9792f29d5ade83b3ba6a925b1e4cd0f8a3 Mon Sep 17 00:00:00 2001 From: Robert Starmer Date: Wed, 6 Jun 2018 19:11:38 +0000 Subject: [PATCH] Update Jenkins and remove script --- Jenkinsfile | 13 ++++++------- fibonacci.sh | 16 ---------------- 2 files changed, 6 insertions(+), 23 deletions(-) delete mode 100755 fibonacci.sh diff --git a/Jenkinsfile b/Jenkinsfile index bcaa5281..a5393064 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,14 +1,13 @@ pipeline { agent any stages { - stage('Deploy') { + stage('Build') { steps { - timeout(time: 1, unit: 'MINUTES') { - sh './fibonacci.sh 4' - } - timeout(time: 1, unit: 'MINUTES') { - sh './fibonacci.sh 8' - } + sh 'echo "Hello World"' + sh ''' + echo "Multiline shell steps works too" + ls -lah + ''' } } } diff --git a/fibonacci.sh b/fibonacci.sh deleted file mode 100755 index aa00809b..00000000 --- a/fibonacci.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash -N=${1:-10} - -a=0 -b=1 - -echo "The Fibonacci series is : " - -for (( i=0; i