diff --git a/Jenkinsfile b/Jenkinsfile index 8dc7a1a..92c43c7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -76,9 +76,9 @@ }, ], [ run: { echo "This is my second task" }, in: '*', on: 'docker' ], - [ run: "third.sh", in: [ 'ubuntu-16', 'centos-7'], on: 'docker',], - [ run: [ "fourth-a.sh", "fourth-b.sh"], on: 'mac' ], - [ run: [ "fourth-a.sh", "fourth-b.sh"], on: 'android' ], + [ run: "third.sh -v", in: [ 'ubuntu-16', 'centos-7'], on: 'docker',], + [ run: [ "fourth-a.sh -v -m c", "fourth-b.sh -v -m d"], on: 'mac' ], + [ run: [ "fourth-a.sh -v -m e", "fourth-b.sh -v -m f"], on: 'android' ], ] } diff --git a/lazyDir/validate/fourth-a.sh b/lazyDir/validate/fourth-a.sh index fdba0eb..afac1f9 100755 --- a/lazyDir/validate/fourth-a.sh +++ b/lazyDir/validate/fourth-a.sh @@ -16,4 +16,7 @@ # limitations under the License. echo "Start ${0} script..." +if [ "${1}" = '-v' ]; then + echo "Mode = ${3}" +fi echo "Stop ${0} script..." diff --git a/lazyDir/validate/fourth-b.sh b/lazyDir/validate/fourth-b.sh index fdba0eb..afac1f9 100755 --- a/lazyDir/validate/fourth-b.sh +++ b/lazyDir/validate/fourth-b.sh @@ -16,4 +16,7 @@ # limitations under the License. echo "Start ${0} script..." +if [ "${1}" = '-v' ]; then + echo "Mode = ${3}" +fi echo "Stop ${0} script..." diff --git a/lazyDir/validate/third.sh b/lazyDir/validate/third.sh index 1dd03a8..8d59b0a 100755 --- a/lazyDir/validate/third.sh +++ b/lazyDir/validate/third.sh @@ -18,5 +18,7 @@ # limitations under the License. echo "Start ${0} script..." -env | sort +if [ "${1}" = '-v' ]; then + env | sort +fi echo "Stop ${0} script..."