Skip to content

Commit

Permalink
[IMP] Change get hash methods for repo head report
Browse files Browse the repository at this point in the history
  • Loading branch information
maq-adhoc authored and jjscarafia committed Sep 3, 2024
1 parent 8984d2b commit 4084872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ RUN autoaggregate --config "$RESOURCES/saas-odoo_project_repos.yml" --output $SO
RUN autoaggregate --config "$RESOURCES/saas-odoo_project_version_repos.yml" --output $SOURCES/repositories

# Report to provider all repos HEADs
RUN find $SOURCES -name "*.git" -type d -execdir sh -c "pwd && echo , && git rev-parse HEAD && echo \;; " \; | xargs -n4 > /tmp/repo_heads.txt ; curl -X POST $BASE_URL/report_sha$URL_SUFIX\&minor_version=`date -u +%Y.%m.%d` -H "Content-Type: application/json" -H "Accept: application/json" -d "@/tmp/repo_heads.txt"
RUN find $SOURCES -name "*.git" -type d -execdir sh -c "pwd && echo , && git log -n 1 --remotes=origin --pretty=format:\"%H\" && echo \;; " \; | xargs -n3 > /tmp/repo_heads.txt ; curl -X POST $BASE_URL/report_sha$URL_SUFIX\&minor_version=`date -u +%Y.%m.%d` -H "Content-Type: application/json" -H "Accept: application/json" -d "@/tmp/repo_heads.txt"

# Install odoo
RUN pip install --user --no-cache-dir -e $SOURCES/odoo
Expand Down

0 comments on commit 4084872

Please sign in to comment.