Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating and installing packages does not work with Linux 'yes' command. #136

Closed
coder755 opened this issue Feb 11, 2022 · 6 comments
Closed

Comments

@coder755
Copy link

Hello,

I am attempting to utilize the Akamai cli in a Jenkins pipeline. All of our installs are done via automation and command line (aka a cattle vs pet mentality). I would like to use something like the following commands in our Jenkinsfile to install the cli and purge tool:

    sh "curl -v -o akamai -L \"https://github.com/akamai/cli/releases/download/1.3.1/akamai-1.3.1-linux386\""
    sh "chmod +x akamai"
    sh "yes n | ./akamai update"
    sh "yes | ./akamai install purge"

However, I am finding that Akamai cli is not compatible with the 'yes' command. I wonder if I am missing a detail that would make this significantly simpler. Perhaps a flag to force a 'yes'/'no' response. Any suggestions?

@kaush-
Copy link
Contributor

kaush- commented Apr 1, 2022

Hi @coder755,

Thank you for raising this issue with us. Upon further investigation, we could see that it is a valid issue caused by a third party module we have been using. It should be fixed in the next release.

@pnair421
Copy link

This is an issue we are facing in our Github Actions CI/CD as well. Is there an ETA on when the release would be available with this fix?

@consbish
Copy link

I had the similar issue. Somehow I managed this issue with below command.
akamai install --force purge

Hope this will help if someone is running it through Jenkins or any other CI/CD pipeline.

@coder755
Copy link
Author

I had the similar issue. Somehow I managed this issue with below command. akamai install --force purge

Hope this will help if someone is running it through Jenkins or any other CI/CD pipeline.

Hey @consbish. Unfortunately this doesn't resolve the issue of installing and updating the CLI. Thanks for trying to help out.

@coder755
Copy link
Author

As a side note. I did find a work around. To restate the problem space: after downloading the installation, manual inputs are required (these are incompatible with the linux yes command).
However, after doing the install manually, I found a configuration file (.akamai-cli/config) that contained flags being set by the inputs. So I copied that file and placed it in the Jenkins config file storage area. The implementation then became writing the configuration to the file and location the akamai install was expecting. Then TADA! No inputs required :D

#wonthegame

@robertolopezlopez
Copy link
Contributor

Hi @coder755 and @conpnair ,

This should be fixed in the new 1.4.2 release which we have done today. Thus I will close this issue now. If you happen to have problems again, please reopen it :-)

Regards,

Roberto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

5 participants