Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 3 Next »

If you do not work with github or cannot provide access to the source folder where the git logs are located, you can generate them on your own and upload them seperatly to the SeaLights servers.


See 'Generating a token' for instructions on how to generate a token

Generating the commit reports

Sample command which generate 2 days of commit logs
echo "{ \"commitLog\": [" > commitLog
git log --since="2 days ago" --pretty=format:'{"commit": "%H","authorName": "%an","authorEmail": "%ae","commiterName": "%cn","commiterEmail": "%ce","authorDate": "%at000","commiterDate": "%ct000","title": "%f"}' >> commitLog
echo "]}" >> commitLog

Upload git generated commit log reports

Sample command for a single file
java -jar sl-test-listener.jar uploadReports -tokenfile "/path/to/tokenFile" -buildsessionidfile "/path/to/buildSessionId.txt" -reportFile "/path/to/git_commit.xml" -type "commitLog" -source "script"

See 'Java Command Reference - Upload report files' for full parameter details

See 'Using Java Agents - Uploading multiple files' for information on how to upload multiple files

  • No labels