-
Notifications
You must be signed in to change notification settings - Fork 43
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
GHA Onboarding Prompt breaks CI in Jenkins/CloudBees #664
Comments
Hi @lanz! Apologies for the trouble. We use Also can you confirm that you're running the latest of the latest (v8.0.4)? We've made a couple of small fixes on this front since v8 was released. |
Hi @kanadgupta, thank you so much for responding! I verified that we're using the latest version, 8.0.4. In the ci-detect file you linked to, I do see Jenkins, but I don't see CloudBees which is an enterprise version variation of Jenkins. To add some more context, here's the exact failure output from the rdme command in our CloudBees instance:
When I run the same scripts that our CloudBees instance uses on my local machine, they usually succeed; however, we do sometimes get the following error:
Let me know if you need more information, thanks! |
@kanadgupta We did some testing, and rolling back the rdme version to 7.5.0 resolved our issue in CloudBees. Any idea what changed between 7.5.0 and 8.0.4 that could be causing the issue? |
Hi @lanz — we recently shipped a GitHub Actions onboarding workflow in v8. It does some git repository inspection in order to determine whether or not to ask the user if they'd like to set up GitHub Actions. As you can tell, we're still tweaking some of the edge cases like this 😅 A few questions/notes for you:
|
Also @lanz I see that you're chatting with Karla from our Support team (she's great!) — feel free to send your debug logs or OpenAPI file through that channel if you prefer. Thanks! |
One more thing: I'd like to work with you to understand the underlying issue so we can make changes to this tool as necessary, but if you're looking for a quick and dirty fix, you should be able to add the environmental variable |
Hi @lanz, going to close this out. Let me know if you're still seeing this issue and I can re-open! |
We use rdme to sync our API specs with ReadMe. We have a build job set to run in Jenkins/CloudBees that runs the following command for several specs when content is merged in our repo:
rdme openapi "output/swagger/spec.json" --key="<redacted>" --id="<redacted>"
This has worked flawlessly for the past ~2 years; however, after upgrading to the most recent version of the rdme package, we're now being prompted if we would like to add a GitHub action after running the command. This breaks our automated scripts that we use for continuous integration via Jenkins/CloudBees because there is no user to input a response in a continuous integration environment.
I realize that the question is only asked once, and once a user responds with "no" then the question is never asked again. However, as I mentioned, there's no user in a continuous integration environment to input a response at the prompt.
Note that the above command is the recommended approach for continuous integration according to the documentation for the rdme package in npm.
The rdme tool should be changed to not require user input when updating specs using the above command since it breaks automated scripts. At the very least a flag should be added that suppresses user input prompts.
Note that we can't use GitHub Actions for several reasons. Unless the above is fixed we'll be unable to continue updating our specs in ReadMe automatically.
The text was updated successfully, but these errors were encountered: