gitlab-ci-yml | This project has been deprecated and the templates
kandi X-RAY | GitLab CI Yml - Deprecated Summary
kandi X-RAY | GitLab CI Yml - Deprecated Summary
This project has been deprecated and the templates have been moved to
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gitlab-ci-yml
GitLab CI Yml - Deprecated Key Features
GitLab CI Yml - Deprecated Examples and Code Snippets
Community Discussions
Trending Discussions on gitlab-ci-yml
QUESTION
So I'm using gitlab and I have a java project that's built on gitlab VM using a .gitlab-ci-yml file.
I have this problem where we have to change the java version the project is build with (current java 11).
So adding in build.xml
this: will print
11
.
I've tried to change it specifying in javac
the source
and target
but if the target
is not specified, it will not build it using another java version, and if it is specified, it will return an error:
Also using
will return the same error.
So I'm not sure if basically adding my own ant
tool and java
version into the package and force it to use that one will work, I don't know how to do this.
Here is the build.xml file and also the .gitlab-ci.yml
UPDATE: .gitlab-ci.yml
was updated. Now the error seems to be the following, having the below .gilab-ci.yml
file:
Unable to locate package adoptopenjdk-17-hotspot
build.xml
ANSWER
Answered 2021-Oct-18 at 13:08According to the information provided in the comments, you have Java 14.0.1 on your GitLab runner. Since this Java version is used to launch ant and its tasks, it cannot compile code with a "17" target version.
To make a long story short, you'll need a newer Java version on your runner.
The simplest way of doing this is probably by using a pre-built image that contains it:
QUESTION
I am aware of the fact that one can run a GitLab pipeline only when a certain condition is satisfied, eg. only when the branch is master
or only when a Git Tag is created.
For example:
...ANSWER
Answered 2021-Jun-10 at 10:42You can build fairly complex conditions with rules, which you use should anyway as work on only
/except
is discontinued.
You can combine two conditions in rules with the &&
operator, so e.g. run the job only on merge-requests and if $CUSTOM_VARIABLE
is true.
QUESTION
I'm having trouble implementing an sample program that runs pytest within .gitlab-ci.yml on Windows:
Using Shell executor...
Please find below .gitlab-ci.yml:
...ANSWER
Answered 2020-Nov-16 at 17:17If python
is recognized, you could replace pytest
, as with this similar project, with:
QUESTION
I would like to create a pipeline that is only run if both of the following conditions are met:
- A tag refers to the given commit
- The commit exists on any protected branch (i.e. master)
- Optional: The job should be run whenever a tagged unprotected branch is merge (with a merge request) into a protected branch or if a tag is added to a protected branch.
I've tried:
...ANSWER
Answered 2020-Oct-20 at 16:02Combining the workaround mentioned in the question with the new gitlab rule and workflow features I came up with an answer that seem satisfying for me.
The person originally posting the workaround mentioned that there are cases in which git branch contains
does not give the correct results.
So made sure, that git fetch
does not make a shallow copy (note for the beginning it could be useful to change the GIT_STRATEGY
to clone, so that old possibly shallow copies are removed).
Instead of using CI_COMMIT_REF_PROTECTED
which could be true also for protected tags, I hardcoded the master branch as protected.
QUESTION
I am trying to use the Docker image "postgis/postgis:latest" as a service in GitLab CI but the service fails to start.
This is the start of the CI log, the last line is most important:
ANSWER
Answered 2020-Apr-07 at 01:13I tried plugging in your .gitlab-ci.yml excerpt and got an error:
QUESTION
Every time after building and pushing docker image from Gitlab registry to Heroku registry I need to execute heroku container:release web
to Heroku run image (release), but I wanna automate this
I added heroku CLI tool installation into gitlab-ci-yml
, but I can't auth heroku CLI by token
When I try to set HEROKU_API_KEY=token and run heroku login
I get an error Error: Cannot log in with HEROKU_API_KEY set
Also tried to do this with HEROKU_DEBUG on, but debugger info couldn't help me
I can't use ~/.netrc
Any way to auth heroku CLI or automate releasing docker images in heroku?
current gitlab-ci.yml:
...ANSWER
Answered 2020-Apr-06 at 07:15problem solved by changing account password that causes tokens changing and re-creating new token
And then run again HEROKU_API_KEY=token heroku container:release web
with success
QUESTION
dear angular community,
i recently started with an angular projekt for my school. i have never used angular before and need some help. maybe you guys can give me a little kickstart.
first of all i created a new projekt installed bootstrap, chartjs and material design and typed ng serve the first message i get is
Browserslist: caniuse-lite is outdated. Please run next command
npm update
i tried to update but it doesn't work. why ist there already something which is outdated?
this is my package.json:
...ANSWER
Answered 2020-Jan-09 at 07:33Could solve the problem. i updated my gitlab-ci.yml and added npm ci to the srcipt part.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install GitLab CI Yml - Deprecated
On a UNIX-like operating system, using your system’s package manager is easiest. However, the packaged Ruby version may not be the newest one. There is also an installer for Windows. Managers help you to switch between multiple Ruby versions on your system. Installers can be used to install a specific or multiple Ruby versions. Please refer ruby-lang.org for more information.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page