Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1227 commits
Select commit Hold shift + click to select a range
7faf6b2
Merge branch 'SA-1771-CircleCI-JW' of https://github.com/TheJumpCloud…
jworkmanjc May 19, 2021
44beb92
rm stetup tests/ merge to tests file
jworkmanjc May 19, 2021
b90ecb8
-convertProfile tests
jworkmanjc May 19, 2021
a2b58b3
rm scriptblock
jworkmanjc May 19, 2021
95d8d6f
{} should not throw
jworkmanjc May 19, 2021
2eafc4d
build vars update, can't account for dup local names
jworkmanjc May 19, 2021
38c32c7
invoke pester and report failed tests
jworkmanjc May 19, 2021
8a11b07
takeownership after reset
jworkmanjc May 19, 2021
21102b0
rm reset permissions - test
jworkmanjc May 19, 2021
ce4c857
nt authority user running?
jworkmanjc May 19, 2021
0484c62
test invoke from agent
jworkmanjc May 20, 2021
f57691e
spell check
jworkmanjc May 20, 2021
0c9ab95
env variables are set w/ project
jworkmanjc May 20, 2021
c1ead04
test env var
jworkmanjc May 20, 2021
f63d58b
connect-jconline
jworkmanjc May 20, 2021
3811b50
migration tests
jworkmanjc May 20, 2021
305efe8
trailing whitespace
jworkmanjc May 20, 2021
14b903f
rename users & test
jworkmanjc May 20, 2021
5cfcb68
verbose acl logging
jworkmanjc May 20, 2021
1c33408
verbose acl
jworkmanjc May 20, 2021
3bb8642
brads changes for invoke pester
jworkmanjc May 26, 2021
af432d6
verbose tests
jworkmanjc May 26, 2021
f522888
wait before association changes
jworkmanjc May 26, 2021
1210958
import module & verbose output
jworkmanjc May 26, 2021
3b55b88
set jcsdk env vars
jworkmanjc May 26, 2021
167beb5
env setup before tests
jworkmanjc May 26, 2021
81f4264
test w/o seting env & pester results
jworkmanjc May 26, 2021
854118f
test result output
jworkmanjc May 26, 2021
ca0d442
update to relative paths
jworkmanjc May 27, 2021
b5cafde
pester updates
jworkmanjc May 28, 2021
baf1db2
build tests and relative locations
jworkmanjc May 28, 2021
039215a
junit & relative paths
jworkmanjc May 28, 2021
cc576bd
check org on migration tests
jworkmanjc May 28, 2021
9d1557e
kick off tests w/ correct key
jworkmanjc May 28, 2021
ed2b039
test migration w/o skip
jworkmanjc May 28, 2021
e571ee0
build tests params
jworkmanjc May 28, 2021
d99f2a4
Migration submit & wait
jworkmanjc May 28, 2021
1837ff1
pass params to pester & validate command
jworkmanjc May 28, 2021
c9789eb
timeout
jworkmanjc May 28, 2021
194f34d
buildversion param tests + migration tests
jworkmanjc May 28, 2021
5d0280f
enum params & exit 1 on invalid sid
jworkmanjc May 28, 2021
bf72620
env comptuer name in command tests
jworkmanjc May 28, 2021
cca93c4
add timeout
jworkmanjc May 28, 2021
0577d20
takeown update
jworkmanjc May 28, 2021
7bb50c1
trim quotes in env vars pased through webhook
jworkmanjc May 28, 2021
7379fd6
appx trust relationship (for local conversion)
jworkmanjc May 28, 2021
b095f42
test w/o takeown /a & do while exit condition
jworkmanjc May 28, 2021
e213696
quick fix for dup named profiles
jworkmanjc May 28, 2021
1df527a
PSScriptAnalyzer: First Pass
jworkmanjc Jun 1, 2021
df8d136
comments
jworkmanjc Jun 1, 2021
1d66983
testsetup fixes
jworkmanjc Jun 1, 2021
43cb008
new-PSdrive strings
jworkmanjc Jun 1, 2021
411d870
psscript compliance
jworkmanjc Jun 1, 2021
505ff68
psscriptanalyzer approvedVerbs
jworkmanjc Jun 1, 2021
dd39efd
psscriptanalyzer & installAgent
jworkmanjc Jun 1, 2021
1dcc629
untangle mystery static variables
jworkmanjc Jun 1, 2021
99dd4df
psscriptanalyzer settings
jworkmanjc Jun 1, 2021
08144b7
psscriptroot in invokepester
jworkmanjc Jun 1, 2021
e75eecd
settings location
jworkmanjc Jun 1, 2021
6a8141b
while installer & psscriptanalyzer
jworkmanjc Jun 1, 2021
0dca95e
invokeExpression & normalize install
jworkmanjc Jun 1, 2021
f3b6e31
Turn psscriptanalyzer into a testable test
jworkmanjc Jun 1, 2021
442de97
Additional attribute tests
jworkmanjc Jun 1, 2021
a00e815
check sign step
jworkmanjc Jun 1, 2021
e1206c2
secrethub tests
jworkmanjc Jun 1, 2021
2a342f5
test build Module
jworkmanjc Jun 2, 2021
3fdad47
attach workspace
jworkmanjc Jun 2, 2021
b324782
test build module
jworkmanjc Jun 2, 2021
6760630
module name
jworkmanjc Jun 2, 2021
ea6239f
module version type string
jworkmanjc Jun 2, 2021
13f8702
params for build helpfiles
jworkmanjc Jun 2, 2021
832eda2
nuspec test
jworkmanjc Jun 2, 2021
a50df16
missing param
jworkmanjc Jun 2, 2021
919225d
rebase again
kmoorehead-jc Jun 2, 2021
eb372ed
Update filepath+
kmoorehead-jc Jun 2, 2021
0156459
Merge pull request #58 from TheJumpCloud/SA-1771-CircleCI-KM-MKII
kmoorehead-jc Jun 2, 2021
270891f
re-test w/ update home dir params
jworkmanjc Jun 2, 2021
c4c40f1
build # & retest params
jworkmanjc Jun 2, 2021
1c34422
persist nuspec
jworkmanjc Jun 2, 2021
bf56568
env build number
jworkmanjc Jun 2, 2021
975f0f9
env build variable
jworkmanjc Jun 2, 2021
c46c08b
download nuget instead
kmoorehead-jc Jun 3, 2021
5cefaeb
remove commands
kmoorehead-jc Jun 3, 2021
d2af3ab
retry?
kmoorehead-jc Jun 3, 2021
d6cb2b3
roll back
kmoorehead-jc Jun 3, 2021
e9be7fd
Revert "env build variable"
kmoorehead-jc Jun 3, 2021
c414985
switch to patch from build
jworkmanjc Jun 3, 2021
41cbe68
patch not build
jworkmanjc Jun 3, 2021
48e3621
Download nuspec
kmoorehead-jc Jun 3, 2021
9f15470
wrong filepath
kmoorehead-jc Jun 3, 2021
f30bacd
pwsh core for the last bits
kmoorehead-jc Jun 3, 2021
d13da47
one more swippity swap
kmoorehead-jc Jun 3, 2021
26ae1ed
sign step testing
jworkmanjc Jun 3, 2021
b30a560
no need for pester tests
jworkmanjc Jun 3, 2021
8fe035f
Merge branch 'SA-1771-CircleCI-JW' of https://github.com/TheJumpCloud…
jworkmanjc Jun 3, 2021
cf7e259
include notrim cert
jworkmanjc Jun 3, 2021
6b16e29
fix cert naming
jworkmanjc Jun 3, 2021
e56780a
module changelog
jworkmanjc Jun 3, 2021
0de64f6
include settings for psscriptanalyzer
jworkmanjc Jun 8, 2021
ad45cd0
Push to refs/heads/master;[skip ci]
Jun 8, 2021
f47f435
Push to refs/heads/v1.6.4;[skip ci]
Jun 8, 2021
8c589dc
linting_add_update_homepath_param
btstevens Jun 8, 2021
35a6691
update_func_test-program_installed
btstevens Jun 8, 2021
707f352
missing ()
btstevens Jun 8, 2021
e52ac34
uninstall-program
btstevens Jun 8, 2021
ed5aa16
Install-JumpCloudAgent
btstevens Jun 8, 2021
741c9f2
Push to refs/heads/v1.6.4;[skip ci]
Jun 8, 2021
3105d63
update_form
btstevens Jun 8, 2021
a2e93b9
Merge branch 'v1.6.4' of github.com:TheJumpCloud/jumpcloud-ADMU into …
btstevens Jun 8, 2021
fea34b8
Push to refs/heads/v1.6.4;[skip ci]
Jun 8, 2021
f33027d
update-writelog
btstevens Jun 8, 2021
5d3a351
Merge branch 'v1.6.4' of github.com:TheJumpCloud/jumpcloud-ADMU into …
btstevens Jun 8, 2021
7a63998
Push to refs/heads/v1.6.4;[skip ci]
Jun 8, 2021
742fa33
convertsid
btstevens Jun 8, 2021
5fc5d35
Merge branch 'v1.6.4' of github.com:TheJumpCloud/jumpcloud-ADMU into …
btstevens Jun 8, 2021
8f3a3c2
Push to refs/heads/v1.6.4;[skip ci]
Jun 8, 2021
f17aa3b
nospace
btstevens Jun 8, 2021
e962697
Merge branch 'v1.6.4' of github.com:TheJumpCloud/jumpcloud-ADMU into …
btstevens Jun 8, 2021
ddb0090
Push to refs/heads/v1.6.4;[skip ci]
Jun 8, 2021
3d4946f
newuserprofileimagepath
btstevens Jun 9, 2021
da6c99e
Merge branch 'v1.6.4' of github.com:TheJumpCloud/jumpcloud-ADMU into …
btstevens Jun 9, 2021
87d2022
Push to refs/heads/v1.6.4;[skip ci]
Jun 9, 2021
70cd946
docs_ADMU_unusedProfile_$JumpCloudUserName
btstevens Jun 14, 2021
940a8ff
Merge branch 'v1.6.4' of github.com:TheJumpCloud/jumpcloud-ADMU into …
btstevens Jun 14, 2021
0c501cf
Push to refs/heads/v1.6.4;[skip ci]
Jun 14, 2021
6327bf3
unused profile rename
jworkmanjc Jun 14, 2021
e2f1e47
cleanup logs
jworkmanjc Jun 14, 2021
47e40cf
Push to refs/heads/v1.6.4;[skip ci]
Jun 14, 2021
fb8e6f3
default_to_convert
btstevens Jun 14, 2021
47d6325
Push to refs/heads/v1.6.4;[skip ci]
Jun 14, 2021
85ea67a
Update Home Path
jworkmanjc Jun 14, 2021
a533fbd
Merge branch 'v1.6.4' of https://github.com/TheJumpCloud/jumpcloud-AD…
jworkmanjc Jun 14, 2021
cbe42df
Push to refs/heads/v1.6.4;[skip ci]
Jun 14, 2021
8a487e2
convert profile default setting
jworkmanjc Jun 14, 2021
cbb23e6
Merge branch 'v1.6.4' of https://github.com/TheJumpCloud/jumpcloud-AD…
jworkmanjc Jun 14, 2021
71f61b2
Push to refs/heads/v1.6.4;[skip ci]
Jun 14, 2021
d73bbae
Merge pull request #59 from TheJumpCloud/v1.6.4
btstevens Jun 14, 2021
af45642
Push to refs/heads/master;[skip ci]
Jun 14, 2021
957d695
Merge branch 'master' into SA-1771-CircleCI-JW
jworkmanjc Jun 14, 2021
aebc5da
return to tests
jworkmanjc Jun 14, 2021
cf696d5
Module Version
jworkmanjc Jun 14, 2021
8fa9f38
Updated config.yml
jworkmanjc Jun 14, 2021
ce0c884
git commit step
jworkmanjc Jun 14, 2021
99d21cf
Updated config.yml
jworkmanjc Jun 14, 2021
6a7a3a9
Updating ADMU Module;[skip ci]
Jun 14, 2021
e4540b6
add artifact
jworkmanjc Jun 14, 2021
b474064
Updating ADMU Module;[skip ci]
Jun 14, 2021
3056055
root path variable
jworkmanjc Jun 14, 2021
236063e
Merge branch 'SA-1771-CircleCI-JW' of https://github.com/TheJumpCloud…
jworkmanjc Jun 14, 2021
ab98171
Updated config.yml
jworkmanjc Jun 14, 2021
8064bbf
updated build.ps1
jworkmanjc Jun 14, 2021
d66f1a3
Merge branch 'SA-1771-CircleCI-JW' of https://github.com/TheJumpCloud…
jworkmanjc Jun 14, 2021
8c5957c
use git diff to look for changes
jworkmanjc Jun 15, 2021
fc227bb
changes vs compare variable
jworkmanjc Jun 15, 2021
02a8cbb
Updating ADMU Module;[skip ci]
Jun 15, 2021
483bff4
explicitly seperate path
jworkmanjc Jun 15, 2021
aa4f129
uwp_path
jworkmanjc Jun 15, 2021
a672961
Merge branch 'SA-1771-CircleCI-JW' of https://github.com/TheJumpCloud…
jworkmanjc Jun 15, 2021
a3dc829
Updating ADMU Module;[skip ci]
Jun 15, 2021
08562ba
invoke web request
jworkmanjc Jun 15, 2021
6662b0b
Merge branch 'SA-1771-CircleCI-JW' of https://github.com/TheJumpCloud…
jworkmanjc Jun 15, 2021
48477f9
Updating ADMU Module;[skip ci]
Jun 15, 2021
de2a273
origin/master branch
jworkmanjc Jun 15, 2021
e8753a1
Merge branch 'SA-1771-CircleCI-JW' of https://github.com/TheJumpCloud…
jworkmanjc Jun 15, 2021
d2fe448
Updating ADMU Module;[skip ci]
Jun 15, 2021
8be3073
revert sign.ps1 for azure
jworkmanjc Jun 15, 2021
0a28068
Merge branch 'SA-1771-CircleCI-JW' of https://github.com/TheJumpCloud…
jworkmanjc Jun 15, 2021
f6fa5cd
Updating ADMU Module;[skip ci]
Jun 15, 2021
6656cd1
Push to refs/heads/SA-1771-CircleCI-JW;[skip ci]
Jun 15, 2021
40a0eb3
add pull request template
jworkmanjc Jun 15, 2021
40632cb
Updating ADMU Module;[skip ci]
Jun 15, 2021
6eed070
Push to refs/heads/SA-1771-CircleCI-JW;[skip ci]
Jun 15, 2021
eda25ff
Update Changelog
jworkmanjc Jun 15, 2021
11c8b59
Updating ADMU Module;[skip ci]
Jun 15, 2021
0dfdc60
Push to refs/heads/SA-1771-CircleCI-JW;[skip ci]
Jun 15, 2021
9f73ccb
Merge branch 'SA-1771-CircleCI-JW'
jworkmanjc Jun 16, 2021
5d0c593
Updating ADMU Module;[skip ci]
Jun 16, 2021
12c7ca6
Updating ADMU Module;[skip ci]
Jul 6, 2021
44b06be
system_check_1
btstevens Jul 7, 2021
90af445
Merge branch 'SA-1975--AAD-Leave-Domain-Fix' of github.com:TheJumpClo…
btstevens Jul 7, 2021
8d8a287
Updating ADMU Module;[skip ci]
Jul 7, 2021
20897f2
popup_logic
btstevens Jul 7, 2021
fb6fea9
Merge branch 'SA-1975--AAD-Leave-Domain-Fix' of github.com:TheJumpClo…
btstevens Jul 7, 2021
1c5fc5c
Updating ADMU Module;[skip ci]
Jul 7, 2021
5322799
fix_popup_params
btstevens Jul 7, 2021
672d35b
Merge branch 'SA-1975--AAD-Leave-Domain-Fix' of github.com:TheJumpClo…
btstevens Jul 7, 2021
1755bf5
Updating ADMU Module;[skip ci]
Jul 7, 2021
709c651
modify_popup
btstevens Jul 8, 2021
012c89c
Merge branch 'SA-1975--AAD-Leave-Domain-Fix' of github.com:TheJumpClo…
btstevens Jul 8, 2021
51aa6d1
Updating ADMU Module;[skip ci]
Jul 8, 2021
a7630d0
add_start-migration_condition
btstevens Jul 8, 2021
e98cb60
Merge branch 'SA-1975--AAD-Leave-Domain-Fix' of github.com:TheJumpClo…
btstevens Jul 8, 2021
3b3b2fa
Updating ADMU Module;[skip ci]
Jul 8, 2021
7234647
add_log_error_gui
btstevens Jul 8, 2021
893f0cd
version & erroraction
jworkmanjc Jul 8, 2021
c26d49c
Merge branch 'SA-1975--AAD-Leave-Domain-Fix' of https://github.com/Th…
jworkmanjc Jul 8, 2021
013a07e
fix_comment
btstevens Jul 8, 2021
84d421c
Merge branch 'SA-1975--AAD-Leave-Domain-Fix' of github.com:TheJumpClo…
btstevens Jul 8, 2021
5a0125a
if system, error else, attempt unbind
jworkmanjc Jul 8, 2021
4097ea6
Merge branch 'SA-1975--AAD-Leave-Domain-Fix' of https://github.com/Th…
jworkmanjc Jul 8, 2021
43f0a7a
Updating ADMU Module;[skip ci]
Jul 8, 2021
94b13d2
Push to refs/heads/SA-1975--AAD-Leave-Domain-Fix;[skip ci]
Jul 8, 2021
03f411d
Merge pull request #61 from TheJumpCloud/SA-1975--AAD-Leave-Domain-Fix
jworkmanjc Jul 8, 2021
036b7c9
Updating ADMU Module;[skip ci]
Jul 8, 2021
2c14021
Updating ADMU Module;[skip ci]
Jul 22, 2021
68bc187
block_conversion_ifusername_computername_match
btstevens Jul 22, 2021
1dd3b36
Merge branch 'SA-2056-Same-Name-Validation-Fix' of github.com:TheJump…
btstevens Jul 22, 2021
ddb356b
Updating ADMU Module;[skip ci]
Jul 22, 2021
c5c8613
Push to refs/heads/SA-2056-Same-Name-Validation-Fix;[skip ci]
Aug 5, 2021
d020b52
Merge pull request #63 from TheJumpCloud/SA-2056-Same-Name-Validation…
jworkmanjc Aug 5, 2021
c3fac15
remove unnecessary check
jworkmanjc Aug 9, 2021
0248d66
update versions
jworkmanjc Aug 9, 2021
34b3c7b
Updating ADMU Module;[skip ci]
Aug 9, 2021
b627051
remove test-localusername function duplicate
jworkmanjc Aug 9, 2021
7da70e4
Updating ADMU Module;[skip ci]
Aug 9, 2021
0faf21a
updates for same username/hostname
jworkmanjc Aug 9, 2021
9e11760
ci tests changes and temp skip
jworkmanjc Aug 9, 2021
0b0893c
form version
jworkmanjc Aug 9, 2021
99a0f5e
Updating ADMU Module;[skip ci]
Aug 9, 2021
0f10e9a
Push to refs/heads/SA-2085-SameUsernameHostnamev2;[skip ci]
Aug 9, 2021
8f2cc45
Module Changelog
jworkmanjc Aug 9, 2021
12e830f
Merge branch 'SA-2085-SameUsernameHostnamev2' of https://github.com/T…
jworkmanjc Aug 9, 2021
0d5107f
Updating ADMU Module;[skip ci]
Aug 9, 2021
1297ec5
Push to refs/heads/SA-2085-SameUsernameHostnamev2;[skip ci]
Aug 9, 2021
3e9478d
Merge pull request #64 from TheJumpCloud/SA-2085-SameUsernameHostnamev2
jworkmanjc Aug 9, 2021
156d887
Squashed commit of the following:
jworkmanjc Sep 15, 2021
3ab62eb
backfill changelog from master
jworkmanjc Sep 15, 2021
feb479a
Updating ADMU Module;[skip ci]
Sep 15, 2021
1cf0986
Cleanup & comments
jworkmanjc Sep 16, 2021
cc8124c
Updating ADMU Module;[skip ci]
Sep 16, 2021
724c031
Cleanup + Changelog review
jworkmanjc Sep 16, 2021
19cf74b
Merge branch 'v.2.0.0' of https://github.com/TheJumpCloud/jumpcloud-A…
jworkmanjc Sep 16, 2021
dfc68ad
increase wait time for command results
jworkmanjc Sep 16, 2021
eeef58c
Updating ADMU Module;[skip ci]
Sep 16, 2021
c2a8ee5
jcagent_csv_flow_v1
btstevens Oct 4, 2021
15ec3f7
Updating ADMU Module;[skip ci]
Oct 4, 2021
adc9a72
Updating ADMU Module;[skip ci]
Oct 18, 2021
685c618
Push to refs/heads/v.2.0.0;[skip ci]
Oct 18, 2021
6c6cb97
Merge 685c618d776c878760922d2dddb69a8ba9ead4c2 into 3e9478df015823cfb…
jworkmanjc Oct 18, 2021
cb05abb
Updating ADMU Module;[skip ci]
Oct 18, 2021
d814d0a
Push to refs/heads/v.2.0.0;[skip ci]
Oct 18, 2021
2793e1e
Merge pull request #65 from TheJumpCloud/v.2.0.0
jworkmanjc Oct 20, 2021
a0a35a2
Update 2_ADMU_Collate.ps1
jworkmanjc Dec 1, 2021
555ca67
updates to ADMU remote scripts
jworkmanjc Dec 1, 2021
1ed4725
Update 2_ADMU_Collate.ps1
jworkmanjc Feb 15, 2022
b80cae6
remove outdated video [skip ci]
jworkmanjc Feb 24, 2022
cc01504
Create config.yml
kmaranionjc May 18, 2022
d687ef8
test pr
kmaranionjc May 25, 2022
bdfc003
PR branch build test
kmaranionjc May 25, 2022
dc2f525
test pr branch
kmaranionjc May 25, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
276 changes: 276 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,276 @@
version: 2.1
parameters:
buildReleaseType:
description: "Semantic Version increment type of the release. Valid values: major, minor, patch"
default: "patch"
type: enum
enum: ["major", "minor", "patch"]
orbs:
win: circleci/[email protected]
slack: circleci/[email protected]

build-and-sign-ADMU: &build-and-sign-ADMU
- Build
- Pester Tests:
requires:
- Build
# - Sign Executable:
# requires:
# - Build
# - Pester Tests
# context: secrethub-credentials
- Build Module:
requires:
- Build
- Pester Tests
- Sign Exe
# requires:
# - Build
# - Pester Tests
# - Build Module

- Build Help Files:
requires:
- Build
- Pester Tests
# - Sign Executable
- Build Module
- Build Nuspec:
requires:
- Build
- Pester Tests
# - Sign Executable
- Build Module
- Build Help Files
- Publish:
requires:
- Build
- Pester Tests
# - Sign Executable
- Build Module
- Build Help Files
- Build Nuspec
context: aws-credentials
- Invoke Git Commit:
requires:
- Build
- Pester Tests
# - Sign Executable
- Build Module
- Build Help Files
- Build Nuspec
- Upload Artifact:
requires:
- Build
- Pester Tests
# - Sign Executable
- Build Module
- Build Help Files
- Build Nuspec

workflows:
version: 2
ci:
jobs: *build-and-sign-ADMU

jobs:
Build: # name of your job
executor: win/default # executor type
steps:
# Commands are run in a Windows
# virtual machine environment
- checkout
- run:
name: Install Required Modules
shell: powershell.exe
command: |
Install-Module -Name:('ps2exe') -Force
- run:
name: Build
shell: powershell.exe
command: |
$ErrorActionPreference = 'Stop'
./Deploy/Build.ps1 $env:CIRCLE_WORKING_DIRECTORY
- persist_to_workspace:
root: .
paths:
- .
Pester Tests:
executor: win/default
steps:
- attach_workspace:
at: .
- run:
name: Test Setup
shell: powershell.exe
command: |
$ErrorActionPreference = 'Stop'
. ./Deploy/TestSetup.ps1 -TestOrgConnectKey:($env:PesterConnectKey)
- run:
name: Install Required Modules & Set Env Variables for testing
shell: powershell.exe
command: |
Install-Module -Name:('PSScriptAnalyzer') -Force
Install-Module -Name:('JumpCloud') -Force
If (-not [System.String]::IsNullOrEmpty($env:JCApiKey) -and -not [System.String]::IsNullOrEmpty($env:JCOrgId))
{
Write-Host ('[VALIDATION] JCApiKey AND JCOrgId have been populated.')
}
Else
{
Write-Error ("Unable to test because JCApiKey and JCOrgId have not been set.")
}
- run:
name: Invoke Pester
shell: powershell.exe
command: |
$ErrorActionPreference = 'Stop'
./jumpcloud-ADMU/Powershell/InvokePester.ps1 << pipeline.parameters.buildReleaseType >>
- store_test_results:
name: Uploading test results for ADMU'
path: ./jumpcloud-ADMU/test_results/

