Make Revision available as variable in jobsets
Description
When creating an “Export Gerbers” job ${REVISION} does not resolve the revision, instead it literally prints ${REVISION}.
So there seems no way to access the board (and schematic) revision as a variable within a jobset. Please add the ability to access board and schematic revision to be used e.g. in the file name.
It would make sense to distinguish between board and schematic revision, e.g. using ${PCBREVISION} and ${SCHEMATICREVISION}. Alternatively use the PCB's revision for PCB job types and the schematic's revision for schematic job types.
Steps to reproduce
- Create an “Export Gerbers” job and the use
${KIPRJMOD}/${PROJECTNAME}-${REVISION}.zipas Output Path. - This creates
foobar-${REVISION}.zipinstead offoobar-rev42.zip
KiCad Version
Application: KiCad PCB Editor x86_64 on x86_64
Version: 9.0.0+1, release build
Libraries:
wxWidgets 3.2.2
FreeType 2.12.1
HarfBuzz 6.0.0
FontConfig 2.14.1
libcurl/7.88.1 OpenSSL/3.0.15 zlib/1.2.13 brotli/1.0.9 zstd/1.5.4 libidn2/2.3.3 libpsl/0.21.2 (+libidn2/2.3.3) libssh2/1.10.0 nghttp2/1.52.0 librtmp/2.3 OpenLDAP/2.5.13
Platform: Debian GNU/Linux 12 (bookworm), 64 bit, Little endian, wxGTK, X11, lightdm-xsession, x11
OpenGL: NVIDIA Corporation, NVIDIA GeForce GTX 1650/PCIe/SSE2, 4.6.0 NVIDIA 535.216.01
Build Info:
Date: Mar 1 2025 11:58:55
wxWidgets: 3.2.2 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.74.0
OCC: 7.6.3
Curl: 7.88.1
ngspice: 39
Compiler: GCC 12.2.0 with C++ ABI 1017
KICAD_IPC_API=ON
Locale:
Lang: en_IE
Enc: UTF-8
Num: 1,234.5
Encoded кΩ丈: D0BACEA9E4B888 (sys), D0BACEA9E4B888 (utf8)
Edited by Marco T