mirror of
https://github.com/lxsang/DiyaSDK.git
synced 2024-11-16 18:18:22 +01:00
add artifact
This commit is contained in:
parent
6865103306
commit
f0b6ec387e
29
Jenkinsfile
vendored
29
Jenkinsfile
vendored
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user