Skip to content

Commit f5970ff

Browse files
authored
DYN-9607 Update trigger l10n job workflow (#102)
1 parent bcbab36 commit f5970ff

File tree

4 files changed

+27
-25
lines changed

4 files changed

+27
-25
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
jobs:
1010
build:
11+
name: Build Dynamo and TuneUp
1112
runs-on: windows-latest
1213
steps:
1314
- name: Checkout TuneUp Repo
@@ -30,9 +31,7 @@ jobs:
3031
- name: Setup msbuild
3132
uses: microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce # v2.0.0
3233
- name: Install dependencies for Dynamo solution
33-
run: |
34-
nuget restore ${{ github.workspace }}\Dynamo\src\Dynamo.All.sln
35-
nuget restore $Env:GITHUB_WORKSPACE\Dynamo\src\Dynamo.All.sln
34+
run: nuget restore ${{ github.workspace }}\Dynamo\src\Dynamo.All.sln
3635
- name: Install dependencies for TuneUp solution
3736
run: nuget restore ${{ github.workspace }}\TuneUp\TuneUp.sln
3837
- name: Build Dynamo solution

.github/workflows/trigger_jenkins.yaml

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Trigger L10N Jenkins Job
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
trigger_jenkins:
13+
name: Trigger Jenkins Job
14+
runs-on: self-hosted
15+
steps:
16+
- name: Trigger Job
17+
shell: bash
18+
run: |
19+
AUTH="${{ secrets.L10N_JENKINS_TRIGGER_USER }}:${{ secrets.L10N_JENKINS_TRIGGER_TOKEN }}"
20+
JENKINS_URL="${{ secrets.L10N_JENKINS_CONTROLLER_URL }}/job/${{ secrets.L10N_JENKINS_TRIGGER_ROOT_FOLDER }}/job/${{ secrets.L10N_JENKINS_TRIGGER_ORG_FOLDER }}/job/${{ github.repository_owner }}/job/${{ github.event.repository.name }}/job/${{ secrets.L10N_JENKINS_BRANCH }}/buildWithParameters?delay=0"
21+
curl -f -sS -X POST -u "$AUTH" "$JENKINS_URL"

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Please check out known issues before trying to setup testing.
4747
- Download DynamoCoreRuntime 3.0.0 (or higher) from [dynamobuilds.com](https://dynamobuilds.com/). Alternatively, you can build Dynamo from Dynamo repository and use the bin folder equivalently.
4848
- Copy all contents of the DynamoCoreRuntime to `TuneUp\TuneUpTests\bin\Debug\`. If you are building Dynamo locally, copy all contents of Dynamo from `Dynamo/bin/AnyCPU/Debug` to `TuneUp\TuneUpTests\bin\Debug\`
4949
- Copy `TuneUp_ViewExtensionDefinition.xml` from `TuneUp\TuneUp\manifests\` to `TuneUp\TuneUpTests\bin\Debug\viewExtensions\`
50-
- Open the copied `TuneUp_ViewExtensionDefinition.xml` and change the assemply path to `..\TuneUp.dll`
50+
- Open the copied `TuneUp_ViewExtensionDefinition.xml` and change the assembly path to `..\TuneUp.dll`
5151
- Remove `TuneUp` from your Dynamo packages folder if you have it installed from package manager (otherwise `TuneUp.dll` will get loaded twice). This won't work well.
5252
- Launch DynamoSandbox.exe, then click `View-> Open Tune Up` and use while a graph runs.
5353

@@ -58,10 +58,11 @@ Please check out known issues before trying to setup testing.
5858
- Click the target test to run or run them all.
5959

6060
### How to publish a new version
61-
We currently can't use the release PR option when making releases on mirrored repositories. There is a propsed follow-up improvment filed that would allow CILibrary to create a PR against the public repository instead (DYN-8724). But until that is done, our release process will be:
61+
62+
We currently can't use the release PR option when making releases on mirrored repositories. There is a proposed follow-up improvement filed that would allow CILibrary to create a PR against the public repository instead (DYN-8724). But until that is done, our release process will be:
6263

6364
- Create a release branch on the internal repository
6465
- Build the branch to publish
65-
- Manually create a PR on the public repository with the changes introduced by the release branch (the updated version number in the pipeline file).
66+
- Manually create a PR on the public repository with the changes introduced by the release branch (the updated version number in the pipeline file).
6667
- Review and merge this PR
6768
- Delete the release branch on the internal repository

0 commit comments

Comments
 (0)