1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-04-18 21:44:02 +03:00

add branches info to buildinfo file

This commit is contained in:
Timofey Turenko 2025-03-22 02:40:21 +02:00 committed by Leonid Fedorov
parent 6e64d3a38d
commit 61b8973fa8

View File

@ -844,11 +844,19 @@ local Pipeline(branch, platform, event, arch='amd64', server='10.6-enterprise')
status: ['success', 'failure'], status: ['success', 'failure'],
}, },
volumes: [pipeline._volumes.mdb], volumes: [pipeline._volumes.mdb],
environment: {
SERVER_REF: '${SERVER_REF:-' + server + '}',
SERVER_REMOTE: '${SERVER_REMOTE:-' + server_remote + '}',
},
commands: [ commands: [
'cd /mdb/' + builddir, 'cd /mdb/' + builddir,
'echo "engine: $DRONE_COMMIT" > buildinfo.txt', 'echo "engine: $DRONE_COMMIT" > buildinfo.txt',
'echo "server: $$(git rev-parse HEAD)" >> buildinfo.txt', 'echo "server: $$(git rev-parse HEAD)" >> buildinfo.txt',
'echo "buildNo: $DRONE_BUILD_NUMBER" >> buildinfo.txt', 'echo "buildNo: $DRONE_BUILD_NUMBER" >> buildinfo.txt',
'echo "serverBranch: $$SERVER_REF" >> buildinfo.txt',
'echo "serverRepo: $$SERVER_REMOTE" >> buildinfo.txt',
'echo "engineBranch: $DRONE_SOURCE_BRANCH" >> buildinfo.txt',
'echo "engineRepo: https://github.com/$DRONE_REPO" >> buildinfo.txt',
'mv buildinfo.txt ./%s/' % result, 'mv buildinfo.txt ./%s/' % result,
'yes | cp -vr ./%s/. /drone/src/%s/' % [result, result], 'yes | cp -vr ./%s/. /drone/src/%s/' % [result, result],
'ls -l /drone/src/' + result, 'ls -l /drone/src/' + result,