Sign Executable:
executor: win/default
steps:
- attach_workspace:
at: .
- run:
name: Sign .exe
shell: powershell.exe
command: |
./Deploy/Sign.ps1
Build Module:
executor: win/default
steps:
- attach_workspace:
at: .
- run:
name: Build Module
shell: powershell.exe
command: |
$ErrorActionPreference = 'Stop'
./Deploy/Build-Module.ps1 -ModuleVersionType:("<< pipeline.parameters.buildReleaseType >>") -ModuleName:('JumpCloud.ADMU')
- persist_to_workspace:
root: .
paths:
- .
Build Help Files:
executor: win/default
steps:
- attach_workspace:
at: .
- run:
name: Build Help Files
shell: powershell.exe
command: |
$ErrorActionPreference = 'Stop'
./Deploy/Build-HelpFiles.ps1 -ModuleVersionType:("<< pipeline.parameters.buildReleaseType >>") -ModuleName:('JumpCloud.ADMU')
- persist_to_workspace:
root: .
paths:
- .
Build Nuspec:
executor: win/default
steps:
- attach_workspace:
at: .
- run:
name: Build .nuspec
shell: powershell.exe
command: |
$ErrorActionPreference = 'Stop'
./Deploy/BuildNuspecFromPsd1.ps1 -ModuleVersionType:("<< pipeline.parameters.buildReleaseType >>") -ModuleName:('JumpCloud.ADMU') -buildNumber:("$Env:CIRCLE_BUILD_NUM")
- persist_to_workspace:
root: .
paths:
- .
Publish:
executor: win/default
steps:
- attach_workspace:
at: .
- run:
name: Install Dependencies
shell: pwsh.exe
command: |
Install-Module -Name PowerShellGet -AllowPrerelease -RequiredVersion '3.0.0-beta10' -Force
Install-Module -Name AWS.Tools.Common -Force
Install-Module -Name AWS.Tools.CodeArtifact -Force
if ( -not ( Test-Path -Path ./Deploy/utils ) ) {
mkdir ./Deploy/utils
invoke-WebRequest https://dist.nuget.org/win-x86-commandline/v3.3.0/nuget.exe -Outfile ./Deploy/utils/nuget.exe
}
- run:
name: Add nuget sources
shell: pwsh.exe
command: |
Set-AWSCredential -AccessKey:($env:AWS_ACCESS_KEY_ID) -SecretKey:($env:AWS_SECRET_ACCESS_KEY)
$CARepoEndpoint = "$(Get-CARepositoryEndpoint -Domain jumpcloud-artifacts -Region us-east-1 -Repository jumpcloud-nuget-modules -Format nuget)v3/index.json"
dotnet nuget add source $CARepoEndpoint --name CodeArtifact --username aws --password (Get-CAAuthorizationToken -Domain:("jumpcloud-artifacts") -Region:("us-east-1")).AuthorizationToken
dotnet nuget add source "https://www.powershellgallery.com/api/v2" --name PSGallery
- deploy-nupkg:
source: CodeArtifact
Invoke Git Commit:
executor: win/default
steps:
- checkout
- add_ssh_keys:
fingerprints:
- "6b:97:dc:6d:d1:d1:3f:67:62:c4:ad:2d:96:3c:9a:d7"
- attach_workspace:
at: .
- run:
when: on_success
name: "Commit ADMU Module to << pipeline.git.branch >>"
shell: pwsh.exe
command: |
$UserEmail = If ($env:CIRCLE_PROJECT_USERNAME) { $env:CIRCLE_PROJECT_USERNAME } Else { ($env:USERNAME).Replace(' ', '') + '@FakeEmail.com' }
$UserName = If ($env:CIRCLE_PROJECT_USERNAME) { $env:CIRCLE_PROJECT_USERNAME } Else { $env:USERNAME }
git config user.email "$UserEmail"
git config user.name "$UserName"
git pull
git add -A
git status
git commit -m "Updating ADMU Module;[skip ci]"
git push origin << pipeline.git.branch >>
Upload Artifact:
executor: win/default
steps:
- checkout
- attach_workspace:
at: .
- store_artifacts:
path: ./
destination: artifact-file
Sign Exe:
docker:
- image: cimg/base:2021.04
steps:
- run:
name: Sign unsigned exe
command: |
if [ "${CIRCLE_PULL_REQUEST##*/}" != "" ];then
curl --request POST --url 'https://api.github.com/repos/TheJumpCloud/jumpcloud-ghactions-testing/dispatches' --header "authorization: Bearer $GITHUB_TOKEN_SA_KEN" --data '{"event_type": "Sign Exe"}'
else
echo "Not a PR"
fi
commands:
deploy-nupkg:
parameters:
source:
description: Name of the source to deploy to
type: string
steps:
- run:
name: Pack nuspec
command: |
./Deploy/utils/nuget.exe pack ./jumpcloud-ADMU/JumpCloud.ADMU.nuspec
- run:
name: Publishing to "<< parameters.source >>" repo
shell: pwsh.exe
command: |
$NupkgPath = (Get-ChildItem -Path:("./*.nupkg")).FullName
If('<< parameters.source >>' -eq 'CodeArtifact'){dotnet nuget push $NupkgPath --source << parameters.source >>}
ElseIf('<< parameters.source >>' -eq 'PSGallery'){dotnet nuget push $NupkgPath --source << parameters.source >> --api-key $env:NuGetApiKey}
Else {Write-Error "Unknown source value: << parameters.source >>"}
10 changes: 10 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## Issues
* [<jira-id>](https://jumpcloud.atlassian.net/browse/<jira-id>) - <jira-title>

## What does this solve?

## Is there anything particularly tricky?

## How should this be tested?

## Screenshots
12 changes: 12 additions & 0 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
on: repository_dispatch
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- shell: pwsh
env:
BASE64_ENCODED_SELF_SIGNED_CERT: ${{ secrets.BASE64_ENCODED_SELF_SIGNED_CERT }}
CERTPASS: ${{ secrets.CERTPASS }}
run: |
echo Dispatch ran
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.DS_Store
*/.DS_Store
14 changes: 14 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"spellright.language": [
"en"
],
"spellright.documentTypes": [
"markdown",
"latex",
"plaintext",
"yaml",
"powershell"
],
"powershell.scriptAnalysis.settingsPath": "jumpcloud-ADMU/Powershell/Tests/PSScriptAnalyzerSettings.psd1",
"powershell.scriptAnalysis.enable": true
}
Loading