Coder Social home page Coder Social logo

essential-jenkins-2468076's Introduction

Jenkins Essential Training

This is the repository for the LinkedIn Learning course Jenkins Essential Training. The full course is available from LinkedIn Learning.

Jenkins Essential Training

If you want to build, deploy, and implement continuous delivery as code, you’ve likely heard about Jenkins, the popular DevOps suite known for its open-source extensibility and ease of use. Jenkins also lets you automate your entire enterprise as a software delivery pipeline. In this course, instructor Michael Jenkins shows you the fundamentals of navigating the platform so you can start automating builds and testing and securing deployments.

Learn about the core functions of Jenkins, progressing from intermediate to more advanced use cases and highlighting best practices and customization tips. Find out how to create a pipeline, integrate Jenkins with version control systems, distribute agents like Docker containers, run and publish tests, produce artifacts for review, and secure your DevOps loop by configuring users and permissions. Try out your new skills along the way in the challenges at the end of each section.

Installing

  1. To use these exercise files, you must have one of the following versions of Jenkins installed:

    • Jenkins 2.332.2 LTS or newer
    • Jenkins 2.342 or newer
    • Ubuntu 20.04 or newer (for exercise files related to installing Jenkins on a system running the Ubuntu Linux operating system)
  2. Clone this repository into your local machine using the terminal (Mac), CMD (Windows), or a GUI tool like SourceTree.

  3. Follow any additional instructions in the README file for each lesson.

Instructor

Michael Jenkins

Lead Software Engineer, Systems Reliability Engineer

Check out my other courses on LinkedIn Learning.

essential-jenkins-2468076's People

Contributors

cmosier-lil avatar managedkaos avatar smoser-lil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

essential-jenkins-2468076's Issues

Build now FAILURE on the ssh-agent pipeline

Issue Overview

When attempting to run the Build Now Pipeline ssh-agent it fails with the following:

Started by user Franc
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
WorkflowScript: 4: Tool type "maven" does not have an install of "Maven-3.8.4" configured - did you mean "maven-3.8.4"? @ line 4, column 13.
maven 'Maven-3.8.4'
^

1 error

at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:309)
at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1107)
at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:624)
at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:602)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:579)
at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:323)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:293)
at groovy.lang.GroovyShell.parseClass(GroovyShell.java:677)
at groovy.lang.GroovyShell.parse(GroovyShell.java:689)
at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:142)
at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:127)
at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:561)
at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:513)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:335)
at hudson.model.ResourceController.execute(ResourceController.java:101)
at hudson.model.Executor.run(Executor.java:442)

Finished: FAILURE

Describe your environment

I am using the same EC2 Ubuntu as my Jenkins Controller and an EC2 Ubuntu as Jenkins Agent node.

Steps to Reproduce

  1. Copy the current contents of the Jenkinsfile from https://github.com/LinkedInLearning/essential-jenkins-2468076/blob/6f23cc7a25d0af5a63e76f9da70109faea8d4538/Ch04/04_02-ssh-agent/Jenkinsfile
  2. Paste it into the new created ssh-agent pipeline in your Jenkins Controller
  3. Click on Build now

Expected Behavior

[Pipeline] End of Pipeline
Finished: SUCCESS

Current Behavior

Finished: FAILURE # from the Jenkins Console

Possible Solution

pipeline {
agent { label 'linux' }
tools {
maven 'Maven-3.8.4' #change the Uppercase M to lowercase m

Screenshots / Video

Related Issues

Update install script to include python3-venv

Issue Overview

The library for python3-venv needs to be installed.

Describe your environment

  • Ubuntu 22.04
  • Python 3.10.12

Steps to Reproduce

...

Expected Behavior

virtual environment should be created

Current Behavior

The virtual environment was not created successfully because ensurepip is not
available.  On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

    apt install python3.10-venv

You may need to use sudo with that command.  After installing the python3-venv
package, recreate your virtual environment.

Possible Solution

Install python3-venv with apt install python3-venv in the automated installation script.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.