1
0
mirror of https://github.com/lxsang/DiyaSDK.git synced 2024-12-27 03:48:20 +01:00

add artifact

This commit is contained in:
Dany LE 2022-08-07 11:10:09 +02:00
parent 6865103306
commit f0b6ec387e
2 changed files with 22 additions and 9 deletions

29
Jenkinsfile vendored
View File

@ -18,7 +18,7 @@ pipeline{
} }
stages stages
{ {
stage('Build image') { stage('Build 32 bit image') {
agent { agent {
docker { docker {
image 'xsangle/ci-yocto:focal' image 'xsangle/ci-yocto:focal'
@ -32,20 +32,33 @@ pipeline{
printenv printenv
source ./env.sh source ./env.sh
diya -c 32 diya -c 32
diya -c 64
diya -b 32 diya -b 32
'''
}
}
stage('Build 64 bit image') {
agent {
docker {
image 'xsangle/ci-yocto:focal'
args ' --user root '
// args '-v /var/jenkins_home/workspace/ant-http:/var/jenkins_home/workspace/ant-http'
reuseNode true
}
}
steps {
sh '''#!/bin/bash
printenv
source ./env.sh
diya -c 64
diya -b 64 diya -b 64
''' '''
} }
} }
stage('Archive') { stage('Archive') {
steps { steps {
//script { script {
//archiveArtifacts artifacts: 'build/tmp/deploy/images/', fingerprint: true archiveArtifacts artifacts: '64/tmp/diya.image,32/tmp/diya.image,fonts/', fingerprint: true
//} }
sh '''
echo "DONE"
'''
} }
} }
} }

View File

@ -22,7 +22,7 @@ if [ ! -e "$SRC_IMG" ]; then
cd "$W" cd "$W"
fi fi
cp -rf "$W/fonts" "$BASE_DIR/builder/" cp -rf "$W/fonts" "$BASE_DIR/builder/"
chmod -R a+rw $BASE_DIR # chmod -R a+rw $BASE_DIR
$VM "$SRC_IMG" "$W/install.st" --quit $VM "$SRC_IMG" "$W/install.st" --quit
NAME="Diya-Bootstrap" NAME="Diya-Bootstrap"
$VM "$SRC_IMG" "$W/export.st" "$BASE_DIR/tmp" "$NAME" --quit $VM "$SRC_IMG" "$W/export.st" "$BASE_DIR/tmp" "$NAME" --quit