ryspnc / openshift-declaritive-pipeline-mysql

An example declaritive Jenkinsfile that launches a kubernetes pod in OpenShift, with some mysql/mariadb containers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

openshift-declaritive-pipeline-mysql

Quality Gate Status

An example declaritive jenkins pipeline script that launches a kubernetes pod in OpenShift, with 3 containers:

  • "mysql-client" = mysql:5.7
  • "mysql-server" = mariadb-102-rhel7:1
  • jenkins/jnlp-slave:alpine (added to pod automatically)

what does the pipeline do?

  • Creates a database called "testDB" in the "mysql-server" container, creates a table called "users" and loads some test data into the table.
  • From the "mysql-client" container, connect to the "mysql-server"container over TCP and run a SQL QUERY of SELECT * FROM users.

results

alt text

docs

About

An example declaritive Jenkinsfile that launches a kubernetes pod in OpenShift, with some mysql/mariadb containers.

License:Apache License 2.0


Languages

Language:Shell 100.0%