About the problem of running git programs in jenkins deployed by docker

About the problem of running git programs in jenkins deployed by docker

1. First, an error message is reported when associating git: ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this

This is because I am not running the master branch code of git, so an error is reported. For details, please refer to this article

The solution is to set the specified branch as shown in the figure below, which means any branch.

This will clone the code on git to the jenkins container directory as a project. Here I am: /var/jenkins_home/workspace/first_python/

2. Set up the execution shell to run the program

2. After saving the build execution, you can see the execution results in the console output.

How to use skip to skip test execution in Pytest

This is the end of this article about Jenkins deployed with docker running programs on git. For more relevant dockerjenkins git content, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Detailed explanation of Docker+Jenkins+Gitlab+Django application deployment practice
  • Docker container uses Jenkins to deploy web projects (summary)
  • .Net Core automated deployment: How to deploy dotnetcore applications using docker version of Jenkins
  • Implementation of Centos7+Docker+Jenkins+ASP.NET Core 2.0 automated release and deployment

<<:  SSM VUE Axios Detailed Explanation

>>:  Solutions to the problem of table nesting and border merging

Recommend

Solve the problem of Tomcat10 Catalina log garbled characters

Running environment, Idea2020 version, Tomcat10, ...

Use of Linux passwd command

1. Command Introduction The passwd command is use...

2 reasons why html-css tag style setting does not work

1 CSS style without semicolon ";" 2 Tags...

IDEA complete code to connect to MySQL database and perform query operations

1. Write a Mysql link setting page first package ...

The most common declaration merge in TS (interface merge)

Table of contents 1. Merge interface 1.1 Non-func...

Tomcat class loader implementation method and example code

Tomcat defines multiple ClassLoaders internally s...

Introduction and usage of Angular pipeline PIPE

Preface PIPE, translated as pipeline. Angular pip...

Example code for implementing beautiful clock animation effects with CSS

I'm looking for a job!!! Advance preparation:...

Solution to the failure of entering the container due to full docker space

Since the problem occurred rather suddenly and th...

How to draw a cool radar chart in CocosCreator

Table of contents Preface Preview text Graphics C...

MySQL 5.7 installation and configuration method graphic tutorial

This tutorial shares the installation and configu...

Solution to MySQL root password error number 1045

Stop MySQL Service Windows can right-click My Com...

Nginx defines domain name access method

I'm building Nginx recently, but I can't ...

Vue template compilation details

Table of contents 1. parse 1.1 Rules for intercep...

Implementation of mysql decimal data type conversion

Recently, I encountered a database with the follo...