Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into antlr4
Browse files Browse the repository at this point in the history
  • Loading branch information
basil committed Apr 28, 2023
2 parents 12b1b34 + c23caa9 commit 7711719
Show file tree
Hide file tree
Showing 10 changed files with 53 additions and 48 deletions.
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
buildPlugin(configurations: [
buildPlugin(useContainerAgent: true, configurations: [
[platform: 'linux', jdk: '11'],
[platform: 'windows', jdk: '11'],
[platform: 'linux', jdk: '17'],
])
16 changes: 8 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>4.49</version>
<version>4.61</version>
<relativePath />
</parent>

Expand Down Expand Up @@ -67,7 +67,7 @@
<properties>
<changelist>999999-SNAPSHOT</changelist>
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
<jenkins.version>2.376</jenkins.version>
<jenkins.version>2.387.1</jenkins.version>
</properties>

<repositories>
Expand All @@ -87,8 +87,8 @@
<dependencies>
<dependency>
<groupId>io.jenkins.tools.bom</groupId>
<artifactId>bom-2.361.x</artifactId>
<version>1654.vcb_69d035fa_20</version>
<artifactId>bom-2.387.x</artifactId>
<version>1836.vfe602c266c05</version>
<scope>import</scope>
<type>pom</type>
</dependency>
Expand Down Expand Up @@ -127,7 +127,7 @@
<dependency>
<groupId>org.xmlunit</groupId>
<artifactId>xmlunit-matchers</artifactId>
<version>2.9.0</version>
<version>2.9.1</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -195,9 +195,9 @@
<id>pdfs</id>
<properties>
<asciidoctor.maven.plugin.version>2.2.2</asciidoctor.maven.plugin.version>
<asciidoctorj.pdf.version>2.3.0</asciidoctorj.pdf.version>
<asciidoctorj.version>2.5.5</asciidoctorj.version>
<jruby.version>9.3.4.0</jruby.version>
<asciidoctorj.pdf.version>2.3.4</asciidoctorj.pdf.version>
<asciidoctorj.version>2.5.7</asciidoctorj.version>
<jruby.version>9.4.1.0</jruby.version>
</properties>
<build>
<plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ public CredentialsStore getStore() {
@Override
public String getIconFileName() {
return isVisible()
? "symbol-jenkins"
? "/plugin/credentials/images/system-store.svg"
: null;
}

Expand All @@ -639,7 +639,7 @@ public String getIconFileName() {
@Override
public String getIconClassName() {
return isVisible()
? "symbol-jenkins"
? "icon-credentials-system-store icon-sm"
: null;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@
<st:include page="credential"/>
</f:block>
<f:block>
<input id="credentials-add-submit" class="yui-button primary" value="${%Add}"
onclick="return window.credentials.addSubmit(this);"/>
<input id="credentials-add-abort" class="yui-button"
onclick="window.credentials.dialog.hide(); return false;" value="${%Cancel}"/>
<input id="credentials-add-submit" class="yui-button primary" value="${%Add}"/>
<input id="credentials-add-abort" class="yui-button" value="${%Cancel}"/>
</f:block>
</table>
</form>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,27 @@
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:l="/lib/layout"
xmlns:f="/lib/form" xmlns:c="/lib/credentials" xmlns:t="/lib/hudson">
<l:layout title="${it.fullDisplayName}" permission="${it.parent.VIEW}" type="one-column">
<l:app-bar title="${it.displayName}">
<l:hasPermission permission="${it.parent.CREATE}">
<a href="newCredentials" class="jenkins-button jenkins-button--primary">
<l:icon src="symbol-add" />
${%Add Credentials}
</a>
</l:hasPermission>
<j:if test="${!it.global and it.parent.domainsModifiable}">
<l:main-panel>
<l:app-bar title="${it.displayName}">
<l:hasPermission permission="${it.parent.CREATE}">
<a href="configure" class="jenkins-button">
<l:icon class="icon-setting icon-md" />
${%Configure domain}
</a>
<a href="delete" class="jenkins-button jenkins-button--destructive jenkins-!-destructive-color">
<l:icon class="icon-edit-delete icon-md" />
${%Delete domain}
<a href="newCredentials" class="jenkins-button jenkins-button--primary">
<l:icon src="symbol-add" />
${%Add Credentials}
</a>
</l:hasPermission>
</j:if>
</l:app-bar>
<l:main-panel>
<j:if test="${!it.global and it.parent.domainsModifiable}">
<l:hasPermission permission="${it.parent.CREATE}">
<a href="configure" class="jenkins-button">
<l:icon class="icon-setting icon-md" />
${%Configure domain}
</a>
<a href="delete" class="jenkins-button jenkins-button--destructive jenkins-!-destructive-color">
<l:icon class="icon-edit-delete icon-md" />
${%Delete domain}
</a>
</l:hasPermission>
</j:if>
</l:app-bar>
<div>
<j:out value="${it.description!=null ? app.markupFormatter.translate(it.description) : ''}" />
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,17 @@
</j:when>
<j:otherwise>
<l:layout title="${it.fullDisplayName}" permission="${it.VIEW}" type="one-column">
<l:app-bar title="${it.displayName}">
<j:if test="${it.domainsModifiable}">
<l:hasPermission permission="${it.parent.CREATE}">
<a href="newDomain" class="jenkins-button jenkins-button--primary">
<l:icon src="symbol-add" />
${%Add domain}
</a>
</l:hasPermission>
</j:if>
</l:app-bar>

<l:main-panel>
<l:app-bar title="${it.displayName}">
<j:if test="${it.domainsModifiable}">
<l:hasPermission permission="${it.parent.CREATE}">
<a href="newDomain" class="jenkins-button jenkins-button--primary">
<l:icon src="symbol-add" />
${%Add domain}
</a>
</l:hasPermission>
</j:if>
</l:app-bar>
<t:setIconSize/>
<table class="jenkins-table ${iconSize == '16x16' ? 'jenkins-table--small' : iconSize == '24x24' ? 'jenkins-table--medium' : ''} sortable">
<thead>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:l="/lib/layout"
xmlns:t="/lib/hudson">
<l:layout title="${it.fullDisplayName}" permission="${it.VIEW}" type="one-column">
<l:app-bar title="${%Credentials}" />
<l:main-panel>
<l:app-bar title="${%Credentials}" />
<style>
.masked-credential {
filter: grayscale(100%); /* Real browsers */
Expand Down
7 changes: 7 additions & 0 deletions src/main/resources/lib/credentials/dialog.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Behaviour.specify("#credentials-add-submit", 'credentials-dialog-add', 0, function (e) {
e.onclick = (_) => window.credentials.addSubmit(e);
});

Behaviour.specify("#credentials-add-abort", 'credentials-dialog-abort', 0, function (e) {
e.onclick = (_) => window.credentials.dialog.hide();
});
5 changes: 3 additions & 2 deletions src/main/resources/lib/credentials/select.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
<j:set var="selectHelper" value="${app.getDescriptorByName('com.cloudbees.plugins.credentials.CredentialsSelectHelper')}"/>
<j:set var="includeUser" value="${attrs.includeUser ? true : false}"/>
<j:set var="context" value="${selectHelper.resolveContext(attrs.context ?: it)}"/>
<st:adjunct includes="lib.credentials.dialog"/>
<div class="credentials-select-control">
<j:if test="${attrs.expressionAllowed}">
<label field-disabled="true">
Expand Down Expand Up @@ -114,7 +115,7 @@
<j:set var="storeItems" value="${selectHelper.getStoreItems(context, includeUser)}"/>
<j:choose>
<j:when test="${selectHelper.hasCreatePermission(context, includeUser) and storeItems != null and !storeItems.isEmpty()}">
<button class="credentials-add-menu hetero-list-add jenkins-button jenkins-button--transparent jenkins-button--tertiary jenkins-!-margin-top-2" menualign="${attrs.menuAlign}"
<button class="credentials-add-menu hetero-list-add jenkins-!-margin-top-2" menualign="${attrs.menuAlign}"
suffix="${attrs.name}">
<l:icon src="symbol-add"/>
${%Add}
Expand Down Expand Up @@ -147,7 +148,7 @@
</div>
</j:when>
<j:otherwise>
<button class="credentials-add jenkins-button jenkins-button--transparent jenkins-button--tertiary jenkins-!-margin-top-2">
<button class="credentials-add jenkins-!-margin-top-2">
<l:icon src="symbol-add"/>
${%Add}
</button>
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/lib/credentials/select/select.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
select.credentials-select { width:auto; vertical-align: top; }
button.credentials-add-menu { padding:0 20px 0 10px; }
div.credentials-select-content-inactive { display:none; }
div#credentialsDialog {overflow-y: scroll;}
body.masked {overflow-y: hidden;}
Expand Down

0 comments on commit 7711719

Please sign in to comment.