azure devops pipeline script is giving 127 bash error while deploying shopify theme extension
Trying to deploy the Shopify theme extension. Azure devops pipeline script is giving error Bash exited with code '127'.
YAML script is not working for devops pipeline.
trigger: - testazuredevops stages: - stage: "Build" jobs: - job: "BuildToDeploy" pool: vmImage: ubuntu-latest steps: - task: UseRubyVersion@0 inputs: versionSpec: '>= 3' displayName: 'Install Ruby' - task: NodeTool@0 inputs: versionSpec: '18.x' displayName: 'Install Node' - script: gem install shopify-cli displayName: 'Install Shopify CLI V2' - script: gem install bundler displayName: 'Install Bundler' - script: npm install @shopify/app npm install @shopify/cli displayName: 'Install Shopify CLI V3' - task: CopyFiles@2 inputs: sourceFolder: '$(Build.SourcesDirectory)' targetFolder: $(Build.ArtifactStagingDirectory)/npm displayName: 'shopifyartifact' - task: PublishPipelineArtifact@1 inputs: targetPath: '$(Build.ArtifactStagingDirectory)' artifactName: drop displayName: 'Publish drop artifact' - stage: "NPE" dependsOn: "Build" jobs: - job: "DepoyNPE" pool: vmImage: ubuntu-latest steps: - download: current artifact: drop #from here should be in the release stage - script: | cd extensions && npm run deploy displayName: 'Deploy Theme Extension'
After running this script it is showing error sh: 1: shopify: not found. ##[error]Bash exited with code '127'
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.