multiple jenkins files for build of yocto images
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

38 rindas
999 B

  1. pipeline {
  2. /* agent any */
  3. agent {label 'master'}
  4. stages {
  5. stage('clone poky sumo') {
  6. steps {
  7. sh '''#!/bin/bash
  8. set -x
  9. rm -fr *
  10. git clone git://git.yoctoproject.org/poky
  11. cd poky
  12. git checkout -b sumo origin/sumo
  13. '''
  14. }
  15. }
  16. stage('fetch sources for build') {
  17. steps {
  18. sh '''#!/bin/bash
  19. set -x
  20. cd poky
  21. source oe-init-build-env
  22. ln -s /media/data/.yoctoshare/downloads ./downloads
  23. bitbake core-image-minimal --runall=fetch
  24. '''
  25. }
  26. }
  27. stage('build poky image') {
  28. steps {
  29. sh '''#!/bin/bash
  30. set -x
  31. cd poky
  32. source oe-init-build-env
  33. bitbake core-image-minimal
  34. '''
  35. }
  36. }
  37. }
  38. }