ERROR:‘**/*.apk’ doesn’t match anything: ‘**’ exists but not ‘**/*.apk’

1,070 views
Skip to first unread message

Prasanth .K

unread,
Feb 16, 2015, 5:17:57 AM2/16/15
to jenkin...@googlegroups.com
while i give extension as **/*.apk in the Archiving artifacts it will shows error like this "**/*.apk’ doesn’t match anything: ‘**’ exists but not ‘**/*.apk".How can i solve this.any one suggest me.

My console Output :

Started by user anonymous
Building in workspace C:\Users\Prasanth\.jenkins\workspace\Test
 > C:\Program Files (x86)\Git\cmd\git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > C:\Program Files (x86)\Git\cmd\git.exe config remote.origin.url https://github.com/Prasanthkarthick/samp.git # timeout=10
Fetching upstream changes from https://github.com/Prasanthkarthick/samp.git
 > C:\Program Files (x86)\Git\cmd\git.exe --version # timeout=10
using .gitcredentials to set credentials
 > C:\Program Files (x86)\Git\cmd\git.exe config --local credential.helper store --file=\"C:\Users\Prasanth\AppData\Local\Temp\git2187987975379449027.credentials\" # timeout=10
 > C:\Program Files (x86)\Git\cmd\git.exe -c core.askpass=true fetch --tags --progress https://github.com/Prasanthkarthick/samp.git +refs/heads/*:refs/remotes/origin/*
 > C:\Program Files (x86)\Git\cmd\git.exe config --local --remove-section credential # timeout=10
 > C:\Program Files (x86)\Git\cmd\git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10
 > C:\Program Files (x86)\Git\cmd\git.exe rev-parse "refs/remotes/origin/origin/master^{commit}" # timeout=10
Checking out Revision e379cc050db983a21f82e40e1a77015d3401cce1 (refs/remotes/origin/master)
 > C:\Program Files (x86)\Git\cmd\git.exe config core.sparsecheckout # timeout=10
 > C:\Program Files (x86)\Git\cmd\git.exe checkout -f e379cc050db983a21f82e40e1a77015d3401cce1
 > C:\Program Files (x86)\Git\cmd\git.exe rev-list e379cc050db983a21f82e40e1a77015d3401cce1 # timeout=10
[Test] $ cmd.exe /C '"C:\apache-ant-1.9.3\bin\ant.bat clean debug && exit %%ERRORLEVEL%%"'
Buildfile: C:\Users\Prasanth\.jenkins\workspace\Test\build.xml

-check-env:
 [checkenv] Android SDK Tools Revision 24.0.0
 [checkenv] Installed at C:\Users\Prasanth\AppData\Local\Android\sdk\android-sdk

-setup:
     [echo] Project Name: androidtestapp
  [gettype] Project Type: Application

-pre-clean:

clean:
   [delete] Deleting directory C:\Users\Prasanth\.jenkins\workspace\Test\bin
   [delete] Deleting directory C:\Users\Prasanth\.jenkins\workspace\Test\gen
[getlibpath] Library dependencies:
[getlibpath] No Libraries
   [subant] No sub-builds to iterate on

-set-mode-check:

-set-debug-files:

-check-env:
 [checkenv] Android SDK Tools Revision 24.0.0
 [checkenv] Installed at C:\Users\Prasanth\AppData\Local\Android\sdk\android-sdk

-setup:
     [echo] Project Name: androidtestapp
  [gettype] Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
[getbuildtools] Using latest Build Tools: 21.1.1
     [echo] Resolving Build Target for androidtestapp...
[gettarget] Project Target:   Android 5.0
[gettarget] API level:        21
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: C:\Users\Prasanth\.jenkins\workspace\Test\bin
    [mkdir] Created dir: C:\Users\Prasanth\.jenkins\workspace\Test\bin\res
    [mkdir] Created dir: C:\Users\Prasanth\.jenkins\workspace\Test\bin\rsObj
    [mkdir] Created dir: C:\Users\Prasanth\.jenkins\workspace\Test\bin\rsLibs
    [mkdir] Created dir: C:\Users\Prasanth\.jenkins\workspace\Test\gen
    [mkdir] Created dir: C:\Users\Prasanth\.jenkins\workspace\Test\bin\classes
    [mkdir] Created dir: C:\Users\Prasanth\.jenkins\workspace\Test\bin\dexedLibs
     [echo] ----------
     [echo] Resolving Dependencies for androidtestapp...
[dependency] Ordered libraries:
[dependency] 
[dependency] ------------------
     [echo] ----------
     [echo] Building Libraries with 'debug'...
   [subant] No sub-builds to iterate on

-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
     [echo] Handling aidl files...
     [aidl] No AIDL files to compile.
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...
     [aapt] Generating resource IDs...
     [echo] ----------
     [echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.

-pre-compile:

-compile:
    [javac] Compiling 3 source files to C:\Users\Prasanth\.jenkins\workspace\Test\bin\classes

-post-compile:

-obfuscate:

-dex:
      [dex] input: C:\Users\Prasanth\.jenkins\workspace\Test\bin\classes
      [dex] input: C:\Users\Prasanth\.jenkins\workspace\Test\libs\android-support-v4.jar
      [dex] Pre-Dexing C:\Users\Prasanth\.jenkins\workspace\Test\libs\android-support-v4.jar -> android-support-v4-3d55c3f91b679ed0ef61b096555c27e9.jar
       [dx] 'reg' is not recognized as an internal or external command,
       [dx] operable program or batch file.

BUILD FAILED
C:\Users\Prasanth\AppData\Local\Android\sdk\android-sdk\tools\ant\build.xml:892: The following error occurred while executing this line:
C:\Users\Prasanth\AppData\Local\Android\sdk\android-sdk\tools\ant\build.xml:894: The following error occurred while executing this line:
C:\Users\Prasanth\AppData\Local\Android\sdk\android-sdk\tools\ant\build.xml:906: The following error occurred while executing this line:
C:\Users\Prasanth\AppData\Local\Android\sdk\android-sdk\tools\ant\build.xml:283: null returned: 255

Total time: 1 second
Build step 'Invoke Ant' marked build as failure
Archiving artifacts
Finished: FAILURE

Richard Mortimer

unread,
Feb 16, 2015, 5:26:55 AM2/16/15
to jenkin...@googlegroups.com
Hi,

On 16/02/2015 10:17, Prasanth .K wrote:
> while i give extension as **/*.apk in the *Archiving artifacts* it will
> shows error like this "***/*.apk’ doesn’t match anything: ‘**’ exists
> but not ‘**/*.apk*".How can i solve this.any one suggest me.
I think this issue is more appropriate for the jenkinsci-users list. It
doesn't look like a problem with jenkins to me.

That said...

The error is telling you that there are no files ending in .apk in your
build output.

> *-dex*:
> [dex] input: C:\Users\Prasanth\.jenkins\workspace\Test\bin\classes
> [dex] input: C:\Users\Prasanth\.jenkins\workspace\Test\libs\android-support-v4.jar
> [dex] Pre-Dexing C:\Users\Prasanth\.jenkins\workspace\Test\libs\android-support-v4.jar -> android-support-v4-3d55c3f91b679ed0ef61b096555c27e9.jar
> [dx] 'reg' is not recognized as an internal or external command,
> [dx] operable program or batch file.
>
> BUILD FAILED
> C:\Users\Prasanth\AppData\Local\Android\sdk\android-sdk\tools\ant\build.xml:892: The following error occurred while executing this line:
> C:\Users\Prasanth\AppData\Local\Android\sdk\android-sdk\tools\ant\build.xml:894: The following error occurred while executing this line:
> C:\Users\Prasanth\AppData\Local\Android\sdk\android-sdk\tools\ant\build.xml:906: The following error occurred while executing this line:
> C:\Users\Prasanth\AppData\Local\Android\sdk\android-sdk\tools\ant\build.xml:283: null returned: 255
>
> Total time: 1 second
> Build step 'Invoke Ant' marked build as failure
> Archiving artifacts
> Finished: FAILURE

The above says your build failed. I suspect that if you fix the problem
with your build failure it will create a .apk file and make everything work.

Regards

Richard
Reply all
Reply to author
Forward
0 new messages