Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TOP IDE
Manage
Activity
Members
Labels
Plan
Issues
49
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
TDL Open Source
TOP IDE
Commits
913759cd
Commit
913759cd
authored
1 year ago
by
Philip Makedonski
Browse files
Options
Downloads
Patches
Plain Diff
+ updated gitlab ci configuration
parent
14619ea1
No related merge requests found
Pipeline
#3220
failed
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+8
-37
8 additions, 37 deletions
.gitlab-ci.yml
with
8 additions
and
37 deletions
.gitlab-ci.yml
+
8
−
37
View file @
913759cd
...
...
@@ -137,18 +137,6 @@ stages: # List of stages for jobs, and their order of execution
-
upload
-
release
config-job
:
# This job runs in the build stage, which runs first.
stage
:
.pre
extends
:
-
main-branch-key
-
dev-branch-key
-
ttf-branch-key
script
:
-
echo $RELEASE_KEY
-
echo $RELEASE_PATH
-
echo $RELEASE_PAGE
-
exit
1
build-job
:
# This job runs in the build stage, which runs first.
stage
:
build
rules
:
...
...
@@ -198,6 +186,14 @@ prepare-job:
-
!reference
[
.default_rules
,
rules
]
script
:
-
VERSION=`date +%Y%m%d.%H.%M`
-
|
# Prepare a stable build (only web build?)
if [ $CI_COMMIT_BRANCH == $MAIN_CI_TARGET_BRANCH ]
then
echo "RELEASE_KEY=$MAIN_KEY" >> variables.env
echo "PACKAGE_NAME=$PACKAGE_NAME_MAIN" >> variables.env
echo "RELEASE_PATH=public/updatesite/${RELEASE_KEY}" >> variables.env
echo "RELEASE_PAGE=https://top.etsi.org/ide/updatesite/${RELEASE_KEY}"
fi
- echo "EXTRA_DESCRIPTION=automatic-release" >> variables.env
- echo "VERSION=$VERSION" >> variables.env
- echo "PACKAGE_REGISTRY_URL=${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/ide/${VERSION}" >> variables.env
...
...
@@ -303,28 +299,3 @@ release-job:
# --assets-link "{\"name\":\"${WINDOWS_GUI_JAR}\",\"url\":\"${PACKAGE_REGISTRY_URL}/${WINDOWS_GUI_JAR}\"}" \
# --assets-link "{\"name\":\"${CLI_JAR}\",\"url\":\"${PACKAGE_REGISTRY_URL}/${CLI_JAR}\"}" \
# --assets-link "{\"name\":\"${LIB_JAR}\",\"url\":\"${PACKAGE_REGISTRY_URL}/${LIB_JAR}\"}"
# assign variables depending on the branch
main-branch-key
:
variables
:
RELEASE_KEY
:
$MAIN_KEY
rules
:
-
if
:
$CI_COMMIT_BRANCH == $MAIN_CI_TARGET_BRANCH
script
:
-
echo $RELEASE_KEY
dev-branch-key
:
variables
:
RELEASE_KEY
:
$BETA_KEY
rules
:
-
if
:
$CI_COMMIT_BRANCH == $DEV_CI_TARGET_BRANCH
script
:
-
echo $RELEASE_KEY
ttf-branch-key
:
variables
:
RELEASE_KEY
:
$BETA_KEY
rules
:
-
if
:
$CI_COMMIT_BRANCH == "ttf-022"
script
:
-
echo $RELEASE_KEY
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment