Do not display project url for temporary projects.
This commit is contained in:
parent
3db287d98b
commit
0e3604638b
2 changed files with 5 additions and 3 deletions
|
@ -34,7 +34,7 @@ package net.thauvin.erik.kobalt.plugin.versioneye
|
||||||
import com.beust.kobalt.AsciiArt
|
import com.beust.kobalt.AsciiArt
|
||||||
import com.beust.kobalt.misc.log
|
import com.beust.kobalt.misc.log
|
||||||
|
|
||||||
open class Utils {
|
open class Utils private constructor() {
|
||||||
companion object {
|
companion object {
|
||||||
// Non-colors failure
|
// Non-colors failure
|
||||||
fun alt(failed: Boolean): String {
|
fun alt(failed: Boolean): String {
|
||||||
|
|
|
@ -374,8 +374,10 @@ class VersionEyePlugin @Inject constructor(val configActor: ConfigActor<VersionE
|
||||||
Utils.log(securityInfo, verbose)
|
Utils.log(securityInfo, verbose)
|
||||||
|
|
||||||
// Show project url
|
// Show project url
|
||||||
val baseUrl = if (config.baseUrl.endsWith('/')) config.baseUrl else config.baseUrl + '/'
|
if (!config.temp) {
|
||||||
log(1, " View more at: ${baseUrl}user/projects/$projectKey")
|
val baseUrl = if (config.baseUrl.endsWith('/')) config.baseUrl else config.baseUrl + '/'
|
||||||
|
log(1, " View more at: ${baseUrl}user/projects/$projectKey")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Task failure
|
// Task failure
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue