Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Instruction

Running Shell Commands

In our first pipeline, we saw the echo step, but that's just one of many step types that are available. Now let's look at the sh step, which runs a shell command. (As well as its very similar equivalent bat, which runs a batch command if you're running Jenkins on a Windows machine.)

But first, we're going to need a command to run. Let's try the date command. If you're running the Jen...