Jenkinsfile 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. @Library('jenkins-joylib@v1.0.8') _
  2. pipeline {
  3. agent none
  4. options {
  5. buildDiscarder(logRotator(numToKeepStr: '30'))
  6. timestamps()
  7. }
  8. stages {
  9. stage('top') {
  10. parallel {
  11. stage('v0.10.48-zone') {
  12. agent {
  13. label joyCommonLabels(image_ver: '15.4.1')
  14. }
  15. tools {
  16. nodejs 'sdcnode-v0.10.48-zone'
  17. }
  18. stages {
  19. stage('check') {
  20. steps{
  21. sh('make check')
  22. }
  23. }
  24. stage('test') {
  25. steps{
  26. sh('make test')
  27. }
  28. }
  29. }
  30. }
  31. stage('v4-zone') {
  32. agent {
  33. label joyCommonLabels(image_ver: '15.4.1')
  34. }
  35. tools {
  36. nodejs 'sdcnode-v4-zone'
  37. }
  38. stages {
  39. stage('check') {
  40. steps{
  41. sh('make check')
  42. }
  43. }
  44. stage('test') {
  45. steps{
  46. sh('make test')
  47. }
  48. }
  49. }
  50. }
  51. stage('v6-zone64') {
  52. agent {
  53. label joyCommonLabels(image_ver: '18.4.0')
  54. }
  55. tools {
  56. nodejs 'sdcnode-v6-zone64'
  57. }
  58. stages {
  59. stage('check') {
  60. steps{
  61. sh('make check')
  62. }
  63. }
  64. stage('test') {
  65. steps{
  66. sh('make test')
  67. }
  68. }
  69. }
  70. }
  71. }
  72. }
  73. }
  74. post {
  75. always {
  76. joySlackNotifications()
  77. }
  78. }
  79. }