Linux 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. pipeline {
  2. agent {
  3. dockerfile { filename 'Jenkinsfiles/ubuntu-16.04.dockerfile' }
  4. }
  5. stages {
  6. stage('Build') {
  7. steps {
  8. sh '''
  9. make
  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: 15, 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. sh '''
  52. cd LibOS/shim/test/apps/apache
  53. make
  54. make start-graphene-server &
  55. sleep 1
  56. ./benchmark-http.sh `hostname -I|tr -d '[:space:]'`:8001
  57. '''
  58. }
  59. }
  60. stage('Deploy') {
  61. steps {
  62. sh 'echo Deploying code'
  63. }
  64. }
  65. }
  66. post {
  67. success {
  68. echo 'Deployment successful'
  69. }
  70. failure {
  71. echo 'Failure while on the pipeline'
  72. }
  73. unstable {
  74. echo 'Pipeline marked as "unstable"'
  75. }
  76. }
  77. }