Writing the commit no to a text file (flutter/engine#21546)

* setting an env variable using commit no

* change variable name

* try to use ref no as string

* use echo for output

* remove all the other stdout

* echo json instead of only the commit no

* use the file method

* list the directory contents

* remove pwd. print flutter version verbose
This commit is contained in:
nturgut
2020-10-02 12:41:39 -07:00
committed by GitHub
parent 58180010a8
commit 1e93da2df6

View File

@@ -31,5 +31,8 @@ COMMIT_NO=`git log --before="$LATEST_COMMIT_TIME_ENGINE" -n 1 | grep commit | cu
echo "Using the flutter/flutter commit $COMMIT_NO";
git reset --hard $COMMIT_NO
# Write the commit number to a file. This file will be read by the LUCI recipe.
echo "$COMMIT_NO" >> flutter_ref.txt
# Print out the flutter version for troubleshooting
$FLUTTER_CLONE_REPO_PATH/bin/flutter --version
$FLUTTER_CLONE_REPO_PATH/bin/flutter --version -v