1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 06:02:11 +02:00

Store git and CI info in output folder (#1003)

Fixes #1001
This commit is contained in:
Jonah Graham 2025-01-14 14:47:24 -05:00 committed by GitHub
parent 8e157798fe
commit 7a259a90ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

6
Jenkinsfile vendored
View file

@ -53,6 +53,12 @@ pipeline {
-Dmaven.repo.local=/home/jenkins/.m2/repository \ -Dmaven.repo.local=/home/jenkins/.m2/repository \
--settings /home/jenkins/.m2/settings.xml \ --settings /home/jenkins/.m2/settings.xml \
''' '''
sh '''
echo "TIMESTAMP: $(date)" > releng/org.eclipse.cdt.repo/target/repository/ci-and-git-info.txt
echo "CI URL: ${BUILD_URL}" >> releng/org.eclipse.cdt.repo/target/repository/ci-and-git-info.txt
echo "Most recent git commits: (output of git log --graph --pretty='tformat:%h [%ci] - %s' -20)" >> releng/org.eclipse.cdt.repo/target/repository/ci-and-git-info.txt
git log --graph --pretty='tformat:%h [%ci] - %s' -20 | tee -a releng/org.eclipse.cdt.repo/target/repository/ci-and-git-info.txt
'''
} }
} }
} }