Merge pull request #18 from tveal/update-plugins
Update and Sort Base Plugins
This commit is contained in:
commit
c885f563a4
|
|
@ -418,7 +418,10 @@
|
||||||
[[projects]]
|
[[projects]]
|
||||||
digest = "1:4af061277c04a7660e082acc2020f4c66d2c21dfc62e0242ffa1d2120cdfb4ec"
|
digest = "1:4af061277c04a7660e082acc2020f4c66d2c21dfc62e0242ffa1d2120cdfb4ec"
|
||||||
name = "github.com/stretchr/testify"
|
name = "github.com/stretchr/testify"
|
||||||
packages = ["assert"]
|
packages = [
|
||||||
|
"assert",
|
||||||
|
"require",
|
||||||
|
]
|
||||||
pruneopts = "NT"
|
pruneopts = "NT"
|
||||||
revision = "f35b8ab0b5a2cef36673838d662e249dd9c94686"
|
revision = "f35b8ab0b5a2cef36673838d662e249dd9c94686"
|
||||||
version = "v1.2.2"
|
version = "v1.2.2"
|
||||||
|
|
@ -864,6 +867,7 @@
|
||||||
"github.com/bndr/gojenkins",
|
"github.com/bndr/gojenkins",
|
||||||
"github.com/docker/distribution/reference",
|
"github.com/docker/distribution/reference",
|
||||||
"github.com/go-logr/logr",
|
"github.com/go-logr/logr",
|
||||||
|
"github.com/go-logr/zapr",
|
||||||
"github.com/golang/mock/gomock",
|
"github.com/golang/mock/gomock",
|
||||||
"github.com/operator-framework/operator-sdk/pkg/k8sutil",
|
"github.com/operator-framework/operator-sdk/pkg/k8sutil",
|
||||||
"github.com/operator-framework/operator-sdk/pkg/leader",
|
"github.com/operator-framework/operator-sdk/pkg/leader",
|
||||||
|
|
@ -873,6 +877,8 @@
|
||||||
"github.com/operator-framework/operator-sdk/version",
|
"github.com/operator-framework/operator-sdk/version",
|
||||||
"github.com/pkg/errors",
|
"github.com/pkg/errors",
|
||||||
"github.com/stretchr/testify/assert",
|
"github.com/stretchr/testify/assert",
|
||||||
|
"github.com/stretchr/testify/require",
|
||||||
|
"go.uber.org/zap",
|
||||||
"k8s.io/api/core/v1",
|
"k8s.io/api/core/v1",
|
||||||
"k8s.io/api/rbac/v1",
|
"k8s.io/api/rbac/v1",
|
||||||
"k8s.io/apimachinery/pkg/api/errors",
|
"k8s.io/apimachinery/pkg/api/errors",
|
||||||
|
|
|
||||||
|
|
@ -1,44 +1,81 @@
|
||||||
package plugins
|
package plugins
|
||||||
|
|
||||||
const (
|
const (
|
||||||
apacheComponentsClientPlugin = "apache-httpcomponents-client-4-api:4.5.5-3.0"
|
aceEditorPlugin = "ace-editor:1.1"
|
||||||
jackson2ADIPlugin = "jackson2-api:2.9.8"
|
apacheComponentsClientPlugin = "apache-httpcomponents-client-4-api:4.5.5-3.0"
|
||||||
credentialsPlugin = "credentials:2.1.18"
|
authenticationTokensPlugin = "authentication-tokens:1.3"
|
||||||
cloudBeesFolderPlugin = "cloudbees-folder:6.7"
|
branchApiPlugin = "branch-api:2.5.1"
|
||||||
durableTaskPlugin = "durable-task:1.29"
|
cloudBeesFolderPlugin = "cloudbees-folder:6.8"
|
||||||
plainCredentialsPlugin = "plain-credentials:1.5"
|
configurationAsCodePlugin = "configuration-as-code:1.16"
|
||||||
structsPlugin = "structs:1.17"
|
configurationAsCodeSupportPlugin = "configuration-as-code-support:1.16"
|
||||||
workflowStepAPIPlugin = "workflow-step-api:2.19"
|
credentialsBindingPlugin = "credentials-binding:1.18"
|
||||||
scmAPIPlugin = "scm-api:2.3.0"
|
credentialsPlugin = "credentials:2.1.19"
|
||||||
workflowAPIPlugin = "workflow-api:2.33"
|
displayURLAPIPlugin = "display-url-api:2.3.1"
|
||||||
workflowSupportPlugin = "workflow-support:3.2"
|
dockerCommonsPlugin = "docker-commons:1.15"
|
||||||
displayURLAPIPlugin = "display-url-api:2.3.0"
|
dockerWorkflowPlugin = "docker-workflow:1.18"
|
||||||
gitClientPlugin = "git-client:2.7.6"
|
durableTaskPlugin = "durable-task:1.29"
|
||||||
jschPlugin = "jsch:0.1.55"
|
gitClientPlugin = "git-client:2.7.7"
|
||||||
junitPlugin = "junit:1.27"
|
gitPlugin = "git:3.10.0"
|
||||||
mailerPlugin = "mailer:1.23"
|
gitServerPlugin = "git-server:1.7"
|
||||||
matrixProjectPlugin = "matrix-project:1.14"
|
handlebarsPlugin = "handlebars:1.1.1"
|
||||||
scriptSecurityPlugin = "script-security:1.54"
|
jackson2ADIPlugin = "jackson2-api:2.9.9"
|
||||||
sshCredentialsPlugin = "ssh-credentials:1.15"
|
jobDslPlugin = "job-dsl:1.74"
|
||||||
workflowSCMStepPlugin = "workflow-scm-step:2.7"
|
jqueryDetachedPlugin = "jquery-detached:1.2.1"
|
||||||
variantPlugin = "variant:1.2"
|
jschPlugin = "jsch:0.1.55"
|
||||||
|
junitPlugin = "junit:1.28"
|
||||||
|
kubernetesCredentialsPlugin = "kubernetes-credentials:0.4.0"
|
||||||
|
kubernetesCredentialsProviderPlugin = "kubernetes-credentials-provider:0.12.1"
|
||||||
|
kubernetesPlugin = "kubernetes:1.15.5"
|
||||||
|
lockableResourcesPlugin = "lockable-resources:2.5"
|
||||||
|
mailerPlugin = "mailer:1.23"
|
||||||
|
matrixProjectPlugin = "matrix-project:1.14"
|
||||||
|
momentjsPlugin = "momentjs:1.1.1"
|
||||||
|
pipelineBuildStepPlugin = "pipeline-build-step:2.9"
|
||||||
|
pipelineGraphAnalysisPlugin = "pipeline-graph-analysis:1.10"
|
||||||
|
pipelineInputStepPlugin = "pipeline-input-step:2.10"
|
||||||
|
pipelineMilestoneStepPlugin = "pipeline-milestone-step:1.3.1"
|
||||||
|
pipelineModelApiPlugin = "pipeline-model-api:1.3.8"
|
||||||
|
pipelineModelDeclarativeAgentPlugin = "pipeline-model-declarative-agent:1.1.1"
|
||||||
|
pipelineModelDefinitionPlugin = "pipeline-model-definition:1.3.8"
|
||||||
|
pipelineModelExtensionsPlugin = "pipeline-model-extensions:1.3.8"
|
||||||
|
pipelineRestApiPlugin = "pipeline-rest-api:2.11"
|
||||||
|
pipelineStageStepPlugin = "pipeline-stage-step:2.3"
|
||||||
|
pipelineStageTagsMetadataPlugin = "pipeline-stage-tags-metadata:1.3.8"
|
||||||
|
pipelineStageViewPlugin = "pipeline-stage-view:2.11"
|
||||||
|
plainCredentialsPlugin = "plain-credentials:1.5"
|
||||||
|
scmAPIPlugin = "scm-api:2.4.1"
|
||||||
|
scriptSecurityPlugin = "script-security:1.59"
|
||||||
|
sshCredentialsPlugin = "ssh-credentials:1.16"
|
||||||
|
structsPlugin = "structs:1.19"
|
||||||
|
variantPlugin = "variant:1.2"
|
||||||
|
workflowAggregatorPlugin = "workflow-aggregator:2.6"
|
||||||
|
workflowAPIPlugin = "workflow-api:2.34"
|
||||||
|
workflowBasicStepsPlugin = "workflow-basic-steps:2.16"
|
||||||
|
workflowCpsGlobalLibPlugin = "workflow-cps-global-lib:2.13"
|
||||||
|
workflowCpsPlugin = "workflow-cps:2.68"
|
||||||
|
workflowDurableTaskStepPlugin = "workflow-durable-task-step:2.30"
|
||||||
|
workflowJobPlugin = "workflow-job:2.32"
|
||||||
|
workflowMultibranchPlugin = "workflow-multibranch:2.21"
|
||||||
|
workflowSCMStepPlugin = "workflow-scm-step:2.7"
|
||||||
|
workflowStepAPIPlugin = "workflow-step-api:2.19"
|
||||||
|
workflowSupportPlugin = "workflow-support:3.3"
|
||||||
)
|
)
|
||||||
|
|
||||||
// BasePluginsMap contains plugins to install by operator
|
// BasePluginsMap contains plugins to install by operator
|
||||||
var BasePluginsMap = map[string][]Plugin{
|
var BasePluginsMap = map[string][]Plugin{
|
||||||
Must(New("kubernetes:1.14.8")).String(): {
|
Must(New(kubernetesPlugin)).String(): {
|
||||||
Must(New(apacheComponentsClientPlugin)),
|
Must(New(apacheComponentsClientPlugin)),
|
||||||
Must(New(cloudBeesFolderPlugin)),
|
Must(New(cloudBeesFolderPlugin)),
|
||||||
Must(New(credentialsPlugin)),
|
Must(New(credentialsPlugin)),
|
||||||
Must(New(durableTaskPlugin)),
|
Must(New(durableTaskPlugin)),
|
||||||
Must(New(jackson2ADIPlugin)),
|
Must(New(jackson2ADIPlugin)),
|
||||||
Must(New("kubernetes-credentials:0.4.0")),
|
Must(New(kubernetesCredentialsPlugin)),
|
||||||
Must(New(plainCredentialsPlugin)),
|
Must(New(plainCredentialsPlugin)),
|
||||||
Must(New(structsPlugin)),
|
Must(New(structsPlugin)),
|
||||||
Must(New(variantPlugin)),
|
Must(New(variantPlugin)),
|
||||||
Must(New(workflowStepAPIPlugin)),
|
Must(New(workflowStepAPIPlugin)),
|
||||||
},
|
},
|
||||||
Must(New("workflow-job:2.32")).String(): {
|
Must(New(workflowJobPlugin)).String(): {
|
||||||
Must(New(scmAPIPlugin)),
|
Must(New(scmAPIPlugin)),
|
||||||
Must(New(scriptSecurityPlugin)),
|
Must(New(scriptSecurityPlugin)),
|
||||||
Must(New(structsPlugin)),
|
Must(New(structsPlugin)),
|
||||||
|
|
@ -46,58 +83,58 @@ var BasePluginsMap = map[string][]Plugin{
|
||||||
Must(New(workflowStepAPIPlugin)),
|
Must(New(workflowStepAPIPlugin)),
|
||||||
Must(New(workflowSupportPlugin)),
|
Must(New(workflowSupportPlugin)),
|
||||||
},
|
},
|
||||||
Must(New("workflow-aggregator:2.6")).String(): {
|
Must(New(workflowAggregatorPlugin)).String(): {
|
||||||
Must(New("ace-editor:1.1")),
|
Must(New(aceEditorPlugin)),
|
||||||
Must(New(apacheComponentsClientPlugin)),
|
Must(New(apacheComponentsClientPlugin)),
|
||||||
Must(New("authentication-tokens:1.3")),
|
Must(New(authenticationTokensPlugin)),
|
||||||
Must(New("branch-api:2.1.2")),
|
Must(New(branchApiPlugin)),
|
||||||
Must(New(cloudBeesFolderPlugin)),
|
Must(New(cloudBeesFolderPlugin)),
|
||||||
Must(New("credentials-binding:1.18")),
|
Must(New(credentialsBindingPlugin)),
|
||||||
Must(New(credentialsPlugin)),
|
Must(New(credentialsPlugin)),
|
||||||
Must(New(displayURLAPIPlugin)),
|
Must(New(displayURLAPIPlugin)),
|
||||||
Must(New("docker-commons:1.13")),
|
Must(New(dockerCommonsPlugin)),
|
||||||
Must(New("docker-workflow:1.17")),
|
Must(New(dockerWorkflowPlugin)),
|
||||||
Must(New(durableTaskPlugin)),
|
Must(New(durableTaskPlugin)),
|
||||||
Must(New(gitClientPlugin)),
|
Must(New(gitClientPlugin)),
|
||||||
Must(New("git-server:1.7")),
|
Must(New(gitServerPlugin)),
|
||||||
Must(New("handlebars:1.1.1")),
|
Must(New(handlebarsPlugin)),
|
||||||
Must(New(jackson2ADIPlugin)),
|
Must(New(jackson2ADIPlugin)),
|
||||||
Must(New("jquery-detached:1.2.1")),
|
Must(New(jqueryDetachedPlugin)),
|
||||||
Must(New(jschPlugin)),
|
Must(New(jschPlugin)),
|
||||||
Must(New(junitPlugin)),
|
Must(New(junitPlugin)),
|
||||||
Must(New("lockable-resources:2.4")),
|
Must(New(lockableResourcesPlugin)),
|
||||||
Must(New(mailerPlugin)),
|
Must(New(mailerPlugin)),
|
||||||
Must(New(matrixProjectPlugin)),
|
Must(New(matrixProjectPlugin)),
|
||||||
Must(New("momentjs:1.1.1")),
|
Must(New(momentjsPlugin)),
|
||||||
Must(New("pipeline-build-step:2.7")),
|
Must(New(pipelineBuildStepPlugin)),
|
||||||
Must(New("pipeline-graph-analysis:1.9")),
|
Must(New(pipelineGraphAnalysisPlugin)),
|
||||||
Must(New("pipeline-input-step:2.9")),
|
Must(New(pipelineInputStepPlugin)),
|
||||||
Must(New("pipeline-milestone-step:1.3.1")),
|
Must(New(pipelineMilestoneStepPlugin)),
|
||||||
Must(New("pipeline-model-api:1.3.6")),
|
Must(New(pipelineModelApiPlugin)),
|
||||||
Must(New("pipeline-model-declarative-agent:1.1.1")),
|
Must(New(pipelineModelDeclarativeAgentPlugin)),
|
||||||
Must(New("pipeline-model-definition:1.3.6")),
|
Must(New(pipelineModelDefinitionPlugin)),
|
||||||
Must(New("pipeline-model-extensions:1.3.6")),
|
Must(New(pipelineModelExtensionsPlugin)),
|
||||||
Must(New("pipeline-rest-api:2.10")),
|
Must(New(pipelineRestApiPlugin)),
|
||||||
Must(New("pipeline-stage-step:2.3")),
|
Must(New(pipelineStageStepPlugin)),
|
||||||
Must(New("pipeline-stage-tags-metadata:1.3.6")),
|
Must(New(pipelineStageTagsMetadataPlugin)),
|
||||||
Must(New("pipeline-stage-view:2.10")),
|
Must(New(pipelineStageViewPlugin)),
|
||||||
Must(New(plainCredentialsPlugin)),
|
Must(New(plainCredentialsPlugin)),
|
||||||
Must(New(scmAPIPlugin)),
|
Must(New(scmAPIPlugin)),
|
||||||
Must(New(scriptSecurityPlugin)),
|
Must(New(scriptSecurityPlugin)),
|
||||||
Must(New(sshCredentialsPlugin)),
|
Must(New(sshCredentialsPlugin)),
|
||||||
Must(New(structsPlugin)),
|
Must(New(structsPlugin)),
|
||||||
Must(New(workflowAPIPlugin)),
|
Must(New(workflowAPIPlugin)),
|
||||||
Must(New("workflow-basic-steps:2.14")),
|
Must(New(workflowBasicStepsPlugin)),
|
||||||
Must(New("workflow-cps-global-lib:2.13")),
|
Must(New(workflowCpsGlobalLibPlugin)),
|
||||||
Must(New("workflow-cps:2.64")),
|
Must(New(workflowCpsPlugin)),
|
||||||
Must(New("workflow-durable-task-step:2.29")),
|
Must(New(workflowDurableTaskStepPlugin)),
|
||||||
Must(New("workflow-job:2.32")),
|
Must(New(workflowJobPlugin)),
|
||||||
Must(New("workflow-multibranch:2.21")),
|
Must(New(workflowMultibranchPlugin)),
|
||||||
Must(New(workflowSCMStepPlugin)),
|
Must(New(workflowSCMStepPlugin)),
|
||||||
Must(New(workflowStepAPIPlugin)),
|
Must(New(workflowStepAPIPlugin)),
|
||||||
Must(New(workflowSupportPlugin)),
|
Must(New(workflowSupportPlugin)),
|
||||||
},
|
},
|
||||||
Must(New("git:3.9.3")).String(): {
|
Must(New(gitPlugin)).String(): {
|
||||||
Must(New(apacheComponentsClientPlugin)),
|
Must(New(apacheComponentsClientPlugin)),
|
||||||
Must(New(credentialsPlugin)),
|
Must(New(credentialsPlugin)),
|
||||||
Must(New(displayURLAPIPlugin)),
|
Must(New(displayURLAPIPlugin)),
|
||||||
|
|
@ -114,14 +151,14 @@ var BasePluginsMap = map[string][]Plugin{
|
||||||
Must(New(workflowSCMStepPlugin)),
|
Must(New(workflowSCMStepPlugin)),
|
||||||
Must(New(workflowStepAPIPlugin)),
|
Must(New(workflowStepAPIPlugin)),
|
||||||
},
|
},
|
||||||
Must(New("job-dsl:1.72")).String(): {
|
Must(New(jobDslPlugin)).String(): {
|
||||||
Must(New(scriptSecurityPlugin)),
|
Must(New(scriptSecurityPlugin)),
|
||||||
Must(New(structsPlugin)),
|
Must(New(structsPlugin)),
|
||||||
},
|
},
|
||||||
Must(New("configuration-as-code:1.7")).String(): {
|
Must(New(configurationAsCodePlugin)).String(): {
|
||||||
Must(New("configuration-as-code-support:1.7")),
|
Must(New(configurationAsCodeSupportPlugin)),
|
||||||
},
|
},
|
||||||
Must(New("kubernetes-credentials-provider:0.12.1")).String(): {
|
Must(New(kubernetesCredentialsProviderPlugin)).String(): {
|
||||||
Must(New(credentialsPlugin)),
|
Must(New(credentialsPlugin)),
|
||||||
Must(New(structsPlugin)),
|
Must(New(structsPlugin)),
|
||||||
Must(New(variantPlugin)),
|
Must(New(variantPlugin)),
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,86 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
FMT="%-40s%-14s %-14s %-16s %s\n"
|
||||||
|
|
||||||
|
function main() {
|
||||||
|
printf "$FMT" "PLUGIN ID" "LOCAL VERSION" "LATEST" "" "NEW PLUGIN:VERSION"
|
||||||
|
|
||||||
|
# Copy all the const values from base_plugins.go as the parameter for getLatest
|
||||||
|
# (column-select is great here; alt+shift+arrow in vscode)
|
||||||
|
getLatest "ace-editor:1.1"
|
||||||
|
getLatest "apache-httpcomponents-client-4-api:4.5.5-3.0"
|
||||||
|
getLatest "authentication-tokens:1.3"
|
||||||
|
getLatest "branch-api:2.5.1"
|
||||||
|
getLatest "cloudbees-folder:6.8"
|
||||||
|
getLatest "configuration-as-code:1.16"
|
||||||
|
getLatest "configuration-as-code-support:1.16"
|
||||||
|
getLatest "credentials-binding:1.18"
|
||||||
|
getLatest "credentials:2.1.19"
|
||||||
|
getLatest "display-url-api:2.3.1"
|
||||||
|
getLatest "docker-commons:1.15"
|
||||||
|
getLatest "docker-workflow:1.18"
|
||||||
|
getLatest "durable-task:1.29"
|
||||||
|
getLatest "git-client:2.7.7"
|
||||||
|
getLatest "git:3.10.0"
|
||||||
|
getLatest "git-server:1.7"
|
||||||
|
getLatest "handlebars:1.1.1"
|
||||||
|
getLatest "jackson2-api:2.9.9"
|
||||||
|
getLatest "job-dsl:1.74"
|
||||||
|
getLatest "jquery-detached:1.2.1"
|
||||||
|
getLatest "jsch:0.1.55"
|
||||||
|
getLatest "junit:1.28"
|
||||||
|
getLatest "kubernetes-credentials:0.4.0"
|
||||||
|
getLatest "kubernetes-credentials-provider:0.12.1"
|
||||||
|
getLatest "kubernetes:1.15.5"
|
||||||
|
getLatest "lockable-resources:2.5"
|
||||||
|
getLatest "mailer:1.23"
|
||||||
|
getLatest "matrix-project:1.14"
|
||||||
|
getLatest "momentjs:1.1.1"
|
||||||
|
getLatest "pipeline-build-step:2.9"
|
||||||
|
getLatest "pipeline-graph-analysis:1.10"
|
||||||
|
getLatest "pipeline-input-step:2.10"
|
||||||
|
getLatest "pipeline-milestone-step:1.3.1"
|
||||||
|
getLatest "pipeline-model-api:1.3.8"
|
||||||
|
getLatest "pipeline-model-declarative-agent:1.1.1"
|
||||||
|
getLatest "pipeline-model-definition:1.3.8"
|
||||||
|
getLatest "pipeline-model-extensions:1.3.8"
|
||||||
|
getLatest "pipeline-rest-api:2.11"
|
||||||
|
getLatest "pipeline-stage-step:2.3"
|
||||||
|
getLatest "pipeline-stage-tags-metadata:1.3.8"
|
||||||
|
getLatest "pipeline-stage-view:2.11"
|
||||||
|
getLatest "plain-credentials:1.5"
|
||||||
|
getLatest "scm-api:2.4.1"
|
||||||
|
getLatest "script-security:1.59"
|
||||||
|
getLatest "ssh-credentials:1.16"
|
||||||
|
getLatest "structs:1.19"
|
||||||
|
getLatest "variant:1.2"
|
||||||
|
getLatest "workflow-aggregator:2.6"
|
||||||
|
getLatest "workflow-api:2.34"
|
||||||
|
getLatest "workflow-basic-steps:2.16"
|
||||||
|
getLatest "workflow-cps-global-lib:2.13"
|
||||||
|
getLatest "workflow-cps:2.68"
|
||||||
|
getLatest "workflow-durable-task-step:2.30"
|
||||||
|
getLatest "workflow-job:2.32"
|
||||||
|
getLatest "workflow-multibranch:2.21"
|
||||||
|
getLatest "workflow-scm-step:2.7"
|
||||||
|
getLatest "workflow-step-api:2.19"
|
||||||
|
getLatest "workflow-support:3.3"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Usage:
|
||||||
|
# getLatest "plugin-id:current-version"
|
||||||
|
function getLatest() {
|
||||||
|
local pluginId="$(echo "$1" | cut -d: -f1)"
|
||||||
|
local localVersion="$(echo "$1" | cut -d: -f2)"
|
||||||
|
local version="$(curl -s https://plugins.jenkins.io/$pluginId \
|
||||||
|
| sed -n 's/.*class="v" data-reactid="18">\([^<]*\).*/\1/p')"
|
||||||
|
if [ "$localVersion" = "$version" ]; then
|
||||||
|
changed=""
|
||||||
|
else
|
||||||
|
changed="UPDATE AVAILABLE"
|
||||||
|
fi
|
||||||
|
printf "$FMT" "$pluginId" "$localVersion" "$version" "$changed" "$pluginId:$version"
|
||||||
|
}
|
||||||
|
|
||||||
|
main
|
||||||
Loading…
Reference in New Issue