Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • E eclipsefdn-vc-tools
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 20
    • Issues 20
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Eclipse FoundationEclipse Foundation
  • IT
  • Webdev
  • eclipsefdn-vc-tools
  • Merge requests
  • !16

Added k8s cronjob and Jenkinsfile

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Christopher Guindon requested to merge cicd into master Nov 14, 2019
  • Overview 1
  • Commits 1
  • Changes 2

Created by: mbarbero

This enables CI/CD for this repo (see issue #14 (closed)).

The k8s cronjob is scheduled to run every 20min. We can customize this in k8s/cronjob.yml with the schedule: "*/20 * * * *"

It also does not allow concurrent run: if it is time for a new job run and the previous job run hasn’t finished yet, the cron job skips the new job run

It currently runs with options --verbose=true --dryrun=true (again see k8s/cronjob.yml).

Logs are stored on nfsmaster:/opt/export/eclipsefdn-github-sync/logs and we need to find a way to make them available to webdev team. Note that stdout is tee'd to /app/logs/stdout-$(date +%Y%m%d).log

The api-token is currently a randomly generated one (hence fake). Feel free to send me any other token that you would like to use.

The Jenkinsfile build and push images for all branches/PR (the image tag is -. The kubernetes cronjob image is updated only when the build is from the master branch.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: cicd

Copyright © Eclipse Foundation, Inc. All Rights Reserved.     Privacy Policy | Terms of Use | Copyright Agent