Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
252c195
Merge pull request #607 from splitio/development
chillaq Jan 27, 2026
7a652f3
Create pipeline ruby-client
chillaq Feb 5, 2026
6e40b2c
Update pipeline ruby-client
chillaq Feb 5, 2026
2bfaaa1
Update pipeline ruby-client
chillaq Feb 5, 2026
d0e270e
Update pipeline ruby-client
chillaq Feb 5, 2026
2a2bf39
remove ci
chillaq Feb 5, 2026
85612cf
Create pipeline ruby-client
chillaq Feb 5, 2026
9e2029b
Update pipeline ruby-client
chillaq Feb 5, 2026
18aeb95
Update pipeline ruby-client
chillaq Feb 5, 2026
84801ef
Update pipeline ruby-client
chillaq Feb 5, 2026
c7c7fc3
Update pipeline ruby-client
chillaq Feb 5, 2026
857ffc9
Update pipeline ruby-client
chillaq Feb 5, 2026
8b26a2b
Update pipeline ruby-client
chillaq Feb 5, 2026
fabea8c
Update pipeline ruby-client
chillaq Feb 5, 2026
c628117
Update pipeline ruby-client
chillaq Feb 6, 2026
795602e
Update pipeline ruby-client
chillaq Feb 6, 2026
cf4e449
Update pipeline ruby-client
chillaq Feb 6, 2026
aa662fc
Update pipeline ruby-client
chillaq Feb 6, 2026
36fbd2b
Update pipeline ruby-client
chillaq Feb 6, 2026
519cd94
Update pipeline ruby-client
chillaq Feb 6, 2026
77ca6a7
Update pipeline ruby-client
chillaq Feb 6, 2026
a0bea20
Update pipeline ruby-client
chillaq Feb 6, 2026
51b7937
Update pipeline ruby-client
chillaq Feb 6, 2026
ce6c1a2
Update pipeline ruby-client
chillaq Feb 6, 2026
72daf17
Update pipeline ruby-client
chillaq Feb 6, 2026
f161f7b
Update pipeline ruby-client
chillaq Feb 6, 2026
684f714
Update pipeline ruby-client
chillaq Feb 6, 2026
08ccd04
Update pipeline ruby-client
chillaq Feb 6, 2026
896e1fd
Update pipeline ruby-client
chillaq Feb 6, 2026
0cdcbfd
Update pipeline ruby-client
chillaq Feb 6, 2026
8d456dd
Update pipeline ruby-client
chillaq Feb 6, 2026
b8d2367
Update pipeline ruby-client
chillaq Feb 6, 2026
b99ed5b
Update pipeline ruby-client
chillaq Feb 6, 2026
3f53121
Update pipeline ruby-client
chillaq Feb 6, 2026
f05d864
Update pipeline ruby-client
chillaq Feb 6, 2026
eb57d8f
Update pipeline ruby-client
chillaq Feb 6, 2026
77c8001
Update pipeline ruby-client
chillaq Feb 6, 2026
4ab4799
Update pipeline ruby-client
chillaq Feb 6, 2026
945a1cb
Update pipeline ruby-client
chillaq Feb 6, 2026
9cebeb1
Update pipeline ruby-client
chillaq Feb 6, 2026
a121d08
Update pipeline ruby-client
chillaq Feb 6, 2026
9469f70
Update pipeline ruby-client
chillaq Feb 6, 2026
d34f858
Update pipeline ruby-client
chillaq Feb 6, 2026
2be1c1e
Update pipeline ruby-client
chillaq Feb 6, 2026
c8f31c7
Update pipeline ruby-client
chillaq Feb 6, 2026
cb9394d
Update pipeline ruby-client
chillaq Feb 6, 2026
7571bb8
Update pipeline ruby-client
chillaq Feb 7, 2026
240a43f
Update pipeline ruby-client
chillaq Feb 7, 2026
b6bec3b
Update pipeline ruby-client
chillaq Feb 7, 2026
c69f193
Update pipeline ruby-client
chillaq Feb 7, 2026
d378a28
Update pipeline ruby-client
chillaq Feb 7, 2026
cd7fad6
Update pipeline ruby-client
chillaq Feb 7, 2026
28a1844
Update pipeline ruby-client
chillaq Feb 7, 2026
645e130
Update pipeline ruby-client
chillaq Feb 7, 2026
f9afcff
Update pipeline ruby-client
chillaq Feb 7, 2026
91f98d7
Update pipeline ruby-client
chillaq Feb 7, 2026
76b9f2f
Update pipeline ruby-client
chillaq Feb 7, 2026
51c9bf0
Update pipeline ruby-client
chillaq Feb 7, 2026
3147a6b
Update pipeline ruby-client
chillaq Feb 7, 2026
d538fd3
Update pipeline ruby-client
chillaq Feb 7, 2026
200e8d5
Create inputset ruby
chillaq Feb 7, 2026
9440c4d
Update pipeline ruby-client
chillaq Feb 7, 2026
6a6dcb7
Update pipeline ruby-client
chillaq Feb 7, 2026
52929c5
Update pipeline ruby-client
chillaq Feb 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 0 additions & 90 deletions .github/workflows/ci.yml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/update-license-year.yml

