diff --git a/Jenkinsfile b/Jenkinsfile index 254425c..6038ed4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -45,5 +45,21 @@ [ exec: { echo "This is my second task" }, on: '*' ], [ exec: "third.sh", on: [ 'ubuntu-16', 'centos-7', ] ], [ exec: [ "fourth-a.sh", "fourth-b.sh"] ], - ] + ] +} + +lazyStage { + name = 'test' + tasks = [ + [ exec: { echo "This is my fith task" }, ], + [ exec: { echo "This is my sixth task" }, on: '*' ], + ] +} + +lazyStage { + name = 'package' + tasks = [ + [ exec: { echo "This is my seventh task" }, on: [ 'ubuntu-16', 'centos-7', ] ], + [ exec: { echo "This is my last task" } ], + ] } diff --git a/lazy-ci/validate/fourth-a.sh b/lazy-ci/validate/fourth-a.sh new file mode 100755 index 0000000..fdba0eb --- /dev/null +++ b/lazy-ci/validate/fourth-a.sh @@ -0,0 +1,19 @@ +# This work is protected under copyright law in the Kingdom of +# The Netherlands. The rules of the Berne Convention for the +# Protection of Literary and Artistic Works apply. +# Digital Me B.V. is the copyright owner. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +echo "Start ${0} script..." +echo "Stop ${0} script..." diff --git a/lazy-ci/validate/fourth-b.sh b/lazy-ci/validate/fourth-b.sh new file mode 100755 index 0000000..fdba0eb --- /dev/null +++ b/lazy-ci/validate/fourth-b.sh @@ -0,0 +1,19 @@ +# This work is protected under copyright law in the Kingdom of +# The Netherlands. The rules of the Berne Convention for the +# Protection of Literary and Artistic Works apply. +# Digital Me B.V. is the copyright owner. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +echo "Start ${0} script..." +echo "Stop ${0} script..." diff --git a/lazy-ci/validate/third.sh b/lazy-ci/validate/third.sh new file mode 100755 index 0000000..66d72ed --- /dev/null +++ b/lazy-ci/validate/third.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash + +# This work is protected under copyright law in the Kingdom of +# The Netherlands. The rules of the Berne Convention for the +# Protection of Literary and Artistic Works apply. +# Digital Me B.V. is the copyright owner. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +echo "Start ${0} script..." +echo "Stop ${0} script..."