Linux-Debug 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. pipeline {
  2. agent {
  3. dockerfile { filename 'Jenkinsfiles/ubuntu-16.04.dockerfile' }
  4. }
  5. stages {
  6. stage('Build') {
  7. steps {
  8. sh '''
  9. make DEBUG=1 WERROR=1
  10. '''
  11. }
  12. }
  13. stage('Test') {
  14. steps {
  15. sh '''
  16. cd Pal/regression
  17. make regression
  18. '''
  19. sh '''
  20. cd LibOS/shim/test/regression
  21. make regression
  22. '''
  23. sh '''
  24. cd LibOS/shim/test/apps/ltp
  25. make
  26. ./syscalls.sh
  27. '''
  28. timeout(time: 5, unit: 'MINUTES') {
  29. sh '''
  30. cd LibOS/shim/test/apps/python
  31. make regression
  32. '''
  33. }
  34. sh '''
  35. cd LibOS/shim/test/apps/bash
  36. make regression
  37. '''
  38. timeout(time: 5, unit: 'MINUTES') {
  39. sh '''
  40. cd LibOS/shim/test/apps/gcc
  41. make regression
  42. '''
  43. }
  44. timeout(time: 20, unit: 'MINUTES') {
  45. sh '''
  46. cd LibOS/shim/test/apps/lmbench
  47. make regression
  48. '''
  49. }
  50. sh '''
  51. cd LibOS/shim/test/apps/lighttpd
  52. make
  53. make start-graphene-server &
  54. sleep 1
  55. ./benchmark-http.sh `hostname -I|tr -d '[:space:]'`:8000
  56. '''
  57. }
  58. }
  59. stage('Deploy') {
  60. steps {
  61. sh 'echo Deploying code'
  62. }
  63. }
  64. }
  65. post {
  66. success {
  67. echo 'Deployment successful'
  68. }
  69. failure {
  70. echo 'Failure while on the pipeline'
  71. }
  72. unstable {
  73. echo 'Pipeline marked as "unstable"'
  74. }
  75. }
  76. }