-
Notifications
You must be signed in to change notification settings - Fork 6
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
Problems with "environment setup" in JePL #167
Comments
Magically when I modified my branch variable to a static name in .sqa/config.yml
The step works fine, but it is not my required behaviour. Do you know a recipe to enable current branch as an environmental variable in JePL? Why does it work with my branch (dev-ajrubio-montero) but does it not in "dev"? Thank you in advance, |
Morning @AJRubio-Montero if you just want to check out the current version of the current branch (the one that triggered the pipeline execution, so last This will check it out to a detached head, so if you want it to have the same branch name (i.e. (example) https://github.com/EOSC-synergy/sqaaas-api-spec/blob/prototype/1.1-no-polymorphism/Jenkinsfile#L14 |
Thanks Pablo. It is not working for me. If I'm removing the project_repos definition, Jenkins does not bind the repository with the MV that executes the checks. If I'm maintaining the definition, choosing among GIT_LOCAL_BRANCH, GIT_BRANCH, etc, the Jenkins cannot find the commit at the repository: ´´
(I will write back to the original configuration) Cheers. |
Hi @AJRubio-Montero I just created a simple example of what I suggest using the SQAaaS platform. The pipeline execution did the checkout of The same pipeline, without any modification, can be used in whatever branch you use and will (should) work. Not sure if it is what you are looking for.. |
Hello again. Testing "dev" in production (the dev-ajrubio-montero branch is obsolete)...I tested several ways. I think Jenkins is not binding correctly the repo with the docker. In your example, you are setting an external repo Is it for tricking Jenkings? Thanks. |
@AJRubio-Montero I see that you ran some test cases. Note that there are a few things to consider when composing the pipeline 'manually', such as the right combination of jpl-validator and JePL version (in jpl-validator-1.2.0 we changed the criteria codes to Also note that the pipeline example (odsim.sqaaas) was created in GitHub by the platform since I wanted to check how it was working, but this is not needed, you could just compose the pipeline and download it without actually creating a new repo. Regarding you question, setting an external repo is not required at all. In the odsim.sqaaas, the definition of the sqaaas-tooling repo is required since it contains the pointers to the Docker images for the tools used in this pipeline, i.e |
Thanks for the explanations Pablo, I thought updating to new jpl-validator will be easy... I will explore the new jpl-validator with testing branches, and I will mantain the old-pipeline in production. I will keep you informed about my advances. Cheers. |
Good Morning,
I'm trying replicate my pipeline, that only runs simple tests:
https://jenkins.eosc-synergy.eu/job/eosc-synergy-org/job/onedataSim/job/dev-ajrubio-montero/
Into the "dev" branch of my repo:
https://jenkins.eosc-synergy.eu/job/eosc-synergy-org/job/onedataSim/job/dev/
However, the "Environment Setup" stops now in this command:
and Jenkins is showing this error:
"Check out from version control | Couldn't find any revision to build. Verify the repository and branch configuration for this job".
It could seem the last command is not returning any repository TAG, but I tested it by hand.
On the other hand, actually the step are checking out a new revision ("aee4..."), which is used in the pipeline.
For example, for my branch in the pileline 44:
Afther this, in the pipeline 45, the step detects the previous checkout "aee44...":
Thank you very much in advance.
Cheers.
The text was updated successfully, but these errors were encountered: