Which statement best describes how Jenkins and GitHub Actions trigger pipelines?
Think about where the trigger configuration lives in each tool.
Jenkins typically uses webhooks set up in GitHub to start pipelines, while GitHub Actions defines triggers directly inside the workflow YAML files stored in the repo.
What is the output of this GitHub CLI command after a successful workflow run?
gh run view 12345 --json status --jq .statusCheck the GitHub CLI documentation for the status field values.
The status field in GitHub Actions run JSON is "completed" when the run finishes, regardless of success or failure. The conclusion field shows success or failure.
Which YAML snippet correctly defines a GitHub Actions job that runs on Ubuntu latest and executes a build script?
Look carefully at the keys and syntax for steps in GitHub Actions.
The correct key for the runner is 'runs-on'. Steps use 'uses' for actions and 'run' for shell commands. Option C follows this syntax correctly.
A GitHub Actions workflow does not start when pushing to the main branch. The workflow YAML has:
on:
push:
branches:
- masterWhat is the most likely cause?
Check the branch names carefully.
If the repository's default branch is 'main' but the workflow listens to 'master', the workflow will not trigger on pushes to 'main'.
Arrange the steps in the correct order to migrate a Jenkins pipeline to GitHub Actions.
Think about logical migration steps from analysis to cleanup.
First analyze Jenkins pipelines, then create GitHub Actions workflows, test them, and finally remove Jenkins jobs and update docs.