Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
8f097399
Commit
8f097399
authored
Jun 17, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
command/build: only output artifacts if we have some
parent
47dcd473
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
command/build/command.go
command/build/command.go
+13
-12
No files found.
command/build/command.go
View file @
8f097399
...
@@ -233,19 +233,20 @@ func (c Command) Run(env packer.Environment, args []string) int {
...
@@ -233,19 +233,20 @@ func (c Command) Run(env packer.Environment, args []string) int {
}
}
}
}
// Output all the artifacts
if
len
(
artifacts
)
>
0
{
env
.
Ui
()
.
Say
(
"
\n
==> Builds finished. The artifacts of successful builds are:"
)
env
.
Ui
()
.
Say
(
"
\n
==> Builds finished. The artifacts of successful builds are:"
)
for
name
,
artifact
:=
range
artifacts
{
for
name
,
artifact
:=
range
artifacts
{
var
message
bytes
.
Buffer
var
message
bytes
.
Buffer
fmt
.
Fprintf
(
&
message
,
"--> %s: "
,
name
)
fmt
.
Fprintf
(
&
message
,
"--> %s: "
,
name
)
if
artifact
!=
nil
{
if
artifact
!=
nil
{
fmt
.
Fprintf
(
&
message
,
artifact
.
String
())
fmt
.
Fprintf
(
&
message
,
artifact
.
String
())
}
else
{
}
else
{
fmt
.
Print
(
"<nothing>"
)
fmt
.
Print
(
"<nothing>"
)
}
}
env
.
Ui
()
.
Say
(
message
.
String
())
env
.
Ui
()
.
Say
(
message
.
String
())
}
}
}
return
0
return
0
...
...
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