From e2ae6cfd82febe692c71e4b64d4e903ae86c6b1e Mon Sep 17 00:00:00 2001 From: Michael Jenkins Date: Fri, 1 Oct 2021 14:17:13 -0700 Subject: [PATCH] Add scripts for 03-05 --- 03_05.md | 27 +++++++++++++++++++++++++++ MAC_LINUX_DOCKER.md | 15 +++++++++++++++ WINDOWS.md | 15 +++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 03_05.md create mode 100644 MAC_LINUX_DOCKER.md create mode 100644 WINDOWS.md diff --git a/03_05.md b/03_05.md new file mode 100644 index 0000000..c002222 --- /dev/null +++ b/03_05.md @@ -0,0 +1,27 @@ +# Learning Jenkins, 03-05: String Parameters +Create a freestyle job with one build step. + +# WINDOWS SYSTEMS +If you are running Jenkins on a Windows system: + +1. Select the `Execute Windows batch command` build step +2. Enter the following for the command: +``` +@echo off +@echo VERSION_NUMBER = %VERSION_NUMBER% +``` + +[Follow this link for more details on Windows](WINDOWS.md) + +# MacOS, Linux, and Docker +If you are running Jenkins on MacOS, Linux, or Docker: + +1. Select the `Execute shell` build step. +2. Enter the following for the command: +``` +#!/bin/bash +echo "VERSION_NUMBER = $VERSION_NUMBER" +``` + +[Follow this link for more details on MacOS, Linux, and Docker](MAC_LINUX_DOCKER.md) + diff --git a/MAC_LINUX_DOCKER.md b/MAC_LINUX_DOCKER.md new file mode 100644 index 0000000..d03d712 --- /dev/null +++ b/MAC_LINUX_DOCKER.md @@ -0,0 +1,15 @@ +# Learning Jenkins, 03-05: String Parameters +Create a freestyle job with one build step. + +# MacOS, Linux, and Docker +If you are running Jenkins on MacOS, Linux, or Docker: + +1. Select the `Execute shell` build step. +2. Enter the following for the command: +``` +#!/bin/bash +echo "VERSION_NUMBER = $VERSION_NUMBER" +``` + +# Troubleshooting Errors + diff --git a/WINDOWS.md b/WINDOWS.md new file mode 100644 index 0000000..62e7b19 --- /dev/null +++ b/WINDOWS.md @@ -0,0 +1,15 @@ +# Learning Jenkins, 03-05: String Parameters +Create a freestyle job with one build step. + +# WINDOWS SYSTEMS +If you are running Jenkins on a Windows system: + +1. Select the `Execute Windows batch command` build step +2. Enter the following for the command: +``` +@echo off +@echo VERSION_NUMBER = %VERSION_NUMBER% +``` + +# Troubleshooting Errors +