How to hard code username and password

circle.yml
#1

Hi,

How to hard code username and password in yml file to connect circleci server to another server.

#2

You probably don’t want to hard-code sensitive information like passwords in your config.yml, instead you could set an environment variable and reference that in your jobs.

  live-deploy:
    docker:
      - image: circleci/openjdk:8-jdk
    working_directory: ~/deploy
    steps:
      - run: my-cli -u ${USERNAME} -p ${PASSWORD}
closed #3

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.