# Travis deploy lib in Bintray, throws "Build folder does not exist"

**URL:** https://travis-ci.community/t/travis-deploy-lib-in-bintray-throws-build-folder-does-not-exist/12527
**Category:** Deployment
**Created:** [December 21, 2021, 7:45pm UTC](https://travis-ci.community/t/travis-deploy-lib-in-bintray-throws-build-folder-does-not-exist/12527 "2021-12-21T19:45:04Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![SolarUltima](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/solarultima/32/4019_2.png) [@SolarUltima](https://travis-ci.community/u/SolarUltima)
#### Post date: [December 21, 2021, 7:45pm UTC](https://travis-ci.community/t/travis-deploy-lib-in-bintray-throws-build-folder-does-not-exist/12527/1 "2021-12-21T19:45:04Z")

</div>

hello,

during the deployment phase I get the warning:

```bash
[Bintray Upload] Warning: Path: build/libs/ does not exist.`

```

My lib is not deployed and I don’t understand why travis can’t find `build/libs` . I checked with simple `ls` command in .travis.yml and the path is valid.

I am looking to send `.pom` and `.jar` files located in `build/libs` folder. so its very straight forward…

```auto
  "files":
  [
    {
      "includePattern": "build/libs/(.*)",
      "uploadPattern": "com/baillyj/jikankt/1.0.0/$1"
    }
  ]

```

is my syntax no good?

---

<div class="post-metadata">

### Author: ![Montana](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/montana/32/9566_2.png) [@Montana](https://travis-ci.community/u/Montana)
#### Post date: [December 21, 2021, 7:46pm UTC](https://travis-ci.community/t/travis-deploy-lib-in-bintray-throws-build-folder-does-not-exist/12527/2 "2021-12-21T19:46:44Z")

</div>

By default, Travis is going to stash any changes to the directory before deploying. Therefore `build/libs` was created in a build step and _deleted_ in the `deploy` step, logically when you ran `ls` these files would appear in your CLI.

So add the following to your existing `.travis.yml`:

```auto
deploy:
  skip_cleanup: true

```

---

<div class="post-metadata">

### Author: ![SolarUltima](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/solarultima/32/4019_2.png) [@SolarUltima](https://travis-ci.community/u/SolarUltima)
#### Post date: [December 22, 2021, 7:07pm UTC](https://travis-ci.community/t/travis-deploy-lib-in-bintray-throws-build-folder-does-not-exist/12527/3 "2021-12-22T19:07:46Z")

</div>

good to know by default travis stashes, is this similar to `git stashing`?

---

<div class="post-metadata">

### Author: ![Montana](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/montana/32/9566_2.png) [@Montana](https://travis-ci.community/u/Montana)
#### Post date: [December 22, 2021, 7:13pm UTC](https://travis-ci.community/t/travis-deploy-lib-in-bintray-throws-build-folder-does-not-exist/12527/4 "2021-12-22T19:13:17Z")

</div>

Yes,

These terms are all fluid, like `pop`, `stash`, etc.
