1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-27 14:14:19 +03:00
vimr/ci
2023-12-14 17:11:19 +01:00
..
create_build_job.groovy Rename jenkins job and add more artifacts 2023-12-14 17:11:19 +01:00
README.md Re-add files to build on local Jenkins 2023-12-12 17:41:00 +01:00

  • Install Jenkins (via brew)
  • Install plugins
    • Job DSL
    • AnsiColor
  • Set the git binary in Manage Jenkins -> Global Tool Configuration
  • Set PATH for Jenkins (necessary for e.g. git-lfs) in Manage Jenkins -> Configure System -> Global properties -> *Environment variables"
  • Add a free style job vimr_setup_jobs with one step to process a Job DSL file at ci/create_build_job.groovy.
    • Approve script at Manager Jenkins -> In-process Script Approval.

To test the job creation using local git repository, use file:///Users/.../vimr-repo as repository and add "-Dhudson.plugins.git.GitSCM.ALLOW_LOCAL_CHECKOUT=true" to /opt/homebrew/opt/jenkins/bin/jenkins:

#!/bin/bash
export JAVA_HOME="${JAVA_HOME:-/opt/homebrew/opt/openjdk/libexec/openjdk.jdk/Contents/Home}"
exec "${JAVA_HOME}/bin/java" "-Dhudson.plugins.git.GitSCM.ALLOW_LOCAL_CHECKOUT=true" "-jar" "/opt/homebrew/Cellar/jenkins/2.435/libexec/jenkins.war" "$@"