root@c89be0e1e166:/workspace# unzip $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
Archive: /root/.sonar/build-wrapper-linux-x86.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of /root/.sonar/build-wrapper-linux-x86.zip or
/root/.sonar/build-wrapper-linux-x86.zip.zip, and cannot find /root/.sonar/build-wrapper-linux-x86.zip.ZIP, period.
Steps to reproduce (these steps are the default ones when I connect to Bitbucket)
$ export SONAR_SCANNER_VERSION=6.2.1.4610
$ export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux-x64
$ export BW_OUTPUT=$HOME/.sonar/bw-output
$ mkdir -p $BW_OUTPUT
$ curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux-x64.zip
$ unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
$ export PATH=$SONAR_SCANNER_HOME/bin:$PATH
$ curl --create-dirs -sSLo $HOME/.sonar/build-wrapper-linux-x86.zip https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip
$ unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
$ Archive: /root/.sonar/build-wrapper-linux-x86.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of /root/.sonar/build-wrapper-linux-x86.zip or
/root/.sonar/build-wrapper-linux-x86.zip.zip, and cannot find /root/.sonar/build-wrapper-linux-x86.zip.ZIP, period.