bash: zip: command not found

Issue #15242 resolved
Jon Witting
created an issue

Unable to use zip in pipeline builds.

Comments (3)

  1. Aneita Yang staff

    Hi Jon,

    In order to use the zip command, you must first install zip. You can do this by adding the following two lines to your bitbucket-pipelines.yml file:

    - sudo apt-get update
    - sudo apt-get install zip
    

    I hope this helps.

  2. Nenad Kostić

    Hi, I tried with and without sudo and I get the same result. See screenshoot. apt.png

    My bitbucket-pipeline.yml looks like this:

    pipelines:
      default:
        - step:
            name: Deploy to AWS
            deployment: staging # set to test, staging or production
            image: atlassian/pipelines-awscli
            # caches:
            #   - node
            script: # Modify the commands below to build your repository.
              # - npm install
              # - npm test
              - apt-get update
              - apt-get install zip          
              - zip -r /tmp/artifact.zip server.js appspec.yml bild/* app/* config/*
              - python codedeploy_deploy.py
    
  3. Log in to comment