Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
160f5b96
Commit
160f5b96
authored
Sep 30, 2020
by
Miguel Rincon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix variables payload format to create a pipeline
parent
cef17004
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
app/assets/javascripts/pipeline_new/components/pipeline_new_form.vue
...javascripts/pipeline_new/components/pipeline_new_form.vue
+2
-2
spec/frontend/pipeline_new/mock_data.js
spec/frontend/pipeline_new/mock_data.js
+3
-3
No files found.
app/assets/javascripts/pipeline_new/components/pipeline_new_form.vue
View file @
160f5b96
...
...
@@ -170,13 +170,13 @@ export default {
.
map
(({
variable_type
,
key
,
value
})
=>
({
variable_type
,
key
,
value
,
secret_value
:
value
,
}));
return
axios
.
post
(
this
.
pipelinesPath
,
{
ref
:
this
.
refValue
,
variables
:
filteredVariables
,
variables
_attributes
:
filteredVariables
,
})
.
then
(({
data
})
=>
{
redirectTo
(
`
${
this
.
pipelinesPath
}
/
${
data
.
id
}
`
);
...
...
spec/frontend/pipeline_new/mock_data.js
View file @
160f5b96
...
...
@@ -14,9 +14,9 @@ export const mockProjectId = '21';
export
const
mockPostParams
=
{
ref
:
'
tag-1
'
,
variables
:
[
{
key
:
'
test_var
'
,
value
:
'
test_var_val
'
,
variable_type
:
'
env_var
'
},
{
key
:
'
test_file
'
,
value
:
'
test_file_val
'
,
variable_type
:
'
file
'
},
variables
_attributes
:
[
{
key
:
'
test_var
'
,
secret_
value
:
'
test_var_val
'
,
variable_type
:
'
env_var
'
},
{
key
:
'
test_file
'
,
secret_
value
:
'
test_file_val
'
,
variable_type
:
'
file
'
},
],
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment