FailedConsole Output

Started by remote host 104.192.136.191 with note: Triggered by push of revision ae9a5ff1630c: &quot;main: Do not specify (min|target)SdkVersion in AndroidManifest.xml<br>&quot; to https://bitbucket.org/projectmaxs/maxs/ by Flowdalic
Building in workspace /var/lib/jenkins/workspace/ProjectMAXS-CI
No credentials specified
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://bitbucket.org/projectmaxs/maxs.git # timeout=10
Cleaning workspace
 > git rev-parse --verify HEAD # timeout=10
Resetting working tree
 > git reset --hard # timeout=10
 > git clean -fdx # timeout=10
 > git submodule foreach --recursive git reset --hard # timeout=10
 > git submodule foreach --recursive git clean -fdx # timeout=10
Fetching upstream changes from https://bitbucket.org/projectmaxs/maxs.git
 > git --version # timeout=10
 > git fetch --tags --progress https://bitbucket.org/projectmaxs/maxs.git +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision ae9a5ff1630cf2a6de3ff23bc76aaeff605d2054 (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f ae9a5ff1630cf2a6de3ff23bc76aaeff605d2054
Commit message: "main: Do not specify (min|target)SdkVersion in AndroidManifest.xml"
 > git rev-list --no-walk 9fc056118ff6fe9440b33c32c96170c1f06ee79b # timeout=10
 > git remote # timeout=10
 > git submodule init # timeout=10
 > git submodule sync # timeout=10
 > git config --get remote.origin.url # timeout=10
 > git submodule init # timeout=10
 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10
 > git config --get submodule.transport-xmpp/libraryProjects/memorizingTrustManager.url # timeout=10
 > git config -f .gitmodules --get submodule.transport-xmpp/libraryProjects/memorizingTrustManager.path # timeout=10
 > git submodule update --init --recursive transport-xmpp/libraryProjects/memorizingTrustManager
 > git config --get submodule.module-shell/libraryProjects/root-commands.url # timeout=10
 > git config -f .gitmodules --get submodule.module-shell/libraryProjects/root-commands.path # timeout=10
 > git submodule update --init --recursive module-shell/libraryProjects/root-commands
 > git config --get submodule.scripts/MavenToAndroidAnt.url # timeout=10
 > git config -f .gitmodules --get submodule.scripts/MavenToAndroidAnt.path # timeout=10
 > git submodule update --init --recursive scripts/MavenToAndroidAnt
[ProjectMAXS-CI] $ /bin/sh -xe /tmp/jenkins5321715265361621805.sh
+ make
ln -rs build/module-makefile module-ringermode/Makefile
ln -rs build/module-makefile module-misc/Makefile
ln -rs build/module-makefile module-notificationpolicyaccess/Makefile
ln -rs build/module-makefile module-shell/Makefile
ln -rs build/module-makefile module-wifichange/Makefile
ln -rs build/module-makefile module-nfc/Makefile
ln -rs build/module-makefile module-contactsread/Makefile
ln -rs build/module-makefile module-fileread/Makefile
ln -rs build/module-makefile module-bluetooth/Makefile
ln -rs build/module-makefile module-wifiaccess/Makefile
ln -rs build/module-makefile module-locationfine/Makefile
ln -rs build/module-makefile module-smsread/Makefile
ln -rs build/module-makefile module-alarmset/Makefile
ln -rs build/module-makefile module-filewrite/Makefile
ln -rs build/module-makefile module-phonestateread/Makefile
ln -rs build/module-makefile module-smssend/Makefile
ln -rs build/module-makefile module-notification/Makefile
ln -rs build/module-makefile module-bluetoothadmin/Makefile
ln -rs build/module-makefile module-phonestatemodify/Makefile
ln -rs build/module-makefile module-clipboard/Makefile
ln -rs build/module-makefile module-smswrite/Makefile
ln -rs build/module-makefile module-smsnotify/Makefile
make -C main 
make[1]: Entering directory '/var/lib/jenkins/workspace/ProjectMAXS-CI/main'
/var/lib/jenkins/workspace/ProjectMAXS-CI/scripts/setupResourceLinks.sh -c /var/lib/jenkins/workspace/ProjectMAXS-CI/main
cd res-src && make
make[2]: Entering directory '/var/lib/jenkins/workspace/ProjectMAXS-CI/main/res-src'
mkdir -p ../res/./drawable-mdpi/
convert -background none -resize 128x128 drawable-mdpi/ic_maxs.svg ../res/./drawable-mdpi/ic_maxs.png
make[2]: Leaving directory '/var/lib/jenkins/workspace/ProjectMAXS-CI/main/res-src'
/var/lib/jenkins/workspace/ProjectMAXS-CI/scripts/createVersionXML.sh -c .
fatal: ref HEAD is not a symbolic ref
Version file outdated, installing new: 0.5.7-SNAPSHOT (0.5.5-33-gae9a5ff- 2019-02-13)
/bin/sh: 1: Bad substitution
gradle  assemble
Starting a Gradle Daemon, 28 busy Daemons could not be reused, use --status for details

FAILURE: Build failed with an exception.

* Where:
Build file '/var/lib/jenkins/workspace/ProjectMAXS-CI/main/build.gradle' line: 4

* What went wrong:
A problem occurred evaluating root project 'main'.
> Could not find method google() for arguments [] on repository container.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 14.471 secs
Makefile:28: recipe for target 'main' failed
make[1]: *** [main] Error 1
make[1]: Leaving directory '/var/lib/jenkins/workspace/ProjectMAXS-CI/main'
Makefile:64: recipe for target 'main' failed
make: *** [main] Error 2
Build step 'Execute shell' marked build as failure
Finished: FAILURE