Hi,
I'm experiencing problems when trying to set up pipelines with a node image (first try):
Any idea what could be the reason for missing /opt/atlassian/pipelines/agent/build/package.json?
Thanks!
Markus
Do you have a file called "package.json" in the root directory of your repository? I'd recommend putting a couple of simple commands at the beginning of your pipeline script to see if your checkout looks correct, eg.
... script: - pwd - ls -al
The output of "pwd" should be
/opt/atlassian/pipelines/agent/build
And the "ls -al" command should include the file "package.json" in its output.
ah, that is the working dir!
Figured it out now. Thanks a lot, Steven!
PS: pipelines is really a joy to use – once you overcome your own initial blindness
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was able to get this working by creating a default package.json file first. I added an npm init --yes before my npm install
My script read like this:
- npm init --yes
- ls -al #checking the package.json exists in current directory
- npm install
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.