# How do I pass password to Gradle?

**URL:** <https://community.codefresh.io/t/how-do-i-pass-password-to-gradle/468>\
**Category:** Integrations\
**Created:** [November 18, 2020, 2:19pm UTC](https://community.codefresh.io/t/how-do-i-pass-password-to-gradle/468 "2020-11-18T14:19:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![val-work](https://sea1.discourse-cdn.com/flex019/user_avatar/community.codefresh.io/val-work/32/300_2.png) [@val-work](https://community.codefresh.io/u/val-work)\
**Post date:** [November 18, 2020, 2:19pm UTC](https://community.codefresh.io/t/how-do-i-pass-password-to-gradle/468/1 "2020-11-18T14:19:38Z")

</div>

My Gradle build script uses Artifactory. I need to pass username/password to Gradle. How do I do that?

---

<div class="post-metadata">

**Author:** ![Kostis](https://sea1.discourse-cdn.com/flex019/user_avatar/community.codefresh.io/kostis/32/391_2.png) [@Kostis](https://community.codefresh.io/u/Kostis)\
**Post date:** [November 19, 2020, 3:53pm UTC](https://community.codefresh.io/t/how-do-i-pass-password-to-gradle/468/2 "2020-11-19T15:53:56Z")

</div>

Hello

If you are asking about the Codefresh side, you can use pipeline variables or shared configuration

> **[Shared configuration](https://codefresh.io/docs/docs/configure-ci-cd-pipeline/shared-configuration/)**
>
> How to keep your pipelines DRY

If you are asking about the Gradle side, you can follow their official docs

[https://www.jfrog.com/confluence/display/JFROG/Working+with+Gradle](https://www.jfrog.com/confluence/display/JFROG/Working+with+Gradle)
