Skip to content
Snippets Groups Projects
  1. Mar 26, 2024
  2. Feb 16, 2024
  3. Jan 30, 2024
  4. Dec 04, 2023
  5. Nov 06, 2023
  6. Oct 26, 2023
  7. Oct 24, 2023
    • Antoine Lambert's avatar
      jobs/swh-docker-dev: Add trigger when pushing to swh-environment repo · 88603b2d
      Antoine Lambert authored
      Add a trigger for swh-docker-dev job when pushing to swh-environment
      repository, either commit or merge request, to build swh/stack docker
      image and run the docker test suites.
      
      The docker tests will be executed only if the content of the docker
      directory changed but also when job is started by a timer or manually
      by a user.
      88603b2d
  8. Oct 18, 2023
  9. Oct 13, 2023
  10. Sep 22, 2023
    • Antoine Lambert's avatar
      jenkins-jobs-builder: Remove not required jenkins_token parameter · a43ced88
      Antoine Lambert authored
      For some reason, likely due to the fact that it is a hidden one, that parameter
      was not correctly transmitted to the job setting gitlab webhooks and the jenkins
      jobs could not be triggered anymore.
      
      Nevertheless, the webhooks job also has the same hidden parameter with the rotated
      token as default value so we can safely remove the jenkins_token parameter for the
      jenkins-jobs-builder job.
      a43ced88
  11. Sep 12, 2023
  12. Jun 21, 2023
  13. May 29, 2023
  14. May 26, 2023
    • Antoine Lambert's avatar
      gitlab: Ensure to rebuild open merge requests on push events · 3174f6b3
      Antoine Lambert authored
      Since recently, merge requests are not rebuilt by Jenkins when pushing
      new commits to it. This could be related to some default configuration
      changes in latest release of GitLab plugin for Jenkins.
      
      As that behavior is not enabled by default in gitlab trigger settings
      explicitly enable it in jenkins jobs configuration.
      3174f6b3
  15. May 04, 2023
    • Antoine R. Dumont's avatar
      Make clean docker image routine more efficient · 574a1cce
      Antoine R. Dumont authored
      More efficient in regards to our current way of building some specific images which are
      growing forever (up until we got no more disk space on thyssen).
      That's a simpler workaround than what's discussed in issue [1] [2]. We keep the last "2"
      days images so the next build still benefits from it but we drop the rest (so no more
      too much disk cost). As this job is triggered daily, that should keep those images in
      check.
      
      Provided, the following script is installed on the node:
      
      ```
      $ root@thyssen:~# cat /usr/local/bin/clean-docker-images.sh
      
      set -x
      
      today=$(date --date '13:00' +%Y%m%d)
      yesterday=$(date --date 'yesterday 13:00' +%Y%m%d)
      
      images_to_drop=$(docker image ls \
          | grep -E "softwareheritage/(base|web|replayer)" \
          | grep -v $today \
          | grep -v $yesterday \
          | grep -v "latest")
      
      if [ ! -z "$images_to_drop" ]; then
          echo $images_to_drop \
          | awk '{print $1":"$2}' \
          | xargs docker rmi
      fi
      
      docker system prune --filter 'label!=keep' --volumes --force
      ```
      
      Refs. swh/infra/sysadm-environment#4846
      
      [1] swh/infra/sysadm-environment#4848
      
      [2] swh/infra/sysadm-environment#4846
      Verified
      574a1cce
  16. Feb 16, 2023
  17. Jan 27, 2023
    • Antoine Lambert's avatar
      jobs/swh-pipeline: Change executed job when pushing to master · 7ccb0d74
      Antoine Lambert authored
      In order to have a code coverage report focused on the changes of a merge
      request displayed in the Jenkins UI, prefer to execute the {name}/master
      job instead of the {name}/gitlab-builds one.
      
      Indeed the {name}/gitlab-builds is triggered by pushing branches, tags
      or merge requests which can confuse the git-forensics Jenkins plugin.
      It is used to compute relative results that show what will be changed
      if the  branch of the current build will be merged with the master branch.
      
      By ensuring only {name}/master is executed when pushing to the master
      branch, finding the reference commit a merge request is based on and its
      associated build job is guaranteed.
      7ccb0d74
  18. Jan 17, 2023
  19. Jan 10, 2023
  20. Jan 06, 2023
  21. Jan 05, 2023
  22. Jan 04, 2023
  23. Jan 03, 2023
    • Antoine Lambert's avatar
      jobs/swh-docs: Add job triggerable by gitlab · 7519c7d1
      Antoine Lambert authored
      Documentation will be fully built when pushing changes to the swh-docs
      GitLab repository or when submitting merge requests.
      7519c7d1
    • Antoine Lambert's avatar
      jobs: Add gitlab triggerable jobs configuration for incoming tags · 292720ca
      Antoine Lambert authored
      This job will be executed when pushing tags to a swh GitLab repository
      in order to generate and upload Python wheels of swh packages.
      
      Please note that the debian packaging part has not been ported yet.
      
      Also, wheels upload are currently disabled until we fully migrate to
      GitLab.
      292720ca
    • Antoine Lambert's avatar
      jobs/tools: Add setup-gitlab-webhooks job · b2c09ea7
      Antoine Lambert authored
      This job is responsible to setup the webhooks on swh GitLab repositories
      enabling to trigger Jenkins builds when pushing changes or creating merge
      requests.
      
      It parses Jenkins jobs builder YAML configuration to get the name of the
      repos with CI setup and set webhook URLs in GitLab projects through HTTP
      requests to the GitLab REST API.
      
      It is triggered at the end of the swh-jenkins-jobs-builder job after jobs
      have been reconfigured.
      b2c09ea7
Loading