A Jenkins to GitHub Actions migration has two costs: the compute you pay for and the hand work your team does. Compute depends on your runner operating systems. Hand work depends on how many pipelines use constructs the importer skips.
The spread is wide. A 1-core Linux minute costs $0.002, and a macOS minute costs $0.062. A hosted job stops at 6 hours, and a self-hosted job runs 5 days. If you are still choosing a CI/CD tool, which means continuous integration and continuous delivery, compare per-user and per-build costs in CircleCI pricing in 2026.
What actually changes in a Jenkins to GitHub Actions migration?
A Jenkins to GitHub Actions migration swaps Jenkins jobs for GitHub Actions workflows. Each stage becomes a workflow job, and each step becomes a run or uses entry. A cron trigger becomes an on.schedule block. Most Declarative structure converts. The rest needs hand work.
GitHub's mapping table lists two Jenkins constructs as None: the post directive and matrix excludes. None does not mean the job is impossible. A step with if: always() or if: failure() can do what a post block does. GitHub's workflow syntax also has a strategy.matrix.exclude key. Read what the importer produces, then test it.
Five families stay manual:
- Mandatory build tools.
- Scripted pipelines, which are Groovy code.
- Secrets.
- Self-hosted runners.
- Unknown plugins.
Credentials come first. You need a classic GitHub personal access token, a PAT, with the workflow scope. The reference page also lists the repo scope for the migrate command, so grant both. You also need a Jenkins API token, your Jenkins username and the instance URL. The token must see every job you audit or migrate. Folders that do not inherit permissions need explicit access.
How do you audit and forecast your Jenkins estate before you migrate anything?
Start with an inventory, not a conversion. The audit command classifies every pipeline and lists the actions, secrets and runners it needs. The forecast command turns build history into usage figures. Both run from a GitHub command-line interface, or CLI, extension, so they can run away from your Jenkins server. The importer docs list every command.
You need Docker running and the GitHub CLI installed. Install the extension.
gh extension install github/gh-actions-importer
Store your credentials in one interactive step. It also takes an optional Jenkinsfile token with the repo scope.
gh actions-importer configure
Seven commands cover a Jenkins migration: configure, update, audit, forecast, dry-run, migrate and version. Run update now and then to get the latest importer.
The audit command writes audit_summary.md and workflow_usage.csv. That file lists the actions, secrets and runners used by each converted pipeline, so you can build an allowlist.
gh actions-importer audit jenkins --output-dir tmp/audit
Each pipeline lands in one of four outcomes: successful, partially successful, unsupported or failed. A failed pipeline hit a fatal error, such as a bad pipeline, an importer error or invalid credentials. Treat the counts as a workload.
Next, forecast your usage. The report covers the previous seven days by default and lists job count, pipeline count and execution time. Execution time helps you plan hosted runner cost.
gh actions-importer forecast jenkins --output-dir tmp/forecast
Forecast needs the paginated-builds plugin on the Jenkins server. It prevents timeouts on large build histories.
How do Jenkins Declarative directives map onto GitHub Actions jobs and steps?
A Jenkins Declarative pipeline declares stages, steps, triggers and options in a fixed structure. Most of it maps onto a GitHub Actions workflow file, which is written in YAML. The mapping guide pairs each Jenkins directive with a workflow key. Two directives map to None, and a few need edits.
| Jenkins directive | GitHub Actions equivalent | Migration note |
|---|---|---|
| agent | jobs.<job_id>.runs-on or container | Agent labels become runner labels. |
| stages | jobs | Each stage becomes one job. |
| when | jobs.<job_id>.if | Conditions move to an if key. |
| cron | on.schedule | Hash syntax must be rewritten. |
| post | None | Rebuild it as steps with if: always() or if: failure(). |
| matrix excludes | None in the table | Test strategy.matrix.exclude on the result. |
Checked November 2026 on the GitHub mapping guide and workflow syntax docs.
Jenkins uses H to pick a start offset for you. GitHub has no such hash, so you pick a minute. GitHub's example turns cron('H/15 * * * 1-5') into cron: '*/15 * * * 1-5'.
How do you carry out a Jenkins to GitHub Actions migration?
Follow the official sequence: audit, forecast, dry-run, migrate, then finish the manual steps. Start with one low-risk pipeline. A dry run converts it without opening a pull request, so you can read the output first. Migrate only after the converted file looks right.
migrate from jenkins to github actions
Work through one pipeline at a time.
- Run a dry run with your Jenkins job URL. The converted workflow and logs land in the output folder.
gh actions-importer dry-run jenkins --source-url <job-url> --output-dir tmp/dry-run
- Read the workflow file. For unknown build steps or a partly converted pipeline, GitHub suggests custom transformers.
- Run migrate. It converts the pipeline and opens a pull request.
gh actions-importer migrate jenkins --target-url https://github.com/:owner/:repo --output-dir tmp/migrate --source-url <job-url>
- Open the pull request. Its Manual steps section lists what you must finish, such as creating secrets.
- Define any self-hosted runner labels in GitHub by hand. The importer does not create runners.
- Merge the pull request, run the workflow, and compare its result with the Jenkins job.
migration from jenkins to github actions
Official docs publish no migration duration, so your audit counts set the schedule. A partially successful pipeline needs a person to finish items. An unsupported one needs a rewrite. A failed one needs a fix first.
Which GitHub Actions limits can break a pipeline that ran fine on Jenkins?
GitHub-hosted runners stop a job at 6 hours, while a self-hosted runner allows 5 days. A Jenkins build that ran overnight can fail on its first migrated run, because GitHub terminates the job at the limit. The limits reference lists every cap. Hosted macOS jobs also cap at 5 at once on Free, Pro and Team.
| Limit | Documented value | What it affects |
|---|---|---|
| Hosted job time | 6 hours | Long builds are terminated. |
| Matrix size | 256 jobs per run | Wide matrices need splitting. |
| Workflow file size | 500 KB | A larger file never triggers. |
| Queued runs | 100 per concurrency group, with queue: max | Runs past 100 are rejected. |
Checked November 2026 on the GitHub Actions limits reference.
What does the same pipeline cost per month on GitHub Actions?
Compute is billed per minute and per operating system, so the same pipelines cost more or less depending on your runner mix. A Linux 2-core x64 minute costs $0.006, a Windows 2-core minute costs $0.010, and a macOS minute costs $0.062. The billing docs publish every rate.
| Runner type | Billing SKU | Rate per minute | Minutes in $18 |
|---|---|---|---|
| Linux 1-core x64 | actions_linux_slim | $0.002 | 9,000 |
| Linux 2-core x64 | actions_linux | $0.006 | 3,000 |
| Windows 2-core x64 | actions_windows | $0.010 | 1,800 |
| macOS 3-core or 4-core | actions_macos | $0.062 | 290 |
Checked November 2026 on GitHub Actions billing docs.
| Plan | Price and unit | Included compute per month |
|---|---|---|
| GitHub Free | $0 USD | $12 USD |
| GitHub Team | $4 USD per user per month | $18 USD |
| GitHub Enterprise Cloud | $21 USD per user per month | $300 USD |
Checked November 2026 on GitHub pricing and GitHub Actions billing docs.
Here is compute at three usage levels. The credit column assumes GitHub Team.
| Usage level | Minutes per month | Monthly compute before credit | Annual before credit | Monthly after the $18 Team credit |
|---|---|---|---|---|
| Linux only | 5,000 Linux 2-core minutes | 5,000 x $0.006 = $30 | $360 | $12 |
| macOS only | 5,000 macOS minutes | 5,000 x $0.062 = $310 | $3,720 | $292 |
| Mixed estate | 5,000 Linux and 500 macOS minutes | $30 plus $31 = $61 | $732 | $43 |
Checked November 2026 on GitHub Actions billing docs. Seats and storage are extra.
The operating system mix decides the bill. The $18 in GitHub Team covers 3,000 Linux 2-core minutes but only about 290 macOS minutes, because $18 divided by $0.062 gives 290. A macOS minute costs about ten times a Linux 2-core minute. Your cost per job also depends on how long each job runs.
Ten Team users add $40 a month in seats. Storage above the included allowance costs $0.25 per GB per month for artifacts and Packages, and $0.07 for the Actions cache.
GitHub's billing page lists self-hosted runner usage as free. You still pay for the machines. Jenkins has no licence fee, but you run and patch it. Compare the forecast report against what your Jenkins controller and agents cost today. With no payment method on file, GitHub blocks usage once included compute runs out.
Pick hosted Linux runners for short Linux builds. Pick self-hosted runners for jobs over 6 hours. For a three-way price view, read Harness vs GitHub Actions vs Jenkins. For seat costs on the top plan, read GitHub Enterprise pricing in 2026.
Next steps
- Run the importer audit and read audit_summary.md.
- Group your pipelines by audit outcome.
- Check long jobs against the 6-hour hosted limit.
Photo: Watty62, CC BY-SA 4.0, via Wikimedia Commons (https://commons.wikimedia.org/wiki/File:CTC2_close_up.jpg)
Fazlur Rahman








