Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
terraform
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
702
HADOOP
terraform
Commits
b22e7745
Commit
b22e7745
authored
3 years ago
by
František Dvořák
Browse files
Options
Downloads
Patches
Plain Diff
gitLab CI: can't use after_script for releasing IP - the environment vanishes there
parent
8d99403b
No related branches found
No related tags found
No related merge requests found
Pipeline
#2266
failed
2 years ago
Stage: test
Changes
1
Pipelines
58
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+1
-3
1 addition, 3 deletions
.gitlab-ci.yml
with
1 addition
and
3 deletions
.gitlab-ci.yml
+
1
−
3
View file @
b22e7745
...
...
@@ -45,8 +45,6 @@ test-single:
# better to init terraform before allocating public floating IP address (the state could be locked)
-
terraform init -input=false
-
ip=`openstack floating ip create -c floating_ip_address -f value public-muni-147-251-21-GROUP`
after_script
:
&after
-
openstack floating ip delete $ip
cache
:
when
:
always
key
:
single
...
...
@@ -59,6 +57,7 @@ test-single:
-
ssh-add ./ssh-key.terra1.txt
-
ssh -o PreferredAuthentications=publickey deployadm@$ip "sudo -u debian sh -c 'cd; ~deployadm/terraform/image/tests/run-tests.sh'"
-
terraform destroy $args
-
openstack floating ip delete $ip
rules
:
-
if
:
'
$JOB
=~
/all|test-single/'
artifacts
:
&artifacts
...
...
@@ -69,7 +68,6 @@ test-cluster:
stage
:
test
variables
:
*tfvars
before_script
:
*before
after_script
:
*after
cache
:
when
:
always
key
:
cluster
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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