1
0
mirror of https://github.com/lxsang/DiyaSDK.git synced 2024-12-26 03:18:21 +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
{
stage('Build image') {
stage('Build 32 bit image') {
agent {
docker {
image 'xsangle/ci-yocto:focal'
@ -32,20 +32,33 @@ pipeline{
printenv
source ./env.sh
diya -c 32
diya -c 64
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
'''
}
}
stage('Archive') {
steps {
//script {
//archiveArtifacts artifacts: 'build/tmp/deploy/images/', fingerprint: true
//}
sh '''
echo "DONE"
'''
script {
archiveArtifacts artifacts: '64/tmp/diya.image,32/tmp/diya.image,fonts/', fingerprint: true
}
}
}
}

View File

@ -22,7 +22,7 @@ if [ ! -e "$SRC_IMG" ]; then
cd "$W"
fi
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
NAME="Diya-Bootstrap"
$VM "$SRC_IMG" "$W/export.st" "$BASE_DIR/tmp" "$NAME" --quit