Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate repository_uploader_packages to DSL #1233

Open
j-rivero opened this issue Jan 13, 2025 · 0 comments
Open

Migrate repository_uploader_packages to DSL #1233

j-rivero opened this issue Jan 13, 2025 · 0 comments

Comments

@j-rivero
Copy link
Contributor

It was manually created and was never part of the DSL generation.

Job configuration
<?xml version='1.1' encoding='UTF-8'?>
<project>
  <actions/>
  <description>testing new job</description>
  <keepDependencies>false</keepDependencies>
  <properties>
    <hudson.security.AuthorizationMatrixProperty>
      <inheritanceStrategy class="org.jenkinsci.plugins.matrixauth.inheritance.InheritParentStrategy"/>
      <permission>USER:hudson.model.Item.Build:osrfbuild</permission>
      <permission>USER:hudson.model.Item.Read:osrfbuild</permission>
      <permission>USER:hudson.model.Run.Update:osrfbuild</permission>
    </hudson.security.AuthorizationMatrixProperty>
    <hudson.plugins.buildblocker.BuildBlockerProperty plugin="[email protected]">
      <useBuildBlocker>false</useBuildBlocker>
      <blockLevel>UNDEFINED</blockLevel>
      <scanQueueFor>DISABLED</scanQueueFor>
      <blockingJobs></blockingJobs>
    </hudson.plugins.buildblocker.BuildBlockerProperty>
    <jenkins.model.BuildDiscarderProperty>
      <strategy class="hudson.tasks.LogRotator">
        <daysToKeep>-1</daysToKeep>
        <numToKeep>50</numToKeep>
        <artifactDaysToKeep>-1</artifactDaysToKeep>
        <artifactNumToKeep>-1</artifactNumToKeep>
      </strategy>
    </jenkins.model.BuildDiscarderProperty>
    <com.sonyericsson.jenkins.plugins.bfa.model.ScannerJobProperty plugin="[email protected]">
      <doNotScan>false</doNotScan>
    </com.sonyericsson.jenkins.plugins.bfa.model.ScannerJobProperty>
    <jenkins.advancedqueue.priority.strategy.PriorityJobProperty plugin="[email protected]">
      <useJobPriority>false</useJobPriority>
      <priority>-1</priority>
    </jenkins.advancedqueue.priority.strategy.PriorityJobProperty>
    <com.chikli.hudson.plugin.naginator.NaginatorOptOutProperty plugin="[email protected]">
      <optOut>false</optOut>
    </com.chikli.hudson.plugin.naginator.NaginatorOptOutProperty>
    <hudson.plugins.copyartifact.CopyArtifactPermissionProperty plugin="[email protected]">
      <projectNameList>
        <string>*</string>
      </projectNameList>
    </hudson.plugins.copyartifact.CopyArtifactPermissionProperty>
    <com.sonyericsson.rebuild.RebuildSettings plugin="[email protected]">
      <autoRebuild>false</autoRebuild>
      <rebuildDisabled>false</rebuildDisabled>
    </com.sonyericsson.rebuild.RebuildSettings>
    <org.jenkinsci.plugins.requeuejob.RequeueJobProperty plugin="[email protected]">
      <requeueJob>false</requeueJob>
    </org.jenkinsci.plugins.requeuejob.RequeueJobProperty>
    <hudson.model.ParametersDefinitionProperty>
      <parameterDefinitions>
        <hudson.model.StringParameterDefinition>
          <name>LINUX_DISTRO</name>
          <defaultValue>ubuntu</defaultValue>
          <trim>false</trim>
        </hudson.model.StringParameterDefinition>
        <hudson.model.StringParameterDefinition>
          <name>DISTRO</name>
          <trim>false</trim>
        </hudson.model.StringParameterDefinition>
        <hudson.model.StringParameterDefinition>
          <name>ARCH</name>
          <description>Only needed to run nightly-cleanup after this job</description>
          <trim>false</trim>
        </hudson.model.StringParameterDefinition>
        <hudson.model.StringParameterDefinition>
          <name>PACKAGE_ALIAS</name>
          <description>Only needed to run nightly-cleanup after this job</description>
          <trim>false</trim>
        </hudson.model.StringParameterDefinition>
        <hudson.model.StringParameterDefinition>
          <name>VERSION</name>
          <description>Only needed to display job information in jenkins</description>
          <trim>false</trim>
        </hudson.model.StringParameterDefinition>
        <hudson.model.StringParameterDefinition>
          <name>RELEASE_VERSION</name>
          <description>Only needed to display job information in jenkins</description>
          <trim>false</trim>
        </hudson.model.StringParameterDefinition>
        <hudson.model.StringParameterDefinition>
          <name>S3_UPLOAD_PATH</name>
          <trim>false</trim>
        </hudson.model.StringParameterDefinition>
        <hudson.model.BooleanParameterDefinition>
          <name>S3_UPLOAD_CANONICAL_PATH</name>
          <description>Correct S3_UPLOAD_PATH to get rid of versioned paths (i.e gazebo6/releases/ -&gt; gazebo/releases/)</description>
          <defaultValue>true</defaultValue>
        </hudson.model.BooleanParameterDefinition>
        <hudson.model.StringParameterDefinition>
          <name>UPLOAD_TO_REPO</name>
          <description>repository to uplaod package: stable | prerelease | nightly</description>
          <trim>false</trim>
        </hudson.model.StringParameterDefinition>
        <hudson.model.StringParameterDefinition>
          <name>RTOOLS_BRANCH</name>
          <defaultValue>compare_versions_all</defaultValue>
          <trim>false</trim>
        </hudson.model.StringParameterDefinition>
        <hudson.model.StringParameterDefinition>
          <name>PROJECT_NAME_TO_COPY_ARTIFACTS</name>
          <description>job name to copy artifacts from</description>
          <trim>false</trim>
        </hudson.model.StringParameterDefinition>
        <hudson.model.StringParameterDefinition>
          <name>S3_FILES_TO_UPLOAD</name>
          <trim>false</trim>
        </hudson.model.StringParameterDefinition>
      </parameterDefinitions>
    </hudson.model.ParametersDefinitionProperty>
    <hudson.plugins.throttleconcurrents.ThrottleJobProperty plugin="[email protected]">
      <maxConcurrentPerNode>0</maxConcurrentPerNode>
      <maxConcurrentTotal>0</maxConcurrentTotal>
      <categories class="java.util.concurrent.CopyOnWriteArrayList"/>
      <throttleEnabled>false</throttleEnabled>
      <throttleOption>project</throttleOption>
      <limitOneJobWithMatchingParams>false</limitOneJobWithMatchingParams>
      <paramsToUseForLimit></paramsToUseForLimit>
    </hudson.plugins.throttleconcurrents.ThrottleJobProperty>
  </properties>
  <scm class="hudson.scm.NullSCM"/>
  <assignedNode>packages</assignedNode>
  <canRoam>false</canRoam>
  <disabled>false</disabled>
  <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
  <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
  <triggers/>
  <concurrentBuild>false</concurrentBuild>
  <builders>
    <hudson.tasks.Shell>
      <command>rm -fr $WORKSPACE/pkgs/*</command>
      <configuredLocalRules/>
    </hudson.tasks.Shell>
    <hudson.plugins.groovy.SystemGroovy plugin="[email protected]">
      <source class="hudson.plugins.groovy.StringSystemScriptSource">
        <script plugin="[email protected]_cf6cf6ed960">
          <script>build.setDescription(
&apos;&lt;b&gt;&apos; + build.buildVariableResolver.resolve(&apos;PACKAGE_ALIAS&apos;) + &apos;&lt;/b&gt;&apos; + 
&apos;  &lt;b&gt;&apos; + build.buildVariableResolver.resolve(&apos;VERSION&apos;) + &apos;-&apos; + 
build.buildVariableResolver.resolve(&apos;RELEASE_VERSION&apos;) + &apos;&lt;/b&gt;&apos; +
&apos;(&apos; + build.buildVariableResolver.resolve(&apos;LINUX_DISTRO&apos;) + &apos;/&apos; + 
      build.buildVariableResolver.resolve(&apos;DISTRO&apos;) + &apos;::&apos; + 
      build.buildVariableResolver.resolve(&apos;ARCH&apos;) + &apos;)&apos; +
&apos;&lt;br /&gt;&apos; +
&apos;upload to: &apos; + build.buildVariableResolver.resolve(&apos;UPLOAD_TO_REPO&apos;) +
&apos;&lt;br /&gt;&apos; +
&apos;RTOOLS_BRANCH: &apos; + build.buildVariableResolver.resolve(&apos;RTOOLS_BRANCH&apos;));
</script>
          <sandbox>false</sandbox>
        </script>
      </source>
    </hudson.plugins.groovy.SystemGroovy>
    <hudson.plugins.copyartifact.CopyArtifact plugin="[email protected]">
      <project>${PROJECT_NAME_TO_COPY_ARTIFACTS}</project>
      <filter>pkgs/*.deb, pkgs/*.ddeb, pkgs/*.dsc, pkgs/*debian*, pkgs/*orig*, pkgs/*.zip, pkgs/*.tar.*, pkgs/*.json</filter>
      <target>pkgs</target>
      <excludes></excludes>
      <selector class="hudson.plugins.copyartifact.TriggeredBuildSelector">
        <upstreamFilterStrategy>UseGlobalSetting</upstreamFilterStrategy>
        <allowUpstreamDependencies>false</allowUpstreamDependencies>
      </selector>
      <flatten>true</flatten>
      <doNotFingerprintArtifacts>false</doNotFingerprintArtifacts>
    </hudson.plugins.copyartifact.CopyArtifact>
    <hudson.tasks.Shell>
      <command>#!/bin/bash -x

[[ -d ./scripts ]] &amp;&amp;  rm -fr ./scripts
git clone https://github.com/ignition-tooling/release-tools scripts -b ${RTOOLS_BRANCH}

/bin/bash -x ./scripts/jenkins-scripts/lib/repository_uploader.bash</command>
      <configuredLocalRules/>
    </hudson.tasks.Shell>
  </builders>
  <publishers/>
  <buildWrappers/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant