ros2 / ci

ROS 2 CI Infrastructure
http://ci.ros2.org/
Apache License 2.0
48 stars 30 forks source link

Trigger RHEL jobs from the launcher as well. #780

Closed clalancette closed 1 month ago

clalancette commented 1 month ago

Here's the diff from attempting to deploy this:

Updating job 'ci_launcher' (dry run)
    <<<
    --- remote config
    +++ new config
    @@ -215,0 +216 @@
    +predicted_jobs["linux-rhel"] = new Tuple("ci_linux-rhel", predict_build_number("ci_linux-rhel"))
    @@ -269,0 +271,13 @@
    +          </configs>
    +          <projects>ci_linux-rhel</projects>
    +          <condition>SUCCESS</condition>
    +          <triggerWithNoParameters>false</triggerWithNoParameters>
    +          <triggerFromChildProjects>false</triggerFromChildProjects>
    +        </hudson.plugins.parameterizedtrigger.BuildTriggerConfig>
    +      </configs>
    +    </hudson.plugins.parameterizedtrigger.BuildTrigger>
    +    <hudson.plugins.parameterizedtrigger.BuildTrigger plugin="parameterized-trigger@2.35.2">
    +      <configs>
    +        <hudson.plugins.parameterizedtrigger.BuildTriggerConfig>
    +          <configs>
    +            <hudson.plugins.parameterizedtrigger.CurrentBuildParameters />
    >>>
Updating job 'test_ci_launcher' (dry run)
    <<<
    --- remote config
    +++ new config
    @@ -215,0 +216 @@
    +predicted_jobs["linux-rhel"] = new Tuple("test_ci_linux-rhel", predict_build_number("test_ci_linux-rhel"))
    @@ -269,0 +271,13 @@
    +          </configs>
    +          <projects>test_ci_linux-rhel</projects>
    +          <condition>SUCCESS</condition>
    +          <triggerWithNoParameters>false</triggerWithNoParameters>
    +          <triggerFromChildProjects>false</triggerFromChildProjects>
    +        </hudson.plugins.parameterizedtrigger.BuildTriggerConfig>
    +      </configs>
    +    </hudson.plugins.parameterizedtrigger.BuildTrigger>
    +    <hudson.plugins.parameterizedtrigger.BuildTrigger plugin="parameterized-trigger@2.35.2">
    +      <configs>
    +        <hudson.plugins.parameterizedtrigger.BuildTriggerConfig>
    +          <configs>
    +            <hudson.plugins.parameterizedtrigger.CurrentBuildParameters />
    >>>

(I'm not totally sure why the new parameterized-trigger portion is there)

clalancette commented 1 month ago

I'm going to deploy this just to the test_ci_launcher job, and then run a test job there.

clalancette commented 1 month ago

I ran https://ci.ros2.org/view/All/job/test_ci_launcher/15/ and got the following output for the console:

clalancette commented 1 month ago

And I've now deployed this.