You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need your help with building a project using the the maven-quarkus-buildpack. The project is imported with the --nested-repo option (adding support for nested repositories in GitLab).
Currently our build is failing in one of the last steps promote-helm-release.
We tried to debug this today and found following conflicts:
In the build step step-promote-changelog the pipeline was not able to find our Helm chart. We realized this by the fact that there was a log message no charts which we tracked to this script:
This was resulting in the fact that JX was not updating the version of the Helm Chart located in the charts folder with the name my-organisation-my-suborganisation-my-service-name (concatenated name with dashes). This chart folder is created during the project import with the --nested-repo option
Because of that the step-promote-helm-release step was failing with the error
error: failed to create chart release in dir charts/my-organisation-my-suborganisation-my-service-name: failed to publish: failed to run 'curl --fail -sS -u ....:..... --data-binary @my-organisation-my-suborganisation-my-service-name-1.0.3.tgz http://jenkins-x-chartmuseum.jx.svc.cluster.local:8080/api/charts' command in directory 'charts/my-organisation-my-suborganisation-my-service-name', output: 'curl: (22) The requested URL returned error: 500'
Looking on the .jx/variables.sh generated during the build we saw that the REPO_NAME variable was not matching the directory where the chart is located. The variable had the value my-organisation/my-suborganisation/my-service-name (concatenated with forward slash)
We are providing here the output of the build logs and the .jx/variables.sh
step-promote-changelog
no charts
step-promote-changelog
Using batch mode as inside a pipeline
step-promote-changelog
about to run: git for-each-ref --sort=-creatordate --format=%(objectname)%00%(refname:short) --count=2 refs/tags in dir .
step-promote-changelog
3397d754ea7b95dad5e88192eb1d7ef92dbeb3e1v1.0.3
step-promote-changelog
4e19b98f5bb8c957cfc2866a86e05171fa2a85dev1.0.2
step-promote-changelog
about to run: git rev-list -n 1 4e19b98f5bb8c957cfc2866a86e05171fa2a85de in dir .
step-promote-changelog
49432b62efd436b8b7763209a34c1e12f62afdda
step-promote-changelog
about to run: git for-each-ref --sort=-creatordate --format=%(objectname)%00%(refname:short) --count=1 refs/tags in dir .
step-promote-changelog
3397d754ea7b95dad5e88192eb1d7ef92dbeb3e1v1.0.3
step-promote-changelog
about to run: git rev-list -n 1 3397d754ea7b95dad5e88192eb1d7ef92dbeb3e1 in dir .
step-promote-changelog
062df9666eb7660f2634631db62c99aa0ce6f19f
step-promote-changelog
Generating change log from git ref 49432b62efd436b8b7763209a34c1e12f62afdda => 062df9666eb7660f2634631db62c99aa0ce6f19f
step-promote-changelog
WARNING: no $GIT_SECRET_MOUNT_PATH environment variable set
step-promote-changelog
about to run: git clone https://domain.subdomain.com/company-name-cicd-platform/environment-production.git /tmp/jx-git-769918337 in dir /tmp
step-promote-changelog
Cloning into '/tmp/jx-git-769918337'...
step-promote-changelog
Can't find any issue tracker setting; defaulting to git provider: gitlab
step-promote-changelog
Finding issues in commit messages using git format
step-promote-changelog
about to run: git tag --list v1.0.3 in dir .
step-promote-changelog
v1.0.3
step-promote-changelog
about to run: git tag --list vv1.0.3 in dir .
step-promote-changelog
WARNING: Failed to create the release for company-name/my-service-name: Not Found
step-promote-changelog
The following paths are ignored by one of your .gitignore files:
step-promote-changelog
target
step-promote-changelog
hint: Use -f if you really want to add them.
step-promote-changelog
hint: Turn this message off by running
step-promote-changelog
hint: "git config advice.addIgnoredFile false"
step-promote-changelog
[main 7f7889a] chore: release 1.0.3
step-promote-changelog
2 files changed, 53 insertions(+), 1 deletion(-)
step-promote-changelog
create mode 100644 pom.xml.versionsBackup
step-promote-changelog
Updated tag 'v1.0.3' (was 3397d75)
step-promote-changelog
To https://domain.subdomain.com/company-name/my-organisation/my-suborganisation/my-service-name.git
step-promote-changelog
+ 3397d75...8e3eb35 v1.0.3 -> v1.0.3 (forced update)
step-promote-helm-release
WARNING: no $GIT_SECRET_MOUNT_PATH environment variable set
step-promote-helm-release
releasing chart my-organisation-my-suborganisation-my-service-name
step-promote-helm-release
Adding repository for dependency mongodb
step-promote-helm-release
Adding repository for dependency company-name-template-company-name-charts
step-promote-helm-release
error: failed to create chart release in dir charts/my-organisation-my-suborganisation-my-service-name: failed to publish: failed to run 'curl --fail -sS -u admin:0eBw.1kOFdwgMcWFWyUCh9RkyYJdGbM+UqyyEQiP2 --data-binary @my-organisation-my-suborganisation-my-service-name-1.0.3.tgz http://jenkins-x-chartmuseum.jx.svc.cluster.local:8080/api/charts' command in directory 'charts/my-organisation-my-suborganisation-my-service-name', output: 'curl: (22) The requested URL returned error: 500'
@ankitm123@rawlingsj@jstrachan
we are blocked at the last step by this helm promote release step, which is connected to nested projects. Can you please help here, cause it will allow us to use JXv3 fully. Currently on hold because of this issue.
Hello,
We need your help with building a project using the the
maven-quarkus-buildpack
. The project is imported with the--nested-repo
option (adding support for nested repositories in GitLab).Currently our build is failing in one of the last steps
promote-helm-release
.We tried to debug this today and found following conflicts:
step-promote-changelog
the pipeline was not able to find our Helm chart. We realized this by the fact that there was a log messageno charts
which we tracked to this script:jx/.github/workflows/jenkins-x/changelog.sh
Line 13 in 19684a1
my-organisation-my-suborganisation-my-service-name
(concatenated name with dashes). This chart folder is created during the project import with the--nested-repo
optionstep-promote-helm-release
step was failing with the error.jx/variables.sh
generated during the build we saw that theREPO_NAME
variable was not matching the directory where the chart is located. The variable had the valuemy-organisation/my-suborganisation/my-service-name
(concatenated with forward slash)We are providing here the output of the build logs and the
.jx/variables.sh
cc @ankitm123 and @marziman
The text was updated successfully, but these errors were encountered: