This commit is contained in:
Vendored
+2
-1
@@ -1,11 +1,12 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
stages {
|
stages {
|
||||||
stage('Test') {
|
stage('Checking the Repository') {
|
||||||
steps {
|
steps {
|
||||||
script { // <--- Added script block
|
script { // <--- Added script block
|
||||||
if (isUnix()) {
|
if (isUnix()) {
|
||||||
echo "Unix"
|
echo "Unix"
|
||||||
|
echo "dev"
|
||||||
sh 'ls -lha'
|
sh 'ls -lha'
|
||||||
} else {
|
} else {
|
||||||
echo "Windows"
|
echo "Windows"
|
||||||
|
|||||||
Reference in New Issue
Block a user