Spaces:
Sleeping
Sleeping
MohitGupta41 commited on
Commit ·
3cb095e
1
Parent(s): e74d6e9
Adding Visitor Analytics Feature
Browse files- jenkins.yaml +28 -4
jenkins.yaml
CHANGED
|
@@ -55,8 +55,29 @@ credentials:
|
|
| 55 |
- string: { id: "upstash-redis-rest-url", scope: GLOBAL, description: "UPSTASH_REDIS_REST_URL", secret: "${UPSTASH_REDIS_REST_URL}" }
|
| 56 |
- string: { id: "upstash-redis-rest-token", scope: GLOBAL, description: "UPSTASH_REDIS_REST_TOKEN", secret: "${UPSTASH_REDIS_REST_TOKEN}" }
|
| 57 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
jobs:
|
| 59 |
-
# ---------- Single Pipeline (kept) ----------
|
| 60 |
- script: |
|
| 61 |
pipelineJob('mohit-project') {
|
| 62 |
description('Seeded by Job DSL (recreated on every boot)')
|
|
@@ -64,16 +85,19 @@ jobs:
|
|
| 64 |
cpsScm {
|
| 65 |
scm {
|
| 66 |
git {
|
| 67 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
branch('*/main')
|
| 69 |
}
|
| 70 |
}
|
| 71 |
scriptPath('Jenkinsfile')
|
| 72 |
}
|
| 73 |
}
|
| 74 |
-
// Deprecated warning is fine; this keeps cron + webhook
|
| 75 |
triggers {
|
| 76 |
githubPush()
|
| 77 |
-
scm('H/5 * * * *')
|
| 78 |
}
|
| 79 |
}
|
|
|
|
| 55 |
- string: { id: "upstash-redis-rest-url", scope: GLOBAL, description: "UPSTASH_REDIS_REST_URL", secret: "${UPSTASH_REDIS_REST_URL}" }
|
| 56 |
- string: { id: "upstash-redis-rest-token", scope: GLOBAL, description: "UPSTASH_REDIS_REST_TOKEN", secret: "${UPSTASH_REDIS_REST_TOKEN}" }
|
| 57 |
|
| 58 |
+
# jobs:
|
| 59 |
+
# # ---------- Single Pipeline (kept) ----------
|
| 60 |
+
# - script: |
|
| 61 |
+
# pipelineJob('mohit-project') {
|
| 62 |
+
# description('Seeded by Job DSL (recreated on every boot)')
|
| 63 |
+
# definition {
|
| 64 |
+
# cpsScm {
|
| 65 |
+
# scm {
|
| 66 |
+
# git {
|
| 67 |
+
# remote { url('https://github.com/MohitGupta0123/M.A.R.S.H.A.L.-Automated-Pipeline.git') }
|
| 68 |
+
# branch('*/main')
|
| 69 |
+
# }
|
| 70 |
+
# }
|
| 71 |
+
# scriptPath('Jenkinsfile')
|
| 72 |
+
# }
|
| 73 |
+
# }
|
| 74 |
+
# triggers {
|
| 75 |
+
# githubPush()
|
| 76 |
+
# scm('H/5 * * * *')
|
| 77 |
+
# }
|
| 78 |
+
# }
|
| 79 |
+
|
| 80 |
jobs:
|
|
|
|
| 81 |
- script: |
|
| 82 |
pipelineJob('mohit-project') {
|
| 83 |
description('Seeded by Job DSL (recreated on every boot)')
|
|
|
|
| 85 |
cpsScm {
|
| 86 |
scm {
|
| 87 |
git {
|
| 88 |
+
// ✅ Use GitHub token for private repo access
|
| 89 |
+
remote {
|
| 90 |
+
url('https://github.com/MohitGupta0123/M.A.R.S.H.A.L.-Automated-Pipeline.git')
|
| 91 |
+
credentials('github-token') // <-- add this line
|
| 92 |
+
}
|
| 93 |
branch('*/main')
|
| 94 |
}
|
| 95 |
}
|
| 96 |
scriptPath('Jenkinsfile')
|
| 97 |
}
|
| 98 |
}
|
|
|
|
| 99 |
triggers {
|
| 100 |
githubPush()
|
| 101 |
+
scm('H/5 * * * *')
|
| 102 |
}
|
| 103 |
}
|