https://github.com/testertech/jenkinsci-kiwitcms-testresults
Code for the YouTube video https://youtu.be/piBJlrgzrMw
https://github.com/testertech/jenkinsci-kiwitcms-testresults
Last synced: 4 months ago
JSON representation
Code for the YouTube video https://youtu.be/piBJlrgzrMw
- Host: GitHub
- URL: https://github.com/testertech/jenkinsci-kiwitcms-testresults
- Owner: TesterTech
- Created: 2021-04-25T13:20:49.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-25T13:33:47.000Z (about 5 years ago)
- Last Synced: 2025-02-01T10:11:16.920Z (over 1 year ago)
- Size: 1.95 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jenkinsci-kiwitcms-testresults
Code for the YouTube video https://youtu.be/piBJlrgzrMw
## References
- Jenkins CI https://www.jenkins.io/download/
- Plugin Demo https://github.com/kiwitcms/plugin-demo
- Variables available in Jenkins https://wiki.jenkins.io/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-belowJenkinsSetEnvironmentVariables
## Pipeline
```
pipeline {
agent any
stages {
stage('Build') {
steps {
git 'https://github.com/kiwitcms/plugin-demo.git'
sh '''
python3 -m venv plugin-demo
. plugin-demo/bin/activate
pip install wheel
pip install -r requirements.txt
export SSL_CERT_FILE=/home/demo/kiwi-tcms/ca.crt
export TCMS_PRODUCT_VERSION=$JOB_NAME
nosetests --with-tap --tap-stream 2> output.tap
tcms-tap-plugin output.tap
nosetests --with-xunit
tcms-junit.xml-plugin nosetests.xml
'''
}
}
}
}
```