Skip to content

Commit

Permalink
Store git and CI info in output folder (#1003)
Browse files Browse the repository at this point in the history
Fixes #1001
  • Loading branch information
jonahgraham authored Jan 14, 2025
1 parent 8e15779 commit 7a259a9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ pipeline {
-Dmaven.repo.local=/home/jenkins/.m2/repository \
--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
'''
}
}
}
Expand Down

0 comments on commit 7a259a9

Please sign in to comment.