Browse Source

'jenkinsfile-yocto_pyro' hinzufügen

stevo 5 years ago
parent
commit
5fabccbfbc
1 changed files with 30 additions and 0 deletions
  1. 30 0
      jenkinsfile-yocto_pyro

+ 30 - 0
jenkinsfile-yocto_pyro View File

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