# Generate keystore

**URL:** <https://discuss.bitrise.io/t/generate-keystore/3827>\
**Category:** Builds\
**Tags:** script\
**Created:** [January 22, 2018, 7:30am UTC](https://discuss.bitrise.io/t/generate-keystore/3827 "2018-01-22T07:30:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![volskyioleh](https://avatars.discourse-cdn.com/v4/letter/v/3bc359/32.png) [@volskyioleh](https://discuss.bitrise.io/u/volskyioleh)\
**Post date:** [January 22, 2018, 7:30am UTC](https://discuss.bitrise.io/t/generate-keystore/3827/1 "2018-01-22T07:30:40Z")

</div>

Hi, I want to generate a keystore for my application, but I have a problem on the ‘Deploy to [Bitrise.io](http://Bitrise.io) - Apps, Logs, Artifacts’ step.  
In what there can be a reason and how to solve this problem?

 ![deploy1](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/c/c1a89c3cd5ec66482e0cdc8bc7f9a5fd5f8590de.png)

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [January 22, 2018, 10:49am UTC](https://discuss.bitrise.io/t/generate-keystore/3827/2 "2018-01-22T10:49:38Z")

</div>

Hi @volskyioleh,

Can you please copy paste the build’s [bitrise.io](http://bitrise.io) URL?

---

<div class="post-metadata">

**Author:** ![volskyioleh](https://avatars.discourse-cdn.com/v4/letter/v/3bc359/32.png) [@volskyioleh](https://discuss.bitrise.io/u/volskyioleh)\
**Post date:** [January 22, 2018, 11:18am UTC](https://discuss.bitrise.io/t/generate-keystore/3827/3 "2018-01-22T11:18:29Z")

</div>

[https://www.bitrise.io/build/41340155607afd74](https://www.bitrise.io/build/41340155607afd74) this?

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [January 22, 2018, 2:43pm UTC](https://discuss.bitrise.io/t/generate-keystore/3827/4 "2018-01-22T14:43:26Z")

</div>

Checked the config & log of the build, it seems your script does not generate the keystore into the right dir.

I’d suggest you to add these lines to the Script step:

```auto
# where are we?
pwd
# what files are in this dir?
ls -alh

```

From this you should be able to see where the file is generated, or if it’s generated at all and whether the path is the one you expect.

From the configs it seems you generate the keystore file to some dir, not into the `$BITRISE_SOURCE_DIR`, but you set the Deploy step to deploy the source dir - which is most likely empty, as you don’t git clone anything and you seem to generate the keystore file into another dir, so the source dir remains empty.

I hope this helps, if you have any questions just let us know! 🙂

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [January 22, 2018, 2:45pm UTC](https://discuss.bitrise.io/t/generate-keystore/3827/5 "2018-01-22T14:45:39Z")

</div>

P.S.: I’d suggest you to install the Bitrise CLI (runner) on your own Mac/Linux and run the config there, to debug / experiment with it:

> [@How to experiment with Bitrise configs locally, on your Mac/Linux](http://discuss.bitrise.io/t/how-to-experiment-with-bitrise-configs-locally-on-your-mac-linux/1751):
>
> Do you want to run a custom Script in your builds, or do you want to experiment with things you just found on the [DevCenter](http://devcenter.bitrise.io/), but would love to make the process faster? If you do, this is the right place for you! It’s actually super simple: Install the Bitrise CLI, which is the exact same runner which runs the builds on the [bitrise.io](http://bitrise.io) VMs. [Bitrise CLI](https://www.bitrise.io/cli) Note: the CLI is open source, repo and code: [GitHub - bitrise-io/bitrise: Bitrise runner CLI - run your automations on your Mac or Linux mach…](https://github.com/bitrise-io/bitrise)