This file was deleted.

181 changes: 181 additions & 0 deletions .harness/orgs/PROD/projects/Harness_Split/pipelines/rubyclient.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
pipeline:
name: ruby-client
identifier: rubyclient
projectIdentifier: Harness_Split
orgIdentifier: PROD
tags: {}
properties:
ci:
codebase:
connectorRef: fmegithubharnessgitops
repoName: ruby-client
build: <+input>
branch: harness-pipeline
filePath: .harness/orgs/PROD/projects/Harness_Split/pipelines/rubyclient.yaml
stages:
- stage:
name: Build and Test
identifier: build_and_test
type: CI
spec:
cloneCodebase: true
caching:
enabled: true
override: true
platform:
os: Linux
arch: Amd64
runtime:
type: Cloud
spec:
nestedVirtualization: true
execution:
steps:
- parallel:
- step:
type: Run
name: Run Tests 3_2_2
identifier: setup_ruby
spec:
connectorRef: account.harnessImage
image: ruby:3.2.2-alpine
shell: Sh
command: |-
apk update
apk add git build-base
apk add redis
redis-server /etc/redis.conf &

# Install dependencies using Bundle
cd /harness

echo "running bundle install"
bundle install

echo "running rake compile"
rake compile:murmurhash

bundle exec rubocop

echo "running tests"
bundle exec rake
timeout: 30m
- step:
type: Run
name: Run Tests 2_5_0
identifier: Run_Tests_2_5_0
spec:
connectorRef: account.harnessImage
image: ruby:2.5.0
shell: Sh
command: |-
echo "running sources"
sed -i 's/deb.debian.org/archive.debian.org/g' /etc/apt/sources.list
sed -i 's|security.debian.org|archive.debian.org/debian-security|g' /etc/apt/sources.list
sed -i '/stretch-updates/d' /etc/apt/sources.list
echo "running update"
apt-get update
#echo "install build"
apt-get install -y build-essential --allow-unauthenticated

echo "install redis"
apt-get install -y redis-server --allow-unauthenticated
redis-server /etc/redis/redis.conf &

# Install dependencies using Bundle
cd /harness
export GEM_HOME=/usr/local/lib/ruby/gems/2.5.0

echo "update system gem"
gem update --system 3.2.3

echo "install bundle"
#gem env
gem uninstall bundler
gem install bundler -v 2.2.3

echo "link bundle"
rm /usr/local/bin/bundle
ln -s /usr/local/lib/ruby/gems/2.5.0/gems/bundler-2.2.3/exe/bundle /usr/local/bin/bundle

echo "run bundle install"
bundle install

echo "running tests"
bundle exec rake
timeout: 30m
- step:
type: Run
name: Install and Run SonarQube Scanner
identifier: install_sonarqube_scanner
spec:
connectorRef: account.harnessImage
image: sonarsource/sonar-scanner-cli
shell: Bash
command: |
cd /harness
if [ "<+codebase.prNumber>" != "" ]; then
echo "Pull Request Analysis"
sonar-scanner -X \
-Dsonar.host.url=https://sonar.harness.io \
-Dsonar.token=<+secrets.getValue('sonarqube-token')> \
-Dsonar.projectKey=ruby-client \
-Dsonar.scanner.skipJreProvisioning=true \
-Dsonar.pullrequest.key=<+codebase.prNumber> \
-Dsonar.pullrequest.branch=<+codebase.sourceBranch> \
-Dsonar.pullrequest.base=<+codebase.targetBranch> \
-Dsonar.scanner.skipSystemTruststore=true
else
echo "Branch Analysis"
sonar-scanner \
-Dsonar.host.url=https://sonar.harness.io \
-Dsonar.token=<+secrets.getValue('sonarqube-token')> \
-Dsonar.projectKey=ruby-client \
-Dsonar.scanner.skipJreProvisioning=true \
-Dsonar.branch.name=<+codebase.branch> \
-Dsonar.scanner.skipSystemTruststore=true
fi
envVariables:
SONAR_TOKEN: <+pipeline.variables.sonarqube_token>
outputVariables:
- name: SONAR_SCANNER_PATH
timeout: 10m
- step:
type: Run
name: Post Quality Gate to GitHub
identifier: Post_Quality_Gate_to_GitHub
spec:
shell: Sh
command: |-
# Get SonarQube quality gate status
curl -u <+secrets.getValue('sonarqube-token')>: \
-s "https://sonar.harness.io/api/qualitygates/project_status?projectKey=ruby-client&pullRequest=${<+codebase.prNumber>}"

curl -u <+secrets.getValue('sonarqube-token')>: -s 'https://sonar.harness.io/api/qualitygates/project_status?projectKey=ruby-client&pullRequest=${<+codebase.prNumber>}' | jq -r .projectStatus.status

QUALITY_GATE_STATUS=$(curl -u <+secrets.getValue('sonarqube-token')>: -s 'https://sonar.harness.io/api/qualitygates/project_status?projectKey=ruby-client&pullRequest=${<+codebase.prNumber>}' | jq -r .projectStatus.status)

echo "QUALITY_GATE_STATUS: $QUALITY_GATE_STATUS"

# Set GitHub status based on quality gate
if [ "$QUALITY_GATE_STATUS" = "OK" ]; then
STATE="success"
DESCRIPTION="SonarQube Quality Gate passed"
else
STATE="failure"
DESCRIPTION="SonarQube Quality Gate failed"
fi

# Post status to GitHub
curl -X POST \
-H "Authorization: token ${<+secrets.getValue('github-devops-token')>}" \
-H "Content-Type: application/json" \
-d "{
\"state\": \"${STATE}\",
\"description\": \"${DESCRIPTION}\",
\"context\": \"sonarqube/qualitygate\",
\"target_url\": \"https://sonar.harness.io/dashboard?id=ruby-client&pullRequest=${<+codebase.prNumber>}\"
}" \
"https://api.github.com/repos/splitio/ruby-client/statuses/<+codebase.commitSha>"
rollbackSteps: []
description: This pipeline was generated by Harness AI on 2026-02-05 18:40:52 UTC by Bilal Al-Shahwany.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
inputSet:
name: ruby
identifier: ruby
orgIdentifier: PROD
projectIdentifier: Harness_Split
pipeline:
identifier: rubyclient
properties:
ci:
codebase:
build:
type: PR
spec:
number: <+trigger.prNumber>