-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added Python to the PipelineDemo, using the discover-flask-vagrant pr…
…oject
- Loading branch information
1 parent
83cf0df
commit 9e6c525
Showing
6 changed files
with
74 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
cobertura:1.9.8 | ||
git:2.4.4 | ||
github:1.19.1 | ||
github-api:1.75 | ||
matrix-project:1.7 | ||
performance:1.13 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,10 +6,55 @@ | |
<properties/> | ||
<definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" plugin="[email protected]"> | ||
<script>node { | ||
stage 'Stage 1' | ||
echo 'Hello World 1' | ||
stage 'Stage 2' | ||
echo 'Hello World 2' | ||
stage 'Git Pull' | ||
checkout([ | ||
$class: 'GitSCM', | ||
branches: [[name: '*/master']], | ||
doGenerateSubmoduleConfigurations: false, | ||
extensions: [], | ||
submoduleCfg: [], | ||
userRemoteConfigs: [[url: 'https://github.com/apolloclark/discover-flask-vagrant.git']] | ||
]) | ||
|
||
stage 'Prepare Database' | ||
dir('./www') { | ||
sh ''' | ||
python db_create_users.py | ||
python db_create_posts.py | ||
''' | ||
} | ||
|
||
stage 'Static Analysis' | ||
dir('./www') { | ||
sh 'pylint --generate-rcfile > .pylintrc' | ||
parallel pylint: { | ||
sh 'pylint -f parseable project/ 2>&1 | cat > pylint.out' | ||
}, nose:{ | ||
sh 'nosetests --with-xcoverage --with-xunit --all-modules --traverse-namespace --cover-package=project --cover-inclusive --cover-erase -x tests.py > /dev/null' | ||
}, | ||
failFast: true | ||
} | ||
|
||
stage 'Deploy Servers' | ||
echo 'Deploying Testing Insfrastructure with Terrform and Ansible' | ||
|
||
stage 'Dynamic Analysis' | ||
echo 'Running Selenium tests' | ||
echo 'Running JMeter stress tests' | ||
echo 'Running Gauntlt security tests' | ||
|
||
stage 'Security Scan' | ||
echo 'Analysing UR cyberz!!!' | ||
|
||
stage 'Tear-down Servers' | ||
echo 'Removing Testing Infrastructure' | ||
|
||
stage 'Generate Reports' | ||
echo 'Generating Report Graphs and Charts' | ||
build('Python_Pipeline') | ||
|
||
stage 'Have a Cocktail :)' | ||
echo 'Good on you! Have a cocktail. :)' | ||
}</script> | ||
<sandbox>false</sandbox> | ||
</definition> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters