File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
java/com/flowci/core/test/plugin Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -56,5 +56,13 @@ public void should_parse_yml_to_plugin() {
5656 Assert .assertEquals (2 , exports .size ());
5757 Assert .assertTrue (exports .contains ("VAR_EXPORT_1" ));
5858 Assert .assertTrue (exports .contains ("VAR_EXPORT_2" ));
59+
60+ String pwsh = plugin .getPwsh ();
61+ Assert .assertNotNull (pwsh );
62+ Assert .assertEquals ("$Env.PK_FILE=keyfile" , pwsh .trim ());
63+
64+ String bash = plugin .getBash ();
65+ Assert .assertNotNull (bash );
66+ Assert .assertEquals ("chmod 400 ${PK_FILE}" , bash .trim ());
5967 }
6068}
Original file line number Diff line number Diff line change 3333allow_failure : true
3434
3535script : |
36- PK_FILE=${FLOWCI_PLUGIN_WORKSPACE}/FLOWCI_RSA_PRIVATE_KEY
3736 chmod 400 ${PK_FILE}
38- ssh-agent bash -c 'ssh-add ${PK_FILE}; git clone -b ${GIT_BRANCH} ${GIT_URL}'
37+
38+ pwsh : |
39+ $Env.PK_FILE=keyfile
You can’t perform that action at this time.
0 commit comments