• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jreleaser / jreleaser / #537

25 Sep 2025 02:50PM UTC coverage: 48.299% (-0.7%) from 48.959%
#537

push

github

web-flow
fix: check snapshot version for '-SNAPSHOT' tag

Fixe #1971

2 of 2 new or added lines in 1 file covered. (100.0%)

362 existing lines in 31 files now uncovered.

25821 of 53461 relevant lines covered (48.3%)

0.48 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

60.0
/api/jreleaser-model-api/src/main/java/org/jreleaser/model/api/packagers/JibConfiguration.java
1
/*
2
 * SPDX-License-Identifier: Apache-2.0
3
 *
4
 * Copyright 2020-2025 The JReleaser authors.
5
 *
6
 * Licensed under the Apache License, Version 2.0 (the "License");
7
 * you may not use this file except in compliance with the License.
8
 * You may obtain a copy of the License at
9
 *
10
 *     https://www.apache.org/licenses/LICENSE-2.0
11
 *
12
 * Unless required by applicable law or agreed to in writing, software
13
 * distributed under the License is distributed on an "AS IS" BASIS,
14
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
 * See the License for the specific language governing permissions and
16
 * limitations under the License.
17
 */
18
package org.jreleaser.model.api.packagers;
19

20
import org.jreleaser.model.api.common.Activatable;
21
import org.jreleaser.model.api.common.Domain;
22
import org.jreleaser.model.api.common.ExtraProperties;
23

24
import java.util.List;
25
import java.util.Locale;
26
import java.util.Map;
27
import java.util.Set;
28

29
import static org.jreleaser.util.StringUtils.isBlank;
30

31
/**
32
 * @author Andres Almiray
33
 * @since 1.6.0
34
 */
35
public interface JibConfiguration extends Domain, ExtraProperties, Activatable {
36
    String TYPE = "jib";
37

38
    String getTemplateDirectory();
39

40
    List<String> getSkipTemplates();
41

42
    String getBaseImage();
43

44
    String getCreationTime();
45

46
    Format getFormat();
47

48
    Map<String, String> getEnvironment();
49

50
    Map<String, String> getLabels();
51

52
    Set<String> getImageNames();
53

54
    Set<String> getVolumes();
55

56
    Set<String> getExposedPorts();
57

58
    String getUser();
59

60
    String getWorkingDirectory();
61

62
    Set<? extends Registry> getRegistries();
63

64
    interface Registry extends Domain, Comparable<Registry> {
65
        String getName();
66

67
        String getServer();
68

69
        String getUsername();
70

71
        String getToUsername();
72

73
        String getFromUsername();
74

75
        String getPassword();
76

77
        String getToPassword();
78

79
        String getFromPassword();
80
    }
81

82
    enum Format {
1✔
83
        DOCKER("Docker"),
1✔
84
        OCI("OCI");
1✔
85

86
        private final String alias;
87

88
        Format(String alias) {
1✔
89
            this.alias = alias;
1✔
90
        }
1✔
91

92
        public String formatted() {
UNCOV
93
            return alias;
×
94
        }
95

96
        public static Format of(String str) {
97
            if (isBlank(str)) return null;
×
98
            return valueOf(str.toUpperCase(Locale.ENGLISH).trim()
×
99
                .replace(".", "_"));
×
100
        }
101
    }
102
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc