Skip to content

Instantly share code, notes, and snippets.

@franTarkenton
Last active September 12, 2019 17:17
Show Gist options
  • Save franTarkenton/34b11676802497d9ffdf5ae2b4265ef7 to your computer and use it in GitHub Desktop.
Save franTarkenton/34b11676802497d9ffdf5ae2b4265ef7 to your computer and use it in GitHub Desktop.

Outline

  • CI/CD for BCDC api tests
  • The Story... How I arrived at using Github Actions
  • Workflow that was created
  • Opportunities for Improvement

Drawing

CI/CD for BCDC Tests

  • Not going to have tests of tests, but can have a sonarscan, and build
  • Build must only proceed if all of the following are true:
    • Pull Request is on Master Branch
    • Pull Request has been merged
    • Pull Request is closed.

Drawing

The Story

Dockerfile / Webhook

  • Always builds on all Pull Requests, no sonar (1/2 day)

Jenkins / Webhook

  • Figure out how to get webhook to actually trigger jenkins
    • build with parameter - requires two step with crumb
    • Other methods require custom plugin
    • github plugin doesn't get the payload.
  • Trying to figure out how to send along the payload (1.5 days)
    • Figure out workaround with events (.5 days)
  • Upgrade code to python3
  • realize can't build python3 on jenkins slave...
  • could trigger another process on openshift
  • Webhook trigger stops working
  • figure out why? (2 days)
  • no hair left... Git hub actions

Drawing

Github Actions

Drawing

Opportunities for Improvement

  • Could do a containerized run of Sonar to reduce the number of times it needs to be downloaded. / efficiencies
  • investigate separation of the sonar run, so it takes place on all pushes
  • possibly use sonar cloud

Drawing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment