Linux-Debug 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. sh '''
  29. cd LibOS/shim/test/apps/python
  30. make regression
  31. '''
  32. sh '''
  33. cd LibOS/shim/test/apps/bash
  34. make regression
  35. '''
  36. timeout(time: 5, unit: 'MINUTES') {
  37. sh '''
  38. cd LibOS/shim/test/apps/gcc
  39. make regression
  40. '''
  41. }
  42. timeout(time: 20, unit: 'MINUTES') {
  43. sh '''
  44. cd LibOS/shim/test/apps/lmbench
  45. make regression
  46. '''
  47. }
  48. sh '''
  49. cd LibOS/shim/test/apps/lighttpd
  50. make
  51. make start-graphene-server &
  52. sleep 1
  53. ./benchmark-http.sh `hostname -I|tr -d '[:space:]'`:8000
  54. '''
  55. }
  56. }
  57. stage('Deploy') {
  58. steps {
  59. sh 'echo Deploying code'
  60. }
  61. }
  62. }
  63. post {
  64. success {
  65. echo 'Deployment successful'
  66. }
  67. failure {
  68. echo 'Failure while on the pipeline'
  69. }
  70. unstable {
  71. echo 'Pipeline marked as "unstable"'
  72. }
  73. }
  74. }