multiple jenkins files for build of yocto images

jenkinsfile_yocto_pyro 1001B

1234567891011121314151617181920212223242526272829303132333435363738
  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. }