4 changed files with 0 additions and 228 deletions
			
			
		| @ -1,26 +0,0 @@ | |||
| #!/usr/bin/env groovy | |||
| import hudson.tools.InstallSourceProperty | |||
| import jenkins.model.Jenkins | |||
| import jenkins.plugins.nodejs.tools.NodeJSInstallation | |||
| import jenkins.plugins.nodejs.tools.NodeJSInstaller | |||
| import static jenkins.plugins.nodejs.tools.NodeJSInstaller.DEFAULT_NPM_PACKAGES_REFRESH_HOURS | |||
| 
 | |||
| final versions = [ | |||
|         'NodeJS 13.x': '13.10.1', | |||
|         'NodeJS 12.x': '12.16.1' | |||
| ] | |||
| 
 | |||
| final globalPackages = "eslint@~6.8.0 truffle@~5.1.18" | |||
| 
 | |||
| Jenkins.instance.getDescriptor(NodeJSInstallation).with { | |||
|     installations = versions.collect { | |||
|         new NodeJSInstallation(it.key, null, [ | |||
|                 new InstallSourceProperty([ | |||
|                         new NodeJSInstaller( | |||
|                             it.value, | |||
|                             globalPackages, | |||
|                             DEFAULT_NPM_PACKAGES_REFRESH_HOURS) | |||
|                 ]) | |||
|         ]) | |||
|     }  as NodeJSInstallation[] | |||
| } | |||
| @ -1,120 +0,0 @@ | |||
| <?xml version='1.1' encoding='UTF-8'?> | |||
| <project> | |||
|   <description></description> | |||
|   <keepDependencies>false</keepDependencies> | |||
|   <properties> | |||
|     <hudson.plugins.jira.JiraProjectProperty plugin="jira@3.0.13"/> | |||
|     <com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty plugin="gitlab-plugin@1.5.13"> | |||
|       <gitLabConnection>apella</gitLabConnection> | |||
|     </com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty> | |||
|     <hudson.model.ParametersDefinitionProperty> | |||
|       <parameterDefinitions> | |||
|         <hudson.model.StringParameterDefinition> | |||
|           <name>gitlabSourceBranch</name> | |||
|           <description></description> | |||
|           <defaultValue>master</defaultValue> | |||
|           <trim>false</trim> | |||
|         </hudson.model.StringParameterDefinition> | |||
|         <hudson.model.StringParameterDefinition> | |||
|           <name>gitlabTargetBranch</name> | |||
|           <description></description> | |||
|           <defaultValue>master</defaultValue> | |||
|           <trim>false</trim> | |||
|         </hudson.model.StringParameterDefinition> | |||
|       </parameterDefinitions> | |||
|     </hudson.model.ParametersDefinitionProperty> | |||
|     <EnvInjectJobProperty plugin="envinject@2.3.0"> | |||
|       <info> | |||
|         <secureGroovyScript plugin="script-security@1.71"> | |||
|           <script>import hudson.model.* | |||
| def env = Thread.currentThread()?.executable.parent.builds[0].properties.get('envVars') | |||
| def map = [:] | |||
| 
 | |||
| if (env['gitlabSourceBranch'] != null) { | |||
|   map['sourceBranch'] = env['gitlabSourceBranch'] | |||
| } | |||
| 
 | |||
| if (env['gitlabTargetBranch'] != null) { | |||
| 
 | |||
|   def gitlabTargetBranchIsEmpty = !(true && (env['gitlabTargetBranch'])) | |||
| 
 | |||
|   if (gitlabTargetBranchIsEmpty && env['gitlabSourceBranch'] != null) { | |||
|     // User left the option empty, try to use the gitlabSourceBranch instead | |||
|     map['gitlabTargetBranch'] = env['gitlabSourceBranch'] | |||
|     map['targetBranch'] = env['gitlabSourceBranch'] | |||
|   } else { | |||
|     map['targetBranch'] = env['gitlabTargetBranch'] | |||
|   } | |||
| } | |||
| 
 | |||
