This website works better with JavaScript.
Home
Explore
Help
Sign In
brennen
/
pipelinelib
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41
Commits
1
Branch
120 KiB
Branch:
master
master
Branches
Tags
${ item.name }
Create branch
${ searchTerm }
from 'master'
${ noResults }
pipelinelib
/
systemtests
/
jenkins
/
bin
/
stub-script
3 lines
48 B
Raw
Permalink
Normal View
History
pipeline: Test more of the stage steps implementation Functionally testing pipeline stage steps (build, run, publish, deploy, exports) is tricky on account of either having to mock all calls to workflow script and/or pipeline runner methods, or somehow setup dependent backend systems such as k8s for systems tests. The lack of coverage for these methods has resulted in a number of found bugs and incremental fixes that could have been found through testing, so the value of heavy mocking and system-test complexity in these cases seems to outweigh the cost. By installing a stubbed version of the `docker-pusher` script into the Jenkins container, we can run a system test for the `publish` step, and by stubbing out some of the previous stage/step context, we can more effectively test `PipelineStage` step methods. Change-Id: Ibed4f781e6c46dcbf5741eaf8adb79ebe4ef2d39
5 years ago
#!/bin/sh
echo "stubbed execution of: ($0 $@)"