diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-02-07 09:53:19 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-02-07 11:23:36 +0100 |
commit | 6e276ad2e18e713754e8b0d0dec4221912f2ca11 (patch) | |
tree | 31d873e986b63f09ef75cb3f85cc6c1a3c644acd | |
parent | 308fcf452693e9b2d6902864c30bcd19afbbbb5f (diff) | |
download | nextcloud-server-6e276ad2e18e713754e8b0d0dec4221912f2ca11.tar.gz nextcloud-server-6e276ad2e18e713754e8b0d0dec4221912f2ca11.zip |
Show logs on smb-kerberos CI failure
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r-- | .github/workflows/smb-kerberos.yml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.github/workflows/smb-kerberos.yml b/.github/workflows/smb-kerberos.yml index 896d96e592c..1cb8ae973ca 100644 --- a/.github/workflows/smb-kerberos.yml +++ b/.github/workflows/smb-kerberos.yml @@ -64,3 +64,9 @@ jobs: CONTENT=$(./client-cmd.sh ${{ env.DC_IP }} curl -b /shared/cookies/jar -s --negotiate -u testuser@DOMAIN.TEST: --delegation always http://httpd.domain.test/remote.php/webdav/smb/test.txt) CONTENT=$(echo $CONTENT | head -n 1 | tr -d '[:space:]') [[ $CONTENT == "testfile" ]] + - name: Show logs + if: failure() + run: | + docker exec --user 33 apache ./occ log:file + FILEPATH=$(docker exec --user 33 apache ./occ log:file | grep "Log file:" | cut -d' ' -f3) + docker exec --user 33 apache cat $FILEPATH |