MohitGupta41 commited on
Commit
bc0a05d
·
1 Parent(s): 3cb095e

Adding Visitor Analytics Feature

Browse files
Files changed (1) hide show
  1. jenkins.yaml +2 -27
jenkins.yaml CHANGED
@@ -55,29 +55,8 @@ 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)')
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,11 +64,7 @@ jobs:
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
  }
 
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
  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
  }