Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Docker Build Kit Secrets throwing unexpected error

LHernandez December 15, 2022

Help with this would be appreciated!

I'm using docker build kit to pass build secrets.

I'm replicating the documentation found here

The 2 secrets are present in repo vars and they are secure.

My pipeline step looks like this:

Screen Shot 2022-12-15 at 12.04.12 PM.png

I'm getting the following error message:

could not parse secrets: [id=WEBLOGIC_ENCRYPTION_SECRET id=WEBLOGIC_ENCRYPTION_SALT]: failed to stat WEBLOGIC_ENCRYPTION_SECRET: stat WEBLOGIC_ENCRYPTION_SECRET: no such file or directory

 

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 19, 2022

Hi @LHernandez,

I haven't been able to reproduce this error so far with a Docker runner and a command similar to yours, the only time I can reproduce this is if the variables do not exist.

I see that you are using a runner for this step.

  1. Can you please confirm if this is a Linux Docker Runner?
  2. What version of the runner are you using? You can find that in the Pipelines build log in the section Runner.
  3. What is the version of Docker on the machine where the runner is running?
  4. Are you using a custom docker-in-docker image for the docker service in the bitbucket-pipelines.yml file?
  5. What output do you get if you add the command docker --version in that step in the bitbucket-pipelines.yml file? 

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events