1.8 KiB
1.8 KiB
Jenkins setup (Forgejo)
Repo: https://git.aexoradao.com/epistemophiliac/erpnext.git
Branch: main
Pipeline file: Jenkinsfile (repo root)
Option A — Simple Pipeline (fastest)
If Multibranch shows an empty folder, use this instead.
- New Item → Pipeline → name
erpnext - Pipeline → Definition: Pipeline script from SCM
- SCM: Git
- Repository URL:
https://git.aexoradao.com/epistemophiliac/erpnext.git - Credentials: Forgejo user + access token
- Branch:
*/main
- Repository URL:
- Script Path:
Jenkinsfile - Save → Build Now
Option B — Multibranch Pipeline
Indexing succeeds but the folder stays empty when Discover branches is missing.
- New Item → Multibranch Pipeline → name
erpnext - Branch Sources → Git
- URL + credentials (same as above)
- Behaviours → Add → Discover branches
- Strategy: All branches (or include
mainvia wildcard filter)
- Strategy: All branches (or include
- Build Configuration
- Mode: by Jenkinsfile
- Script Path:
Jenkinsfile
- Save → Scan Repository Now
You should see a main branch under the folder. Click it → Build Now.
Optional: Forgejo webhook
Install the Gitea plugin in Jenkins, then use Gitea as the branch source (Forgejo-compatible) for automatic scans on push.
Credentials
Manage Jenkins → Credentials → Add
- Kind: Username with password
- Username:
epistemophiliac - Password: Forgejo personal access token (repo read scope)
What the pipeline does
scripts/ci/ci-readiness.shscripts/ci/validate-docker-compose.shdocker compose config(Coolify-safe compose)docker pull frappe/erpnext:<version>- Archives
dist/docker-compose.coolify.yml
This validates the repo; Coolify deploy is separate.