Linux-Debug 2.3 KB

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