-
Notifications
You must be signed in to change notification settings - Fork 3
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
Improve git change detection logic #174
Conversation
Minimum allowed line rate is |
New release
|
8649619
to
df5792c
Compare
25a3712
to
390c5d2
Compare
8d9445a
to
7235318
Compare
17fe65a
to
76bcb53
Compare
branch:
because it's too implicit and should be done in advance if at all branch:
branch:
e.g. `git clone --shallow-exclude main --single-branch --branch feature/test-invalidation-logic https://github.com/SamTheisens/mpyl-example-gha.git` in which case there will be no default branch, but the first commit is the base from which the branch was created branch:
branch:
and not all refs, including tags branch:
branch:
this should always be origin/main. If a local `main` is merged into the current branch, that should not supersede the original base branch:
branch:
to bring the branch into a state such that PRs can be built branch:
branch: feature/TECH-490-migrate-mpyl-to-python-3.11
with basic implementation of status logic branch:
ceade9a
to
4e6ff4e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice solution I would say Sam!
branch:
6f90c03
to
aef1a39
Compare
I tried running this test version with a real PR in jenkins, it got to
then based on Jorg's advice added the following to the jenkinsfile:
which got stuck on Maybe it again waits for input in the agent? EDIT if I try to clone the repo on the agent it asks for the username |
@@ -0,0 +1 @@ | |||
"""CVS repository related command group""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you add the empty init.py
file below (I can't comment on it) on purpose btw?
f9dd62b
to
cfdd777
Compare
because it is not secure branch:
cfdd777
to
c77a4bc
Compare
branch:
c9969a4
to
1b038be
Compare
Attempts to make the change detection logic on a PR more robust.
Also fixes a confusing problem in
Jenkinsfile
. Thempyl_config
needs to be pulled from theVandebron/mpyl_config
repo. This created a branch calledmain
in the local.git
folder that pointed to a revision that doesn't exist in theVandebron/mpyl
repo. As a result we compare to a base that doesn't exist.Now the file is curled in from via the github api instead of by checking out the repo.
@Jorg88, it looks like I can't edit the github actions in this repo anymore.
Suggesting to put this
at line 156 of
.github/workflows/build-package.yml
Test scenario
New branch
gco -b feature/test-174
mpyl build status
:Branch not specified at
build.versioning.branch
in run_properties.yml. Branch determined via git: feature/test-174Branch:
feature/test-174
at96b6be3d121ff1651506da3d6330f7df13c7a959
Make change to
projects/service/src/sum.js
Branch:
feature/test-174
at96b6be3d121ff1651506da3d6330f7df13c7a959
Execution plan:
🏗️ nodeservice
📋 nodeservice
🚀 nodeservice
Commit change
Branch:
feature/test-174
ate9ff18931070de4803da2190274d5fccb0362824
Execution plan:
🏗️ nodeservice
📋 nodeservice
🚀 nodeservice
Back to main branch
sbtservice
onmain
and commit.gco feature/test-174
git merge main
Branch:
feature/test-174
at9215d9c863c1fbf842de46bda189c92fa2226716
Execution plan:
🏗️ nodeservice
📋 nodeservice
🚀 nodeservice