| return map</script> | |||
|           <sandbox>false</sandbox> | |||
|         </secureGroovyScript> | |||
|         <loadFilesFromMaster>false</loadFilesFromMaster> | |||
|       </info> | |||
|       <on>true</on> | |||
|       <keepJenkinsSystemVariables>true</keepJenkinsSystemVariables> | |||
|       <keepBuildVariables>true</keepBuildVariables> | |||
|       <overrideBuildParameters>true</overrideBuildParameters> | |||
|     </EnvInjectJobProperty> | |||
|   </properties> | |||
|   <scm class="hudson.plugins.git.GitSCM" plugin="git@4.2.2"> | |||
|     <configVersion>2</configVersion> | |||
|     <userRemoteConfigs> | |||
|       <hudson.plugins.git.UserRemoteConfig> | |||
|         <url>git@gitlab.com:Apostolof/testapella.git</url> | |||
|         <credentialsId>gitlab-ssh-key</credentialsId> | |||
|       </hudson.plugins.git.UserRemoteConfig> | |||
|     </userRemoteConfigs> | |||
|     <branches> | |||
|       <hudson.plugins.git.BranchSpec> | |||
|         <name>origin/${gitlabSourceBranch}</name> | |||
|       </hudson.plugins.git.BranchSpec> | |||
|     </branches> | |||
|     <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> | |||
|     <submoduleCfg class="list"/> | |||
|     <extensions> | |||
|       <hudson.plugins.git.extensions.impl.PreBuildMerge> | |||
|         <options> | |||
|           <mergeRemote>origin</mergeRemote> | |||
|           <mergeTarget>${gitlabTargetBranch}</mergeTarget> | |||
|           <mergeStrategy>default</mergeStrategy> | |||
|           <fastForwardMode>FF</fastForwardMode> | |||
|         </options> | |||
|       </hudson.plugins.git.extensions.impl.PreBuildMerge> | |||
|     </extensions> | |||
|   </scm> | |||
|   <canRoam>true</canRoam> | |||
|   <disabled>false</disabled> | |||
|   <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> | |||
|   <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> | |||
|   <triggers> | |||
|     <com.dabsquared.gitlabjenkins.GitLabPushTrigger plugin="gitlab-plugin@1.5.13"> | |||
|       <spec></spec> | |||
|       <triggerOnPush>true</triggerOnPush> | |||
|       <triggerOnMergeRequest>true</triggerOnMergeRequest> | |||
|       <triggerOnPipelineEvent>false</triggerOnPipelineEvent> | |||
|       <triggerOnAcceptedMergeRequest>false</triggerOnAcceptedMergeRequest> | |||
|       <triggerOnClosedMergeRequest>false</triggerOnClosedMergeRequest> | |||
|       <triggerOnApprovedMergeRequest>false</triggerOnApprovedMergeRequest> | |||
|       <triggerOpenMergeRequestOnPush>never</triggerOpenMergeRequestOnPush> | |||
|       <triggerOnNoteRequest>false</triggerOnNoteRequest> | |||
|       <noteRegex>Jenkins please retry a build</noteRegex> | |||
|       <ciSkip>true</ciSkip> | |||
|       <skipWorkInProgressMergeRequest>true</skipWorkInProgressMergeRequest> | |||
|       <setBuildDescription>true</setBuildDescription> | |||
|       <branchFilterType>All</branchFilterType> | |||
|       <includeBranchesSpec></includeBranchesSpec> | |||
|       <excludeBranchesSpec></excludeBranchesSpec> | |||
|       <sourceBranchRegex></sourceBranchRegex> | |||
|       <targetBranchRegex></targetBranchRegex> | |||
|       <secretToken>{AQAAABAAAAAQaN91UOqWLcMzvwxv5X3jhRSWceLHBxXjS/TMSxzNclQ=}</secretToken> | |||
|       <pendingBuildName></pendingBuildName> | |||
|       <cancelPendingBuildsOnUpdate>false</cancelPendingBuildsOnUpdate> | |||
|     </com.dabsquared.gitlabjenkins.GitLabPushTrigger> | |||
|   </triggers> | |||
|   <concurrentBuild>false</concurrentBuild> | |||
|   <builders/> | |||
|   <publishers/> | |||
|   <buildWrappers/> | |||
| </project> | |||
| @ -1,47 +0,0 @@ | |||
| <?xml version='1.1' encoding='UTF-8'?> | |||
| <org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject plugin="workflow-multibranch@2.21"> | |||
|   <actions/> | |||
|   <description></description> | |||
|   <properties> | |||
|     <org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig plugin="docker-workflow@1.23"> | |||
|       <dockerLabel></dockerLabel> | |||
|       <registry plugin="docker-commons@1.16"/> | |||
|     </org.jenkinsci.plugins.docker.workflow.declarative.FolderConfig> | |||
|   </properties> | |||
|   <folderViews class="jenkins.branch.MultiBranchProjectViewHolder" plugin="branch-api@2.5.5"> | |||
|     <owner class="org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject" reference="../.."/> | |||
|   </folderViews> | |||
|   <healthMetrics/> | |||
|   <icon class="jenkins.branch.MetadataActionFolderIcon" plugin="branch-api@2.5.5"> | |||
|     <owner class="org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject" reference="../.."/> | |||
|   </icon> | |||
|   <orphanedItemStrategy class="com.cloudbees.hudson.plugins.folder.computed.DefaultOrphanedItemStrategy" plugin="cloudbees-folder@6.11.1"> | |||
|     <pruneDeadBranches>true</pruneDeadBranches> | |||
|     <daysToKeep>-1</daysToKeep> | |||
|     <numToKeep>-1</numToKeep> | |||
|   </orphanedItemStrategy> | |||
|   <triggers/> | |||
|   <disabled>false</disabled> | |||
|   <sources class="jenkins.branch.MultiBranchProject$BranchSourceList" plugin="branch-api@2.5.5"> | |||
|     <data> | |||
|       <jenkins.branch.BranchSource> | |||
|         <source class="jenkins.plugins.git.GitSCMSource" plugin="git@4.2.2"> | |||
|           <id>898b94b0-0abb-4e1d-8730-a6de8c8d1188</id> | |||
|           <remote>git@gitlab.com:Apostolof/testapella.git</remote> | |||
|           <credentialsId>gitlab-ssh-key</credentialsId> | |||
|           <traits> | |||
|             <jenkins.plugins.git.traits.BranchDiscoveryTrait/> | |||
|           </traits> | |||
|         </source> | |||
|         <strategy class="jenkins.branch.DefaultBranchPropertyStrategy"> | |||
|           <properties class="empty-list"/> | |||
|         </strategy> | |||
|       </jenkins.branch.BranchSource> | |||
|     </data> | |||
|     <owner class="org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject" reference="../.."/> | |||
|   </sources> | |||
|   <factory class="org.jenkinsci.plugins.workflow.multibranch.WorkflowBranchProjectFactory"> | |||
|     <owner class="org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject" reference="../.."/> | |||
|     <scriptPath>Jenkinsfile</scriptPath> | |||
|   </factory> | |||
| </org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject> | |||
| @ -1,35 +0,0 @@ | |||
| <?xml version='1.1' encoding='UTF-8'?> | |||
| <project> | |||
|   <actions/> | |||
|   <description></description> | |||
|   <keepDependencies>false</keepDependencies> | |||
|   <properties> | |||
|     <hudson.plugins.jira.JiraProjectProperty plugin="jira@3.0.13"/> | |||
|     <com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty plugin="gitlab-plugin@1.5.13"> | |||
|       <gitLabConnection>apella</gitLabConnection> | |||
|     </com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty> | |||
|   </properties> | |||
|   <scm class="hudson.scm.NullSCM"/> | |||
|   <canRoam>true</canRoam> | |||
|   <disabled>false</disabled> | |||
|   <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> | |||
|   <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> | |||
|   <triggers/> | |||
|   <concurrentBuild>false</concurrentBuild> | |||
|   <builders> | |||
|     <hudson.tasks.Shell> | |||
|       <command>echo $PATH | |||
| node --version | |||
| npm --version | |||
| npm eslint --version | |||
| truffle version</command> | |||
|     </hudson.tasks.Shell> | |||
|   </builders> | |||
|   <publishers/> | |||
|   <buildWrappers> | |||
|     <jenkins.plugins.nodejs.NodeJSBuildWrapper plugin="nodejs@1.3.4"> | |||
|       <nodeJSInstallationName>NodeJS 13.x</nodeJSInstallationName> | |||
|       <cacheLocationStrategy class="jenkins.plugins.nodejs.cache.DefaultCacheLocationLocator"/> | |||
|     </jenkins.plugins.nodejs.NodeJSBuildWrapper> | |||
|   </buildWrappers> | |||
| </project> | |||
					Loading…
					
					
				
		Reference in new issue