Browse Source

'jenkinsfile-yocto_pyro' ändern

stevo 5 years ago
parent
commit
9ee710e48e
1 changed files with 12 additions and 4 deletions
  1. 12 4
      jenkinsfile-yocto_pyro

+ 12 - 4
jenkinsfile-yocto_pyro View File

@@ -1,12 +1,11 @@
1 1
 pipeline {
2 2
     /* agent any */
3
-    agent {label 'rock'}
3
+    agent {label 'master'}
4 4
     stages {
5 5
         stage('clone poky sumo') {
6 6
             steps {
7 7
             sh '''#!/bin/bash
8 8
                 set -x
9
-                cd /media/data_ssh
10 9
                 rm -fr *
11 10
                 git clone git://git.yoctoproject.org/poky
12 11
                 cd poky
@@ -14,14 +13,23 @@ pipeline {
14 13
                 '''
15 14
             }
16 15
         }
17
-        stage('build poky') {
16
+        stage('fetch sources for build') {
18 17
             steps {
19 18
             sh '''#!/bin/bash
20 19
                 set -x
21
-                cd /media/data_ssh
22 20
                 cd poky
23 21
                 source oe-init-build-env
24 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
25 33
                 bitbake core-image-minimal
26 34
                 '''
27 35
             }