mirror of
https://github.com/rife2/bld
synced 2025-12-20 16:48:38 +01:00
WIP additional debugging information when publishing upload fails
Some checks are pending
bld-ci / build-linux (17) (push) Waiting to run
bld-ci / build-linux (20) (push) Waiting to run
bld-ci / build-linux (21) (push) Waiting to run
bld-ci / build-linux (22) (push) Waiting to run
bld-ci / build-macos (17) (push) Waiting to run
bld-ci / build-macos (20) (push) Waiting to run
bld-ci / build-macos (21) (push) Waiting to run
bld-ci / build-macos (22) (push) Waiting to run
bld-ci / build-windows (17) (push) Waiting to run
bld-ci / build-windows (20) (push) Waiting to run
bld-ci / build-windows (21) (push) Waiting to run
bld-ci / build-windows (22) (push) Waiting to run
javadocs-pages / deploy (push) Waiting to run
Some checks are pending
bld-ci / build-linux (17) (push) Waiting to run
bld-ci / build-linux (20) (push) Waiting to run
bld-ci / build-linux (21) (push) Waiting to run
bld-ci / build-linux (22) (push) Waiting to run
bld-ci / build-macos (17) (push) Waiting to run
bld-ci / build-macos (20) (push) Waiting to run
bld-ci / build-macos (21) (push) Waiting to run
bld-ci / build-macos (22) (push) Waiting to run
bld-ci / build-windows (17) (push) Waiting to run
bld-ci / build-windows (20) (push) Waiting to run
bld-ci / build-windows (21) (push) Waiting to run
bld-ci / build-windows (22) (push) Waiting to run
javadocs-pages / deploy (push) Waiting to run
This commit is contained in:
parent
d6d3c0fc1d
commit
5af8ca7b2e
|
|
@ -140,7 +140,7 @@ public class PublishOperation extends AbstractOperation<PublishOperation> {
|
||||||
System.out.println("This is expected for a first publication or for publication to a staging repository.");
|
System.out.println("This is expected for a first publication or for publication to a staging repository.");
|
||||||
}
|
}
|
||||||
|
|
||||||
// adapt the actual version that's use by the artifacts
|
// adapt the actual version used by the artifacts
|
||||||
var snapshot_qualifier = snapshot_timestamp + "-" + snapshot_build_number;
|
var snapshot_qualifier = snapshot_timestamp + "-" + snapshot_build_number;
|
||||||
actual_version = info().version().withQualifier(snapshot_qualifier);
|
actual_version = info().version().withQualifier(snapshot_qualifier);
|
||||||
|
|
||||||
|
|
@ -181,7 +181,7 @@ public class PublishOperation extends AbstractOperation<PublishOperation> {
|
||||||
artifact_name.append('-').append(artifact.classifier());
|
artifact_name.append('-').append(artifact.classifier());
|
||||||
}
|
}
|
||||||
var type = artifact.type();
|
var type = artifact.type();
|
||||||
if (type == null || TYPE_JAR.equals(type) || TYPE_MODULAR_JAR.equals(type) || TYPE_CLASSPATH_JAR.equals(type)) {
|
if (TYPE_JAR.equals(type) || TYPE_MODULAR_JAR.equals(type) || TYPE_CLASSPATH_JAR.equals(type)) {
|
||||||
type = TYPE_JAR;
|
type = TYPE_JAR;
|
||||||
}
|
}
|
||||||
artifact_name.append('.').append(type);
|
artifact_name.append('.').append(type);
|
||||||
|
|
@ -493,7 +493,9 @@ public class PublishOperation extends AbstractOperation<PublishOperation> {
|
||||||
response.statusCode() < 300) {
|
response.statusCode() < 300) {
|
||||||
System.out.print("done");
|
System.out.print("done");
|
||||||
} else {
|
} else {
|
||||||
System.out.print("failed");
|
System.out.println("failed");
|
||||||
|
System.out.println(response.body());
|
||||||
|
System.out.print(response.headers().toString());
|
||||||
throw new UploadException(url, response.statusCode());
|
throw new UploadException(url, response.statusCode());
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue