Standardize CI/CD onto Harness: templated pipeline + team migration guide#264
Open
devin-ai-integration[bot] wants to merge 1 commit into
Open
Standardize CI/CD onto Harness: templated pipeline + team migration guide#264devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
Co-Authored-By: Achal Channarasappa <achal.channarasappa@cognition.ai>
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Converges this service's Jenkins DevSecOps pipeline onto Harness, delivered as reusable templates so other teams can onboard by supplying a few variables instead of copying a
Jenkinsfile. Purely additive — the existingJenkinsfile,GitOps/Jenkinsfile, andvars/*.groovyshared library are untouched. No app code, dependencies, or security policies changed; no real secrets are embedded (connectors/secrets are referenced as placeholders likeaccount.Github,<+secrets.getValue("sonar_token")>).All new files live under a new
.harness/directory. Every YAML parses cleanly (validated withyaml.safe_load_all).What's added
Reusable template hierarchy
This mirrors the Jenkins shared library (
vars/*.groovy) idea of reusable steps, but as versioned (versionLabel: v1), parameterized (<+input>) Harness Templates shareable across projects/account.Jenkins -> Harness stage mapping
code_checkout(url,"DevOps")cloneCodebase: true+ Git connectorproperties.ci.codebasetrivy_scan()->trivy fs .Run(aquasec/trivy)owasp_dependency()Run(owasp/dependency-check)sonarqube_analysis(...)Run(mavensonar:sonar)sonarqube_code_quality()Run(poll Sonar quality-gate API)docker_build()+docker_push()BuildAndPushDockerRegistrysedmanifest bump +git pushRun(sed + push; ArgoCD reconciles)post{ emailext }notificationRules(Email)Note: the Jenkins CI job never ran
mvn test(the Maven build happens inside the Dockerfile with-DskipTests=true). The Harness CI stage adds an explicit Build & Test step (./mvnw clean test) up front to fail fast — the intended converged behavior. Deploy facts (namespacebankapp-namespace, imagetrainwithshubham/bankapp-eks, GitOps/ArgoCD) come straight fromkubernetes/+helm/.How another team onboards
templates/*.yamlinto Harness (or promote to account-level), adjustingorgIdentifier/projectIdentifier.pipeline-template.yamland supply runtime inputs (service_name,image_repo,docker_tag,sonar_host_url,sonar_project_key, codebase connector/repo,gitops_repo).Full details, variable tables, and the connector/secret placeholder map are in
.harness/README.md; the exhaustive stage inventory is in.harness/JENKINS_INVENTORY.md.Link to Devin session: https://app.devin.ai/sessions/326929740c1b44428a6b50196a03734b
Requested by: @achalc
Devin Review