-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
920 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
artifactory/commands/commandssummaries/testdata/modules.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
|
||
### Modules Published As Part of This Build | ||
|
||
|
||
#### | ||
|
||
|
||
<pre>📦 libs-release | ||
└── 📁 path | ||
└── 📁 to | ||
└── <a href=ui/repos/tree/General/libs-release/path/to/artifact1 target="_blank">artifact1</a> | ||
|
||
</pre> | ||
#### | ||
|
||
|
||
<pre>📦 generic-local | ||
└── 📁 path | ||
└── 📁 to | ||
└── <a href=ui/repos/tree/General/generic-local/path/to/artifact2 target="_blank">artifact2</a> | ||
|
||
</pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
|
||
### Published Build Infos | ||
|
||
|
||
|
||
| Build Info | Time Stamp | | ||
|---------|------------| | ||
| [buildName 123](http://myJFrogPlatform/builds/buildName/123) | May 5, 2024 , 12:47:20 | | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
artifactory/commands/commandssummaries/uploadsummary_test.go
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package commandssummaries | ||
|
||
import ( | ||
"fmt" | ||
clientUtils "github.com/jfrog/jfrog-client-go/utils" | ||
) | ||
|
||
const ( | ||
artifactory7UiFormat = "%sui/repos/tree/General/%s" | ||
artifactory6UiFormat = "%sartifactory/webapp/#/artifacts/browse/tree/General/%s" | ||
) | ||
|
||
func generateArtifactUrl(rtUrl, pathInRt, project string, majorVersion int) string { | ||
rtUrl = clientUtils.AddTrailingSlashIfNeeded(rtUrl) | ||
if majorVersion == 6 { | ||
return fmt.Sprintf(artifactory6UiFormat, rtUrl, pathInRt) | ||
} | ||
uri := fmt.Sprintf(artifactory7UiFormat, rtUrl, pathInRt) | ||
if project != "" { | ||
uri += "?projectKey=" + project | ||
} | ||
return uri | ||
} |
Oops, something went wrong.