Ravindra BagaleCourses & study guides मराठी

Ravi Sir's Cards › DevOps

Chapter 22: Jenkins Language Projects — Java to Python: Cards

मराठी cards · Open the chapter

Revision cards

One pipeline shape, many languages. Companies have apps in many languages. Learning a new pipeline for each one is slow.
Revision card 1 of 11: One pipeline shape, many languages · Download PNG · Open card page

Lesson: 22.1 How to read this chapter

Shared Pipeline job reminder. Every language project needs the same kind of Jenkins job.
Revision card 2 of 11: Shared Pipeline job reminder · Download PNG · Open card page

Lesson: 22.2 Shared Pipeline job reminder

Java with Maven: start to end. Java apps are common in banks and service companies. Maven is their usual build tool.
Revision card 3 of 11: Java with Maven: start to end · Download PNG · Open card page

Lesson: 22.3 Java (Maven) — start to end

Spring Boot: start to end. Spring Boot is the most used Java framework for web APIs.
Revision card 4 of 11: Spring Boot: start to end · Download PNG · Open card page

Lesson: 22.4 Spring Boot — start to end

Microsoft .NET: start to end. Many enterprise apps are written in C# on .NET.
Revision card 5 of 11: Microsoft .NET: start to end · Download PNG · Open card page

Lesson: 22.5 .NET — start to end

PHP: start to end. PHP runs many websites and shops.
Revision card 6 of 11: PHP: start to end · Download PNG · Open card page

Lesson: 22.6 PHP — start to end

Python: start to end. Python is used for web apps, data and scripts.
Revision card 7 of 11: Python: start to end · Download PNG · Open card page

Lesson: 22.7 Python — start to end

Gradle: start to end. Many Java and Android teams use Gradle, not Maven.
Revision card 8 of 11: Gradle: start to end · Download PNG · Open card page

Lesson: 22.8 Gradle — start to end

Node.js: where it is covered. Node.js apps follow the same pipeline shape.
Revision card 9 of 11: Node.js: where it is covered · Download PNG · Open card page

Lesson: 22.9 Node.js — pointer to chapters 20 and 21

Language cheat sheet. In interviews you may get any language. A short table helps you answer fast.
Revision card 10 of 11: Language cheat sheet · Download PNG · Open card page

Lesson: 22.10 Side-by-side cheat sheet

Safety checklist for language pipelines. A pipeline that hides failures or leaks secrets is worse than none.
Revision card 11 of 11: Safety checklist for language pipelines · Download PNG · Open card page

Lesson: 22.11 Safety and honesty checklist

Interview cards

How do you build a pipeline for a language you don't know? Keep the same stages: checkout, build, test, archive. Find the language's build tool, test command and output path.
Interview card 1 of 11: How do you build a pipeline for a language you don't know? · Download PNG · Open card page

Lesson: 22.1 How to read this chapter

How many Jenkins jobs per repo? Usually one Pipeline job (or one multibranch job) per repo, reading that repo's Jenkinsfile.
Interview card 2 of 11: How many Jenkins jobs per repo? · Download PNG · Open card page

Lesson: 22.2 Shared Pipeline job reminder

Write the Jenkins stages for a Maven project. Run mvn -B clean verify, publish test reports with junit, and archive the jar from target/.
Interview card 3 of 11: Write the Jenkins stages for a Maven project. · Download PNG · Open card page

Lesson: 22.3 Java (Maven) — start to end

How do you ship a Spring Boot app from Jenkins? Build the runnable jar, test it, archive it, then build and push a Docker image that runs java -jar.
Interview card 4 of 11: How do you ship a Spring Boot app from Jenkins? · Download PNG · Open card page

Lesson: 22.4 Spring Boot — start to end

What are the .NET steps in a pipeline? dotnet restore, dotnet build, dotnet test, dotnet publish -c Release, then archive.
Interview card 5 of 11: What are the .NET steps in a pipeline? · Download PNG · Open card page

Lesson: 22.5 .NET — start to end

How do you test a PHP app in Jenkins? Run composer install from composer.lock, then vendor/bin/phpunit. Package without dev libraries.
Interview card 6 of 11: How do you test a PHP app in Jenkins? · Download PNG · Open card page

Lesson: 22.6 PHP — start to end

Why use a venv in a Python Jenkins job? A venv keeps this job's packages apart from other jobs on the same agent, so versions don't clash.
Interview card 7 of 11: Why use a venv in a Python Jenkins job? · Download PNG · Open card page

Lesson: 22.7 Python — start to end

Why run ./gradlew and not gradle? The wrapper uses the exact Gradle version the project expects, on any agent.
Interview card 8 of 11: Why run ./gradlew and not gradle? · Download PNG · Open card page

Lesson: 22.8 Gradle — start to end

What are the Node.js steps in Jenkins? npm ci, npm test, npm run build, then archive dist/.
Interview card 9 of 11: What are the Node.js steps in Jenkins? · Download PNG · Open card page

Lesson: 22.9 Node.js — pointer to chapters 20 and 21

Give build commands for Maven, Gradle, .NET and Python. mvn -B clean verify, ./gradlew build, dotnet test, pytest in a venv.
Interview card 10 of 11: Give build commands for Maven, Gradle, .NET and Python. · Download PNG · Open card page

Lesson: 22.10 Side-by-side cheat sheet

How do you keep a pipeline honest and safe? Commit lockfiles, let tests fail the build, and use credentials by ID, never secrets in the repo.
Interview card 11 of 11: How do you keep a pipeline honest and safe? · Download PNG · Open card page

Lesson: 22.11 Safety and honesty checklist

Comparison cards

Maven vs Gradle. Two Java build tools.Maven: pom.xml, fixed lifecycle.Gradle: build.gradle, flexible scripts.
Comparison card 1 of 3: Maven vs Gradle · Download PNG · Open card page

Lesson: 22.3 Java (Maven) — start to end

Python venv vs global pip install. venv: packages in a folder for one project.Global: packages for the whole machine.
Comparison card 2 of 3: Python venv vs global pip install · Download PNG · Open card page

Lesson: 22.7 Python — start to end

Jar artifact vs Docker image. Jar: the compiled Java app.Docker image: the app plus Java and OS files, ready to run.
Comparison card 3 of 3: Jar artifact vs Docker image · Download PNG · Open card page

Lesson: 22.4 Spring Boot — start to end