Skip to contentSkip to conversation

auh: publish output on https://autobuilder.yocto.io/pub/auh/

PATCH In review Alexander Kanavin 2 participants 2 messages Apr 28, 2023 – May 4, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 auh: publish output on https://autobuilder.yocto.io/pub/auh/

AUH itself already has an option to include the link into its email reports; the option just needs to be enabled.

[YOCTO #15103]

---
 config.json                            | 2 +-
 scripts/auh-config/upgrade-helper.conf | 2 +-
 scripts/run-auh                        | 6 +++++-
 3 files changed, 7 insertions(+), 3 deletions(-)
config.json +1 -1
index 9da4d85..a2ba46e 100644
@@ -1186,7 +1186,7 @@
         },
         "auh" : {
             "EXTRAPLAINCMDS" : [
-                "${SCRIPTSDIR}/setup-auh ${HELPERBUILDDIR}; ${SCRIPTSDIR}/run-auh ${HELPERBUILDDIR}"
+                "${SCRIPTSDIR}/setup-auh ${HELPERBUILDDIR}; ${SCRIPTSDIR}/run-auh ${HELPERBUILDDIR} ${WEBPUBLISH_DIR}/pub/auh/"
             ]
         },
         "a-quick" : {
scripts/auh-config/upgrade-helper.conf +1 -1
index 3a0aa6c..e0fed11 100644
@@ -29,7 +29,7 @@ buildhistory=yes
 #testimage_name=core-image-minimal
 
 #workdir=/home/auh/work/
-#publish_work_url=https://logs.yoctoproject.org/auh/
+publish_work_url=https://autobuilder.yocto.io/pub/auh
 
 commit_revert_policy=all
 
scripts/run-auh +5 -1
index 527ff96..0419dd1 100755
@@ -7,7 +7,7 @@
 # Called with $1 - the directory where the setup was created
 
 if [ -z $1 ]; then
-  echo "Use: $0 auh_setup_dir"
+  echo "Use: $0 auh_setup_dir [publish_dir]"
   exit 1
 fi
 
@@ -27,4 +27,8 @@ git checkout -B tmp-auh-upgrades origin/master
 source $poky_dir/oe-init-build-env $build_dir
 $auh_dir/upgrade-helper.py -e all
 
+if [ -n $2 ]; then
+  cp -rf $build_dir/upgrade-helper/* $2
+fi
+
 popd
Signature · 1 line
2.40.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Alexander Kanavin

AUH itself already has an option to include the link into its email reports; the option just needs to be enabled.

[YOCTO #15103]

Looks good to me!

Thanks!

Quoted 65 lines
---
 config.json                            | 2 +-
 scripts/auh-config/upgrade-helper.conf | 2 +-
 scripts/run-auh                        | 6 +++++-
 3 files changed, 7 insertions(+), 3 deletions(-)
config.json +1 -1
index 9da4d85..a2ba46e 100644
@@ -1186,7 +1186,7 @@
         },
         "auh" : {
             "EXTRAPLAINCMDS" : [
-                "${SCRIPTSDIR}/setup-auh ${HELPERBUILDDIR}; ${SCRIPTSDIR}/run-auh ${HELPERBUILDDIR}"
+                "${SCRIPTSDIR}/setup-auh ${HELPERBUILDDIR}; ${SCRIPTSDIR}/run-auh ${HELPERBUILDDIR} ${WEBPUBLISH_DIR}/pub/auh/"
             ]
         },
         "a-quick" : {
scripts/auh-config/upgrade-helper.conf +1 -1
index 3a0aa6c..e0fed11 100644
@@ -29,7 +29,7 @@ buildhistory=yes
 #testimage_name=core-image-minimal
 
 #workdir=/home/auh/work/
-#publish_work_url=https://logs.yoctoproject.org/auh/
+publish_work_url=https://autobuilder.yocto.io/pub/auh
 
 commit_revert_policy=all
 
scripts/run-auh +5 -2
index 527ff96..0419dd1 100755
@@ -7,7 +7,7 @@
 # Called with $1 - the directory where the setup was created
 
 if [ -z $1 ]; then
-  echo "Use: $0 auh_setup_dir"
+  echo "Use: $0 auh_setup_dir [publish_dir]"
   exit 1
 fi
 
@@ -27,4 +27,8 @@ git checkout -B tmp-auh-upgrades origin/master
 source $poky_dir/oe-init-build-env $build_dir
 $auh_dir/upgrade-helper.py -e all
 
+if [ -n $2 ]; then
+  cp -rf $build_dir/upgrade-helper/* $2
+fi
+
 popd
 
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#59790): https://lists.yoctoproject.org/g/yocto/message/59790
Mute This Topic: https://lists.yoctoproject.org/mt/98553558/4316185
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 2 lines
Yoann Congal
Smile ECS - Tech Expert