-
Notifications
You must be signed in to change notification settings - Fork 438
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
Integration with CI pipeline and Jenkins #524
Comments
What changes to clasp would allow this to work for you? Perhaps be more specific about how clasp fails today and what a better option would look like? |
We're saving the |
Hello, Thank you both for giving some thought, @alx-andru's solution looks good, but there is something I don't really like. Why do we need to put the clasp credentials file into the user home directory, is there no other way? We could have different projects using clasp and the same jenkins environment and that could cause problems. Why can we not just put it in the project folder by copying it as you describe at build time. |
@darul75 The original issue seems solved by logging in with a generic Google account. The request described of using non- If you have multiple G Suite accounts/credentials in the same Jenkins environments, then I could see why you'd want custom credentials. But it seems like an edge-case. |
Storing files of credentials in home directories on all the build agents is the less desirable backup plan. An alternative would be great so we don't need to store anything at the $HOME level. |
Let us know what your solution is then besides Putting credentials in a local directory is bad since you'll likely put them in source control, which would be very bad. |
Is there any update on this? This would be very useful. |
In case you missed it, a good samarithan created this repo to show how to set up a continuous deployment with clasp: https://github.com/ericanastas/deploy-google-app-script-action#gcp-service-accounts |
Consolidating in #962 |
Expected Behavior
Being able to push using clasp on each Jenkins build.
Actual Behavior
There is no easy way to publish from a Jenkins CI infra, even by using clasp login --creds
Our build system generates new versions and we would need to get an association between this version and the clasp versions.
Steps to Reproduce the Problem
clasp push
command to update content of our app script projectpush
commandSpecifications
node -v
): v10.14.1clasp -v
): 2.0.1The text was updated successfully, but these errors were encountered: