Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Jenkins] Add build stages #960

Merged
Merged
Show file tree
Hide file tree
Changes from 47 commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
ddd45f2
[Jenkins] Added build stages
phalbert Aug 28, 2024
b32a09e
Update pyproject.toml
phalbert Aug 28, 2024
32d5d2b
Update poetry.lock
phalbert Aug 28, 2024
fb9b7fc
Update port-app-config.yaml
phalbert Aug 28, 2024
82fe0b4
fix linting errors
phalbert Aug 28, 2024
94f202e
[Jenkins] Add examples folder
phalbert Aug 28, 2024
dbdab5a
Update stage.entity.json
phalbert Aug 28, 2024
dbc76ee
[Jenkins] Added build stages
phalbert Aug 28, 2024
19d99a3
Update port-app-config.yaml
phalbert Aug 28, 2024
eb950c4
fix linting errors
phalbert Aug 28, 2024
bec007f
[Jenkins] Add examples folder
phalbert Aug 28, 2024
1dc1374
Update stage.entity.json
phalbert Aug 28, 2024
5dfa33f
Merge branch 'PORT-9873-add-jenkins-pipeline-stages-to-jenkins-integr…
phalbert Aug 28, 2024
619eb39
Update CHANGELOG.md
phalbert Aug 28, 2024
e9aa684
Update CHANGELOG.md
phalbert Aug 28, 2024
29bb652
Update integrations/jenkins/CHANGELOG.md
phalbert Aug 28, 2024
8bec271
Move fullUrl construction to config mapping
phalbert Aug 28, 2024
9b9e950
Merge branch 'PORT-9873-add-jenkins-pipeline-stages-to-jenkins-integr…
phalbert Aug 28, 2024
6781237
Limit ingestion to 10k records
phalbert Aug 28, 2024
7bb9b3f
Update main.py
phalbert Aug 28, 2024
4c3895d
Merge branch 'main' into PORT-9873-add-jenkins-pipeline-stages-to-jen…
phalbert Sep 6, 2024
509bea4
Merge branch 'main' into PORT-9873-add-jenkins-pipeline-stages-to-jen…
phalbert Sep 9, 2024
bf5aba3
Merge branch 'main' into PORT-9873-add-jenkins-pipeline-stages-to-jen…
phalbert Sep 9, 2024
33bd6dc
Merge branch 'main' into PORT-9873-add-jenkins-pipeline-stages-to-jen…
phalbert Sep 12, 2024
a446803
Merge branch 'main' into PORT-9873-add-jenkins-pipeline-stages-to-jen…
phalbert Sep 13, 2024
6fb2ee9
Update CHANGELOG.md
phalbert Sep 13, 2024
e1e4955
Merge branch 'PORT-9873-add-jenkins-pipeline-stages-to-jenkins-integr…
phalbert Sep 13, 2024
936c722
Update CHANGELOG.md
phalbert Sep 13, 2024
2af6aed
fetch stages by job
phalbert Sep 18, 2024
8e4d4a7
Merge branch 'main' into PORT-9873-add-jenkins-pipeline-stages-to-jen…
phalbert Sep 18, 2024
d8aa3eb
Format code
phalbert Sep 18, 2024
3061305
Merge branch 'PORT-9873-add-jenkins-pipeline-stages-to-jenkins-integr…
phalbert Sep 18, 2024
da8d93e
Merge branch 'main' into PORT-9873-add-jenkins-pipeline-stages-to-jen…
phalbert Sep 20, 2024
724680a
add tests for stages
phalbert Sep 20, 2024
22a00da
Update test_client.py
phalbert Sep 20, 2024
0698310
Merge branch 'main' into PORT-9873-add-jenkins-pipeline-stages-to-jen…
phalbert Sep 23, 2024
5467695
Update integrations/jenkins/client.py
phalbert Sep 23, 2024
fc2287e
Make internal methods private
phalbert Sep 23, 2024
b1ac613
Merge branch 'PORT-9873-add-jenkins-pipeline-stages-to-jenkins-integr…
phalbert Sep 23, 2024
607661f
Update main.py
phalbert Sep 23, 2024
d381280
Revert "Update CHANGELOG.md in wiz"
phalbert Sep 23, 2024
60dd2bb
update the changelog
phalbert Sep 23, 2024
6abeabd
Update test_client.py
phalbert Sep 23, 2024
134b4ba
Merge branch 'main' into PORT-9873-add-jenkins-pipeline-stages-to-jen…
phalbert Sep 24, 2024
43fd65c
Log responses only in debug
phalbert Sep 25, 2024
e8db4e6
move stages config to examples
phalbert Sep 25, 2024
8498140
Merge branch 'main' into PORT-9873-add-jenkins-pipeline-stages-to-jen…
phalbert Sep 25, 2024
9ec18f1
Merge branch 'main' into PORT-9873-add-jenkins-pipeline-stages-to-jen…
phalbert Oct 7, 2024
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
6 changes: 4 additions & 2 deletions integrations/jenkins/.port/resources/blueprints.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,14 @@
"enum": [
"SUCCESS",
"FAILURE",
"UNSTABLE"
"UNSTABLE",
"ABORTED"
],
"enumColors": {
"SUCCESS": "green",
"FAILURE": "red",
"UNSTABLE": "yellow"
"UNSTABLE": "yellow",
"ABORTED": "darkGray"
}
},
"buildUrl": {
Expand Down
8 changes: 4 additions & 4 deletions integrations/jenkins/.port/resources/port-app-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resources:
port:
entity:
mappings:
identifier: .url | split("://")[1] | sub("^.*?/"; "") | gsub("%20"; "-") | gsub("/"; "-") | .[:-1]
identifier: .url | split("://")[1] | sub("^.*?/"; "") | gsub("%20"; "-") | gsub("%252F"; "-") | gsub("/"; "-") | .[:-1]
title: .fullName
blueprint: '"jenkinsJob"'
properties:
Expand All @@ -22,7 +22,7 @@ resources:
port:
entity:
mappings:
identifier: .url | split("://")[1] | sub("^.*?/"; "") | gsub("%20"; "-") | gsub("/"; "-") | .[:-1]
identifier: .url | split("://")[1] | sub("^.*?/"; "") | gsub("%20"; "-") | gsub("%252F"; "-") | gsub("/"; "-") | .[:-1]
title: .displayName
blueprint: '"jenkinsBuild"'
properties:
Expand All @@ -31,8 +31,8 @@ resources:
buildDuration: .duration
timestamp: '.timestamp / 1000 | todate'
relations:
parentJob: .url | split("://")[1] | sub("^.*?/"; "") | gsub("%20"; "-") | gsub("/"; "-") | .[:-1] | gsub("-[0-9]+$"; "")
previousBuild: .previousBuild.url | split("://")[1] | sub("^.*?/"; "") | gsub("%20"; "-") | gsub("/"; "-") | .[:-1]
parentJob: .url | split("://")[1] | sub("^.*?/"; "") | gsub("%20"; "-") | gsub("%252F"; "-") | gsub("/"; "-") | .[:-1] | gsub("-[0-9]+$"; "")
previousBuild: .previousBuild.url | split("://")[1] | sub("^.*?/"; "") | gsub("%20"; "-") | gsub("%252F"; "-") | gsub("/"; "-") | .[:-1]
- kind: user
selector:
query: "true"
Expand Down
1 change: 1 addition & 0 deletions integrations/jenkins/.port/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ features:
- kind: job
- kind: build
- kind: user
- kind: stage
configurations:
- name: jenkinsHost
description: The base URL of your Jenkins server. This should be the address you use to access the Jenkins dashboard in your browser (e.g., "https://your-jenkins-server.com").
Expand Down
Loading
Loading