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

feat: add callgraph and build cmd detection for Jenkins #977

Open
wants to merge 1 commit into
base: staging
Choose a base branch
from

Conversation

behnazh-w
Copy link
Member

@behnazh-w behnazh-w commented Feb 6, 2025

Summary:

This PR introduces the construction of callgraphs for bash scripts inlined within Jenkinsfile configurations. Additionally, it creates BuildToolCommand objects, which will be utilized in the build-related checks. With this update, Jenkins is no longer categorized as an unparsed CI service, although parsing support remains partial.

Tests:

  • An integration test has been added for the pkg:maven/org.apache.dubbo/dubbo-rpc-memcached@2.7.7 artifact, which uses Jenkins for builds.
  • The expected result in tests/integration/cases/jenkinsci_plotplugin has been updated to reflect the absence of a build service command.

TODO:

Similar to GitHub Actions, we aim to support recursive calls to bash scripts within Jenkinsfile. The implementation should be straightforward, but it is recommended to first refactor the bashparser to decouple it from GitHub Actions, making it more general: #978

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Feb 6, 2025
@behnazh-w behnazh-w force-pushed the behnazh/improve-build-cmd-detection branch from 6ce8fc0 to dbe2525 Compare February 6, 2025 04:52
Signed-off-by: behnazh-w <behnaz.hassanshahi@oracle.com>
@behnazh-w behnazh-w force-pushed the behnazh/improve-build-cmd-detection branch from dbe2525 to 1bd3563 Compare February 6, 2025 06:51
@behnazh-w behnazh-w marked this pull request as ready for review February 6, 2025 08:30
@behnazh-w behnazh-w requested a review from tromai as a code owner February 6, 2025 08:30
@behnazh-w behnazh-w requested a review from nicallen February 6, 2025 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant